Date: Tue, 17 Jan 2006 15:52:00 -0200 From: Tiago Cruz <tiagocruz@b4br.net> To: "freebsd-net@FreeBSD.org" <freebsd-net@FreeBSD.org> Subject: MPD and client behind firewall Message-ID: <1137520320.15943.92.camel@localhost.localdomain>
next in thread | raw e-mail | index | archive | help
Hi all! I have a FreeBSD 6.0 running MPD server 3.18_3. The MPD server works very good when I has _direct_ connected by Internet. My problem is with one _client_ (Win XP) behind NAT from iptables. I have to do some in my PF? In this case, I've tried do this (in iptables from client): # Allow forwarding from inside to out and vice versa iptables -A FORWARD -i $INTINT -s $LOCALNETWORK -j ACCEPT iptables -A FORWARD -o $INTINT -d $LOCALNETWORK -j ACCEPT # Allow pptpd connections (port 1723) iptables -t nat -A PREROUTING -i $EXTINT -p TCP --sport $PUBLICPORTS --dport 1723 -j ACCEPT iptables -t nat -A OUTPUT -o $EXTINT -p 47 -j ACCEPT iptables -A OUTPUT -o $EXTINT -p 47 -j ACCEPT iptables -A INPUT -i $EXTINT -p 47 -j ACCEPT But still don't woking. Somebody can help me? Follow the mpd.log: Jan 17 11:36:19 luke mpd: mpd: PPTP connection from 200.171.131.250:1860 Jan 17 11:36:19 luke mpd: pptp0: attached to connection with 200.171.131.250:1860 Jan 17 11:36:19 luke mpd: [pptp1] IFACE: Open event Jan 17 11:36:19 luke mpd: [pptp1] IPCP: Open event Jan 17 11:36:19 luke mpd: [pptp1] IPCP: state change Initial --> Starting Jan 17 11:36:19 luke mpd: [pptp1] IPCP: LayerStart Jan 17 11:36:19 luke mpd: [pptp1] IPCP: Open event Jan 17 11:36:19 luke mpd: [pptp1] bundle: OPEN event in state CLOSED Jan 17 11:36:19 luke mpd: [pptp1] opening link "pptp1"... Jan 17 11:36:19 luke mpd: [pptp1] link: OPEN event Jan 17 11:36:19 luke mpd: [pptp1] LCP: Open event Jan 17 11:36:19 luke mpd: [pptp1] LCP: state change Initial --> Starting Jan 17 11:36:19 luke mpd: [pptp1] LCP: LayerStart Jan 17 11:36:19 luke mpd: [pptp1] device: OPEN event in state DOWN Jan 17 11:36:19 luke mpd: [pptp1] attaching to peer's outgoing call Jan 17 11:36:19 luke mpd: [pptp1] device is now in state OPENING Jan 17 11:36:19 luke mpd: [pptp1] device: UP event in state OPENING Jan 17 11:36:19 luke mpd: [pptp1] device is now in state UP Jan 17 11:36:19 luke mpd: [pptp1] link: UP event Jan 17 11:36:19 luke mpd: [pptp1] link: origination is remote Jan 17 11:36:19 luke mpd: [pptp1] LCP: Up event Jan 17 11:36:19 luke mpd: [pptp1] LCP: state change Starting --> Req-Sent Jan 17 11:36:19 luke mpd: [pptp1] LCP: phase shift DEAD --> ESTABLISH Jan 17 11:36:19 luke mpd: [pptp1] LCP: SendConfigReq #27 Jan 17 11:36:19 luke mpd: ACFCOMP Jan 17 11:36:19 luke mpd: PROTOCOMP Jan 17 11:36:19 luke mpd: MRU 1500 Jan 17 11:36:19 luke mpd: MAGICNUM ce26e81c Jan 17 11:36:19 luke mpd: AUTHPROTO CHAP MSOFTv2 Jan 17 11:36:19 luke mpd: MP MRRU 1600 Jan 17 11:36:19 luke mpd: MP SHORTSEQ Jan 17 11:36:19 luke mpd: ENDPOINTDISC [802.1] 00 01 03 1e 4d 01 Jan 17 11:36:19 luke mpd: pptp0-0: ignoring SetLinkInfo Jan 17 11:36:21 luke mpd: [pptp1] LCP: SendConfigReq #28 Jan 17 11:36:21 luke mpd: ACFCOMP Jan 17 11:36:21 luke mpd: PROTOCOMP Jan 17 11:36:21 luke mpd: MRU 1500 Jan 17 11:36:21 luke mpd: MAGICNUM ce26e81c Jan 17 11:36:21 luke mpd: AUTHPROTO CHAP MSOFTv2 Jan 17 11:36:21 luke mpd: MP MRRU 1600 Jan 17 11:36:21 luke mpd: MP SHORTSEQ Jan 17 11:36:21 luke mpd: ENDPOINTDISC [802.1] 00 01 03 1e 4d 01 Jan 17 11:36:23 luke mpd: [pptp1] LCP: SendConfigReq #29 Jan 17 11:36:23 luke mpd: ACFCOMP Jan 17 11:36:23 luke mpd: PROTOCOMP Jan 17 11:36:23 luke mpd: MRU 1500 Jan 17 11:36:23 luke mpd: MAGICNUM ce26e81c Jan 17 11:36:23 luke mpd: AUTHPROTO CHAP MSOFTv2 Jan 17 11:36:23 luke mpd: MP MRRU 1600 Jan 17 11:36:23 luke mpd: MP SHORTSEQ Jan 17 11:36:23 luke mpd: ENDPOINTDISC [802.1] 00 01 03 1e 4d 01 Jan 17 11:36:25 luke mpd: [pptp1] LCP: SendConfigReq #30 Jan 17 11:36:25 luke mpd: ACFCOMP Jan 17 11:36:25 luke mpd: PROTOCOMP Jan 17 11:36:25 luke mpd: MRU 1500 Jan 17 11:36:25 luke mpd: MAGICNUM ce26e81c Jan 17 11:36:25 luke mpd: AUTHPROTO CHAP MSOFTv2 Jan 17 11:36:25 luke mpd: MP MRRU 1600 Jan 17 11:36:25 luke mpd: MP SHORTSEQ Jan 17 11:36:25 luke mpd: ENDPOINTDISC [802.1] 00 01 03 1e 4d 01 Jan 17 11:36:27 luke mpd: [pptp1] LCP: SendConfigReq #31 Jan 17 11:36:27 luke mpd: ACFCOMP Jan 17 11:36:27 luke mpd: PROTOCOMP Jan 17 11:36:27 luke mpd: MRU 1500 Jan 17 11:36:27 luke mpd: MAGICNUM ce26e81c Jan 17 11:36:27 luke mpd: AUTHPROTO CHAP MSOFTv2 Jan 17 11:36:27 luke mpd: MP MRRU 1600 Jan 17 11:36:27 luke mpd: MP SHORTSEQ Jan 17 11:36:27 luke mpd: ENDPOINTDISC [802.1] 00 01 03 1e 4d 01 Jan 17 11:36:29 luke mpd: [pptp1] LCP: SendConfigReq #32 Jan 17 11:36:29 luke mpd: ACFCOMP Jan 17 11:36:29 luke mpd: PROTOCOMP Jan 17 11:36:29 luke mpd: MRU 1500 Jan 17 11:36:29 luke mpd: MAGICNUM ce26e81c Jan 17 11:36:29 luke mpd: AUTHPROTO CHAP MSOFTv2 Jan 17 11:36:29 luke mpd: MP MRRU 1600 Jan 17 11:36:29 luke mpd: MP SHORTSEQ Jan 17 11:36:29 luke mpd: ENDPOINTDISC [802.1] 00 01 03 1e 4d 01 Jan 17 11:36:31 luke mpd: [pptp1] LCP: SendConfigReq #33 Jan 17 11:36:31 luke mpd: ACFCOMP Jan 17 11:36:31 luke mpd: PROTOCOMP Jan 17 11:36:31 luke mpd: MRU 1500 Jan 17 11:36:31 luke mpd: MAGICNUM ce26e81c Jan 17 11:36:31 luke mpd: AUTHPROTO CHAP MSOFTv2 Jan 17 11:36:31 luke mpd: MP MRRU 1600 Jan 17 11:36:31 luke mpd: MP SHORTSEQ Jan 17 11:36:31 luke mpd: ENDPOINTDISC [802.1] 00 01 03 1e 4d 01 Jan 17 11:36:33 luke mpd: [pptp1] LCP: SendConfigReq #34 Jan 17 11:36:33 luke mpd: ACFCOMP Jan 17 11:36:33 luke mpd: PROTOCOMP Jan 17 11:36:33 luke mpd: MRU 1500 Jan 17 11:36:33 luke mpd: MAGICNUM ce26e81c Jan 17 11:36:33 luke mpd: AUTHPROTO CHAP MSOFTv2 Jan 17 11:36:33 luke mpd: MP MRRU 1600 Jan 17 11:36:33 luke mpd: MP SHORTSEQ Jan 17 11:36:33 luke mpd: ENDPOINTDISC [802.1] 00 01 03 1e 4d 01 Jan 17 11:36:35 luke mpd: [pptp1] LCP: SendConfigReq #35 Jan 17 11:36:35 luke mpd: ACFCOMP Jan 17 11:36:35 luke mpd: PROTOCOMP Jan 17 11:36:35 luke mpd: MRU 1500 Jan 17 11:36:35 luke mpd: MAGICNUM ce26e81c Jan 17 11:36:35 luke mpd: AUTHPROTO CHAP MSOFTv2 Jan 17 11:36:35 luke mpd: MP MRRU 1600 Jan 17 11:36:35 luke mpd: MP SHORTSEQ Jan 17 11:36:35 luke mpd: ENDPOINTDISC [802.1] 00 01 03 1e 4d 01 Jan 17 11:36:37 luke mpd: [pptp1] LCP: SendConfigReq #36 Jan 17 11:36:37 luke mpd: ACFCOMP Jan 17 11:36:37 luke mpd: PROTOCOMP Jan 17 11:36:37 luke mpd: MRU 1500 Jan 17 11:36:37 luke mpd: MAGICNUM ce26e81c Jan 17 11:36:37 luke mpd: AUTHPROTO CHAP MSOFTv2 Jan 17 11:36:37 luke mpd: MP MRRU 1600 Jan 17 11:36:37 luke mpd: MP SHORTSEQ Jan 17 11:36:37 luke mpd: ENDPOINTDISC [802.1] 00 01 03 1e 4d 01 Jan 17 11:36:39 luke mpd: [pptp1] LCP: state change Req-Sent --> Stopped Jan 17 11:36:39 luke mpd: [pptp1] LCP: LayerFinish Jan 17 11:36:39 luke mpd: [pptp1] LCP: parameter negotiation failed Jan 17 11:36:39 luke mpd: [pptp1] LCP: LayerFinish Jan 17 11:36:39 luke mpd: [pptp1] device: CLOSE event in state UP Jan 17 11:36:39 luke mpd: pptp0-0: clearing call Jan 17 11:36:39 luke mpd: pptp0-0: killing channel Jan 17 11:36:39 luke mpd: [pptp1] PPTP call terminated Jan 17 11:36:39 luke mpd: [pptp1] IFACE: Close event Jan 17 11:36:39 luke mpd: [pptp1] IPCP: Close event Jan 17 11:36:39 luke mpd: [pptp1] IPCP: state change Starting --> Initial Jan 17 11:36:39 luke mpd: [pptp1] IPCP: LayerFinish Jan 17 11:36:39 luke mpd: [pptp1] IFACE: Close event Jan 17 11:36:39 luke mpd: pptp0: closing connection with 200.171.131.250:1860 Jan 17 11:36:39 luke mpd: [pptp1] IFACE: Close event Jan 17 11:36:39 luke mpd: [pptp1] device is now in state CLOSING Jan 17 11:36:39 luke mpd: [pptp1] bundle: CLOSE event in state OPENED Jan 17 11:36:39 luke mpd: [pptp1] closing link "pptp1"... Jan 17 11:36:39 luke mpd: [pptp1] device: CLOSE event in state CLOSING Jan 17 11:36:39 luke mpd: [pptp1] device is now in state CLOSING Jan 17 11:36:39 luke mpd: [pptp1] link: CLOSE event Jan 17 11:36:39 luke mpd: [pptp1] LCP: Close event Jan 17 11:36:39 luke mpd: [pptp1] LCP: state change Stopped --> Closed Jan 17 11:36:39 luke mpd: [pptp1] device: DOWN event in state CLOSING Jan 17 11:36:39 luke mpd: [pptp1] device is now in state DOWN Jan 17 11:36:39 luke mpd: [pptp1] link: DOWN event Jan 17 11:36:39 luke mpd: [pptp1] LCP: Down event Jan 17 11:36:39 luke mpd: [pptp1] LCP: state change Closed --> Initial Jan 17 11:36:39 luke mpd: [pptp1] LCP: phase shift ESTABLISH --> DEAD Jan 17 11:36:39 luke mpd: [pptp1] device: DOWN event in state DOWN Jan 17 11:36:39 luke mpd: [pptp1] device is now in state DOWN Jan 17 11:36:39 luke mpd: [pptp1] link: DOWN event Jan 17 11:36:39 luke mpd: [pptp1] LCP: Down event Jan 17 11:36:39 luke mpd: pptp0: killing connection with 200.171.131.250:1860 -- Tiago Cruz http://linuxrapido.org Linux User #282636 "The box said: Requires MS Windows or better, so I installed Linux"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1137520320.15943.92.camel>