mpd problem - CCP: rec'd Reset Request

2008-03-13 Thread Kirill Alpeev

Hello,

There's a problem with my MPD which I cannot reproduce but it appears 
from time to time. Here's complete session log and mpd configs:


Mar 10 08:26:23 tazek mpd: [pptp] using interface ng0
Mar 10 08:26:23 tazek mpd: [pptp] link: OPEN event
Mar 10 08:26:23 tazek mpd: [pptp] LCP: Open event
Mar 10 08:26:23 tazek mpd: [pptp] LCP: state change Initial -- Starting
Mar 10 08:26:23 tazek mpd: [pptp] LCP: LayerStart
Mar 10 08:26:23 tazek mpd: pptp0: connecting to 193.33.48.3 1723
Mar 10 08:26:23 tazek mpd: pptp0: connected to 193.33.48.3 1723
Mar 10 08:26:23 tazek mpd: pptp0: attached to connection with 
193.33.48.3 1723

Mar 10 08:26:23 tazek mpd: pptp0-0: outgoing call connected at 64000 bps
Mar 10 08:26:23 tazek mpd: [pptp] PPTP call successful
Mar 10 08:26:24 tazek mpd: [pptp] link: UP event
Mar 10 08:26:24 tazek mpd: [pptp] link: origination is local
Mar 10 08:26:24 tazek mpd: [pptp] LCP: Up event
Mar 10 08:26:24 tazek mpd: [pptp] LCP: state change Starting -- Req-Sent
Mar 10 08:26:24 tazek mpd: [pptp] LCP: SendConfigReq #1
Mar 10 08:26:24 tazek mpd:  ACFCOMP
Mar 10 08:26:24 tazek mpd:  PROTOCOMP
Mar 10 08:26:24 tazek mpd:  ACCMAP 0x000a
Mar 10 08:26:24 tazek mpd:  MRU 1460
Mar 10 08:26:24 tazek mpd:  MAGICNUM 50e25050
Mar 10 08:26:24 tazek mpd: [pptp] LCP: rec'd Configure Ack #1 (Req-Sent)
Mar 10 08:26:24 tazek mpd:  ACFCOMP
Mar 10 08:26:24 tazek mpd:  PROTOCOMP
Mar 10 08:26:24 tazek mpd:  ACCMAP 0x000a
Mar 10 08:26:24 tazek mpd:  MRU 1460
Mar 10 08:26:24 tazek mpd:  MAGICNUM 50e25050
Mar 10 08:26:24 tazek mpd: [pptp] LCP: state change Req-Sent -- Ack-Rcvd
Mar 10 08:26:26 tazek mpd: [pptp] LCP: state change Ack-Rcvd -- Req-Sent
Mar 10 08:26:26 tazek mpd: [pptp] LCP: SendConfigReq #2
Mar 10 08:26:26 tazek mpd:  ACFCOMP
Mar 10 08:26:26 tazek mpd:  PROTOCOMP
Mar 10 08:26:26 tazek mpd:  ACCMAP 0x000a
Mar 10 08:26:26 tazek mpd:  MRU 1460
Mar 10 08:26:26 tazek mpd:  MAGICNUM 50e25050
Mar 10 08:26:26 tazek mpd: [pptp] LCP: rec'd Configure Ack #2 (Req-Sent)
Mar 10 08:26:26 tazek mpd:  ACFCOMP
Mar 10 08:26:26 tazek mpd:  PROTOCOMP
Mar 10 08:26:26 tazek mpd:  ACCMAP 0x000a
Mar 10 08:26:26 tazek mpd:  MRU 1460
Mar 10 08:26:26 tazek mpd:  MAGICNUM 50e25050
Mar 10 08:26:26 tazek mpd: [pptp] LCP: state change Req-Sent -- Ack-Rcvd
Mar 10 08:26:26 tazek mpd: [pptp] LCP: rec'd Configure Request #1 (Ack-Rcvd)
Mar 10 08:26:26 tazek mpd:  ACCMAP 0x
Mar 10 08:26:26 tazek mpd:  AUTHPROTO CHAP MSOFTv2
Mar 10 08:26:26 tazek mpd:  MAGICNUM e11b37fd
Mar 10 08:26:26 tazek mpd:  PROTOCOMP
Mar 10 08:26:26 tazek mpd:  ACFCOMP
Mar 10 08:26:26 tazek mpd: [pptp] LCP: SendConfigAck #1
Mar 10 08:26:26 tazek mpd:  ACCMAP 0x
Mar 10 08:26:26 tazek mpd:  AUTHPROTO CHAP MSOFTv2
Mar 10 08:26:26 tazek mpd:  MAGICNUM e11b37fd
Mar 10 08:26:26 tazek mpd:  PROTOCOMP
Mar 10 08:26:26 tazek mpd:  ACFCOMP
Mar 10 08:26:26 tazek mpd: [pptp] LCP: state change Ack-Rcvd -- Opened
Mar 10 08:26:26 tazek mpd: [pptp] LCP: auth: peer wants CHAP, I want nothing
Mar 10 08:26:26 tazek mpd: [pptp] LCP: LayerUp
Mar 10 08:26:26 tazek mpd: [pptp] CHAP: rec'd CHALLENGE #153
Mar 10 08:26:26 tazek mpd:  Name: pptpd
Mar 10 08:26:26 tazek mpd:  Using authname u_sn_kpenergy
Mar 10 08:26:27 tazek mpd: [pptp] CHAP: sending RESPONSE len:63
Mar 10 08:26:27 tazek mpd: [pptp] CHAP: rec'd SUCCESS #153
Mar 10 08:26:27 tazek mpd:  MESG: S=8A3A5371D391A9E723EC05269806C81EA5F42125
Mar 10 08:26:27 tazek mpd: [pptp] LCP: authorization successful
Mar 10 08:26:27 tazek mpd: [pptp] Bundle up: 1 link, total bandwidth 
64000 bps

Mar 10 08:26:27 tazek mpd: [pptp] IPCP: Open event
Mar 10 08:26:27 tazek mpd: [pptp] IPCP: state change Initial -- Starting
Mar 10 08:26:27 tazek mpd: [pptp] IPCP: LayerStart
Mar 10 08:26:27 tazek mpd: [pptp] CCP: Open event
Mar 10 08:26:27 tazek mpd: [pptp] CCP: state change Initial -- Starting
Mar 10 08:26:27 tazek mpd: [pptp] CCP: LayerStart
Mar 10 08:26:27 tazek mpd: [pptp] IPCP: Up event
Mar 10 08:26:27 tazek mpd: [pptp] IPCP: state change Starting -- Req-Sent
Mar 10 08:26:27 tazek mpd: [pptp] IPCP: SendConfigReq #1
Mar 10 08:26:27 tazek mpd:  IPADDR 192.168.132.26
Mar 10 08:26:27 tazek mpd:  COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Mar 10 08:26:27 tazek mpd: [pptp] CCP: Up event
Mar 10 08:26:27 tazek mpd: [pptp] CCP: state change Starting -- Req-Sent
Mar 10 08:26:27 tazek mpd: [pptp] CCP: SendConfigReq #1
Mar 10 08:26:27 tazek mpd:  MPPC
Mar 10 08:26:27 tazek mpd:0x0140:MPPE(128 bits), stateless
Mar 10 08:26:27 tazek mpd: [pptp] can't get stats, link=0: Invalid argument
Mar 10 08:26:27 tazek mpd: [pptp] CCP: rec'd Configure Request #1 (Req-Sent)
Mar 10 08:26:27 tazek mpd:  MPPC
Mar 10 08:26:27 tazek mpd:0x0140:MPPE(128 bits), stateless
Mar 10 08:26:27 tazek mpd: [pptp] CCP: SendConfigAck #1
Mar 10 08:26:27 tazek mpd:  MPPC
Mar 10 08:26:27 tazek mpd:0x0140:MPPE(128 bits), stateless
Mar 10 08:26:27 tazek mpd: [pptp] CCP: state change Req-Sent -- Ack-Sent
Mar 10 08:26:27 tazek mpd: [pptp] IPCP: 

Re: mpd problem

2005-12-29 Thread Nikos Vassiliadis
On Wednesday 28 December 2005 16:59, Mile wrote:
 Hi,

 I have a FreeBSD computer acting as gateway to windows clients
 Some sites like msn.com, opera.com, hp.com, najdi.si  dont work on
 LAN... because of MTU problem.

 If i set MTU to 1492 instead of default 1500 then this sites work! (on
 windows)

 (If i use userland pppoe then everything works without setting MTU on LAN.
 (itself has an option mssfixup).)

 I tried with adding set iface enable tcpmssfix to mpd.conf as described
 in mpd documentation, but it still doesnt work... msn.com and opera.com
 work now... but others dont.

There is a netgraph node that changes MSS in FreeBSD-6 and it works fine.
Read ng_tcpmss(4). If you are using FreeBSD-5, google it.

HTH, Nikos


 mpd.conf (Version 3.18)
 default:
 load PPPoE

 PPPoE:
 new -i ng0 PPPoE PPPoE
 set iface addrs 1.1.1.1 2.2.2.2
 set iface route default
 set iface disable on-demand
 set iface idle 0
 set bundle disable multilink
 set bundle authname xxx
 set link no acfcomp protocomp
 set link disable pap chap
 set link accept chap
 set link mtu 1492
 set link keep-alive 10 60
 set ipcp yes vjcomp
 set ipcp ranges 0.0.0.0/0 0.0.0.0/0
 set iface enable tcpmssfix
 open iface


 natd.conf
 interface ng0
 dynamic yes
 use_sockets yes


 ipfw
 #natd
 /sbin/ipfw 15 add divert natd all from any to any via ng0


 sysctl.conf
 security.bsd.see_other_uids=0
 security.bsd.see_other_gids=0
 security.bsd.unprivileged_read_msgbuf=0
 net.inet.tcp.blackhole=2
 net.inet.udp.blackhole=1
 vm.swap_idle_enabled=1
 kern.ipc.maxsockbuf=2097152
 kern.ipc.somaxconn=2048
 kern.maxfiles=65536
 kern.maxfilesperproc=32768
 net.inet.tcp.rfc1323=0
 net.inet.tcp.delayed_ack=0
 net.inet.tcp.sendspace=32768
 net.inet.tcp.recvspace=32768
 net.inet.udp.recvspace=32768
 net.inet.udp.maxdgram=57344
 net.local.stream.recvspace=32768
 net.local.stream.sendspace=32768
 net.inet.icmp.drop_redirect=1
 net.inet.icmp.log_redirect=1
 net.inet.ip.redirect=1
 net.inet6.ip6.redirect=0
 net.inet.ip.sourceroute=1
 net.inet.ip.accept_sourceroute=1
 net.link.ether.inet.max_age=1200
 net.inet.icmp.bmcastecho=0
 #net.inet.tcp.drop_synfin=1
 net.inet.ip.fw.verbose=1

 If you need any more info please contact me.


 thanks,
 Brane
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mpd problem

2005-12-28 Thread Mile
Hi,

I have a FreeBSD computer acting as gateway to windows clients
Some sites like msn.com, opera.com, hp.com, najdi.si  dont work on LAN... 
because of MTU problem.

If i set MTU to 1492 instead of default 1500 then this sites work! (on windows)

(If i use userland pppoe then everything works without setting MTU on LAN. 
(itself has an option mssfixup).)

I tried with adding set iface enable tcpmssfix to mpd.conf as described in 
mpd documentation, but it still doesnt work...
msn.com and opera.com work now... but others dont.

mpd.conf (Version 3.18)
default:
load PPPoE

PPPoE:
new -i ng0 PPPoE PPPoE
set iface addrs 1.1.1.1 2.2.2.2
set iface route default
set iface disable on-demand
set iface idle 0
set bundle disable multilink
set bundle authname xxx
set link no acfcomp protocomp
set link disable pap chap
set link accept chap
set link mtu 1492
set link keep-alive 10 60
set ipcp yes vjcomp
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
set iface enable tcpmssfix
open iface


natd.conf
interface ng0
dynamic yes
use_sockets yes


ipfw
#natd
/sbin/ipfw 15 add divert natd all from any to any via ng0


sysctl.conf
security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
security.bsd.unprivileged_read_msgbuf=0
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
vm.swap_idle_enabled=1
kern.ipc.maxsockbuf=2097152
kern.ipc.somaxconn=2048
kern.maxfiles=65536
kern.maxfilesperproc=32768
net.inet.tcp.rfc1323=0
net.inet.tcp.delayed_ack=0
net.inet.tcp.sendspace=32768
net.inet.tcp.recvspace=32768
net.inet.udp.recvspace=32768
net.inet.udp.maxdgram=57344
net.local.stream.recvspace=32768
net.local.stream.sendspace=32768
net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=1
net.inet.ip.redirect=1
net.inet6.ip6.redirect=0
net.inet.ip.sourceroute=1
net.inet.ip.accept_sourceroute=1
net.link.ether.inet.max_age=1200
net.inet.icmp.bmcastecho=0
#net.inet.tcp.drop_synfin=1
net.inet.ip.fw.verbose=1

If you need any more info please contact me.


thanks,
Brane
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


MPD-problem.

2005-01-19 Thread Geir Inge Imsland
Hi folks.
I have a problem with mpd on a server.
It seems that the vpnclient cannot accept icmp connections from other 
than the mpd-server.
* I can ping from 192.168.0.1 (The server) to 192.168.0.201 (The client)
* I can NOT ping from 192.168.0.200 (Another server) to 192.168.0.201 
(The client)
* Changing the clients address to 192.168.0.101 does not help.
* Firewall rules is disabled, so this should not be the cause.

tcpdump says:
00:00:52.540628 192.168.0.1  192.168.0.200: icmp: 192.168.0.201 unreachable - 
need to frag (mtu1396) (DF) (ttl64, id57189, len56)
- mpd.conf -
default:
 load pptp0
pptp_common:
 set iface disable on-demand
 set iface enable proxy-arp
 set bundle disable multilink
 set link yes acfcomp protocomp
 set link no pap chap
# CHAP authentication
 set link enable chap
 set link keep-alive 60 180
 set ipcp yes vjcomp
#  set ipcp dns 217.13.4.24
 #NetBIOS Server address
 #set ipcp nbns 192.168.03.1
 #Compression and encryption
 set bundle enable compression
 set ccp yes mppc
#  set ccp yes mpp-e40
#  set ccp no mpp-e40
 set ccp yes mpp-e128
 set ccp yes mpp-stateless
 set bundle yes crypt-reqd
pptp0:
 new -i ng0 pptp0 pptp0
 set ipcp ranges 192.168.0.1/32 192.168.0.201/32
 load pptp_common

- mpd.links -
pptp0:
 set link type pptp
 set pptp self x.x.x.x
 set pptp enable incoming
 set pptp disable originate
Thanks in advance!
--
Geir Inge Imsland   
Copyleft Solutions AS
[EMAIL PROTECTED]mob: +4747647074 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]