[BSD] NATD+MPD probléma

Feher Sandor fehers at freemail.hu
2004. Sze. 30., Cs, 15:34:14 CEST


Sziasztok!

Adott egy FreeBSD 5.2.1-RELEASE, rajta egy MPD szerver figyel a 1723-
as
porton és müxik szépen. Igy néz ki a cucc:



 *******************
**************
*  router publikus ip-vel*  192.168.1.254
*VPN szerver       *        192.168.1.8
*
************************************************
*******************

A router NAT-ol  es atiranyitja a 1723-at az 1.8 1723-ra. Ez megy is 
gond
nelkul. A problema ott kezdodik, h ra kellene venni a routerra bejovo
6667-et hogy
az 1.8-ra erve o 1723-legyen. Tehat a tavoli VPN kliensem a 6667-en 
probal
kommunikalni es ezt at kellene forditani az 1.8 1723-ra.
A kovetkezo lepeseket tettem ennek erdekeben:

1. /etc/natd.conf

unregistered_only
same_ports yes
interface dc0
use_sockets
dynamic
log
redirect_port tcp 192.168.1.8:1723 192.168.1.8:6667
redirect_port tcp 192.168.1.8:47 192.168.1.8:47
redirect_proto gre 192.168.1.8

2. /etc/rc.firewall

ipfw -q flush
ipfw add 01000 divert natd ip from any to me in via dc0
ipfw add 01002 divert natd ip from 192.168.1.0/24 to any out via dc0
ipfw add 01004 allow gre from any to any

Jönnek is a csomagok szépen csak úgy néz ki h a GRE csomagok nem 
mennek
kifele és nem jön össze a kapcsolat végül.

Sep 29 13:21:38 backup2 mpd:  ACFCOMP
Sep 29 13:21:38 backup2 mpd:  PROTOCOMP
Sep 29 13:21:38 backup2 mpd:  MRU 1500
Sep 29 13:21:38 backup2 mpd:  MAGICNUM 55051356
Sep 29 13:21:38 backup2 mpd:  AUTHPROTO CHAP MSOFTv2
Sep 29 13:21:38 backup2 mpd:  MP MRRU 1600
Sep 29 13:21:38 backup2 mpd:  MP SHORTSEQ
Sep 29 13:21:38 backup2 mpd:  ENDPOINTDISC [802.1] 00 04 75 b5 bd 
ed
Sep 29 13:21:38 backup2 mpd: pptp0-0: ignoring SetLinkInfo
Sep 29 13:21:38 backup2 mpd: [pptp1] LCP: rec'd Configure Request 
#0 link 0
(Req-Sent)
Sep 29 13:21:38 backup2 mpd:  MRU 1400
Sep 29 13:21:38 backup2 mpd:  MAGICNUM 067054b5
Sep 29 13:21:38 backup2 mpd:  PROTOCOMP
Sep 29 13:21:38 backup2 mpd:  ACFCOMP
Sep 29 13:21:38 backup2 mpd:  CALLBACK
Sep 29 13:21:38 backup2 mpd:    Not supported
Sep 29 13:21:38 backup2 mpd: [pptp1] LCP: SendConfigRej #0
Sep 29 13:21:38 backup2 mpd:  CALLBACK
Sep 29 13:21:40 backup2 mpd: [pptp1] LCP: SendConfigReq #198
Sep 29 13:21:40 backup2 mpd:  ACFCOMP
Sep 29 13:21:40 backup2 mpd:  PROTOCOMP
Sep 29 13:21:40 backup2 mpd:  MRU 1500
Sep 29 13:21:40 backup2 mpd:  MAGICNUM 55051356
Sep 29 13:21:40 backup2 mpd:  AUTHPROTO CHAP MSOFTv2
Sep 29 13:21:40 backup2 mpd:  MP MRRU 1600
Sep 29 13:21:40 backup2 mpd:  MP SHORTSEQ
Sep 29 13:21:40 backup2 mpd:  ENDPOINTDISC [802.1] 00 04 75 b5 bd 
ed
Sep 29 13:21:40 backup2 mpd: [pptp1] LCP: rec'd Configure Request 
#1 link 0
(Req-Sent)
Sep 29 13:21:40 backup2 mpd:  MRU 1400
Sep 29 13:21:40 backup2 mpd:  MAGICNUM 067054b5
Sep 29 13:21:40 backup2 mpd:  PROTOCOMP
Sep 29 13:21:40 backup2 mpd:  ACFCOMP
Sep 29 13:21:40 backup2 mpd:  CALLBACK
Sep 29 13:21:40 backup2 mpd:    Not supported
Sep 29 13:21:40 backup2 mpd: [pptp1] LCP: SendConfigRej #1
Sep 29 13:21:40 backup2 mpd:  CALLBACK
Sep 29 13:21:42 backup2 mpd: [pptp1] LCP: SendConfigReq #199
Sep 29 13:21:42 backup2 mpd:  ACFCOMP
Sep 29 13:21:42 backup2 mpd:  PROTOCOMP
Sep 29 13:21:42 backup2 mpd:  MRU 1500
Sep 29 13:21:42 backup2 mpd:  MAGICNUM 55051356
Sep 29 13:21:42 backup2 mpd:  AUTHPROTO CHAP MSOFTv2
Sep 29 13:21:42 backup2 mpd:  MP MRRU 1600
Sep 29 13:21:42 backup2 mpd:  MP SHORTSEQ
Sep 29 13:21:42 backup2 mpd:  ENDPOINTDISC [802.1] 00 04 75 b5 bd 
ed
Sep 29 13:21:43 backup2 mpd: [pptp1] LCP: rec'd Configure Request 
#2 link 0
(Req-Sent)
Sep 29 13:21:43 backup2 mpd:  MRU 1400
Sep 29 13:21:43 backup2 mpd:  MAGICNUM 067054b5
Sep 29 13:21:43 backup2 mpd:  PROTOCOMP
Sep 29 13:21:43 backup2 mpd:  ACFCOMP
Sep 29 13:21:43 backup2 mpd:  CALLBACK
Sep 29 13:21:43 backup2 mpd:    Not supported
Sep 29 13:21:43 backup2 mpd: [pptp1] LCP: SendConfigRej #2
Sep 29 13:21:43 backup2 mpd:  CALLBACK
Sep 29 13:21:44 backup2 mpd: [pptp1] LCP: SendConfigReq #200
Sep 29 13:21:44 backup2 mpd:  ACFCOMP
Sep 29 13:21:44 backup2 mpd:  PROTOCOMP
Sep 29 13:21:44 backup2 mpd:  MRU 1500
Sep 29 13:21:44 backup2 mpd:  MAGICNUM 55051356
Sep 29 13:21:44 backup2 mpd:  AUTHPROTO CHAP MSOFTv2
Sep 29 13:21:44 backup2 mpd:  MP MRRU 1600
Sep 29 13:21:44 backup2 mpd:  MP SHORTSEQ
Sep 29 13:21:44 backup2 mpd:  ENDPOINTDISC [802.1] 00 04 75 b5 bd 
ed
Sep 29 13:21:46 backup2 mpd: [pptp1] LCP: SendConfigReq #201
Sep 29 13:21:46 backup2 mpd:  ACFCOMP
Sep 29 13:21:46 backup2 mpd:  PROTOCOMP
Sep 29 13:21:46 backup2 mpd:  MRU 1500
Sep 29 13:21:46 backup2 mpd:  MAGICNUM 55051356
Sep 29 13:21:46 backup2 mpd:  AUTHPROTO CHAP MSOFTv2
Sep 29 13:21:46 backup2 mpd:  MP MRRU 1600
Sep 29 13:21:46 backup2 mpd:  MP SHORTSEQ
Sep 29 13:21:46 backup2 mpd:  ENDPOINTDISC [802.1] 00 04 75 b5 bd 
ed
Sep 29 13:21:47 backup2 mpd: [pptp1] LCP: rec'd Configure Request 
#3 link 0
(Req-Sent)
Sep 29 13:21:47 backup2 mpd:  MRU 1400
Sep 29 13:21:47 backup2 mpd:  MAGICNUM 067054b5
Sep 29 13:21:47 backup2 mpd:  PROTOCOMP
Sep 29 13:21:47 backup2 mpd:  ACFCOMP
Sep 29 13:21:47 backup2 mpd:  CALLBACK
Sep 29 13:21:47 backup2 mpd:    Not supported
Sep 29 13:21:47 backup2 mpd: [pptp1] LCP: SendConfigRej #3
Sep 29 13:21:47 backup2 mpd:  CALLBACK
Sep 29 13:21:48 backup2 mpd: [pptp1] LCP: SendConfigReq #202
Sep 29 13:21:48 backup2 mpd:  ACFCOMP
Sep 29 13:21:48 backup2 mpd:  PROTOCOMP
Sep 29 13:21:48 backup2 mpd:  MRU 1500
Sep 29 13:21:48 backup2 mpd:  MAGICNUM 55051356
Sep 29 13:21:48 backup2 mpd:  AUTHPROTO CHAP MSOFTv2
Sep 29 13:21:48 backup2 mpd:  MP MRRU 1600
Sep 29 13:21:48 backup2 mpd:  MP SHORTSEQ
Sep 29 13:21:48 backup2 mpd:  ENDPOINTDISC [802.1] 00 04 75 b5 bd 
ed
Sep 29 13:21:50 backup2 mpd: [pptp1] LCP: SendConfigReq #203
Sep 29 13:21:50 backup2 mpd:  ACFCOMP
Sep 29 13:21:50 backup2 mpd:  PROTOCOMP
Sep 29 13:21:50 backup2 mpd:  MRU 1500
Sep 29 13:21:50 backup2 mpd:  MAGICNUM 55051356
Sep 29 13:21:50 backup2 mpd:  AUTHPROTO CHAP MSOFTv2
Sep 29 13:21:50 backup2 mpd:  MP MRRU 1600
Sep 29 13:21:50 backup2 mpd:  MP SHORTSEQ
Sep 29 13:21:50 backup2 mpd:  ENDPOINTDISC [802.1] 00 04 75 b5 bd 
ed
Sep 29 13:21:51 backup2 mpd: [pptp1] LCP: rec'd Configure Request 
#4 link 0
(Req-Sent)
Sep 29 13:21:51 backup2 mpd:  MRU 1400
Sep 29 13:21:51 backup2 mpd:  MAGICNUM 067054b5
Sep 29 13:21:51 backup2 mpd:  PROTOCOMP
Sep 29 13:21:51 backup2 mpd:  ACFCOMP
Sep 29 13:21:51 backup2 mpd:  CALLBACK
Sep 29 13:21:51 backup2 mpd:    Not supported
Sep 29 13:21:51 backup2 mpd: [pptp1] LCP: SendConfigRej #4
Sep 29 13:21:51 backup2 mpd:  CALLBACK
Sep 29 13:21:52 backup2 mpd: [pptp1] LCP: SendConfigReq #204
Sep 29 13:21:52 backup2 mpd:  ACFCOMP
Sep 29 13:21:52 backup2 mpd:  PROTOCOMP
Sep 29 13:21:52 backup2 mpd:  MRU 1500
Sep 29 13:21:52 backup2 mpd:  MAGICNUM 55051356
Sep 29 13:21:52 backup2 mpd:  AUTHPROTO CHAP MSOFTv2
Sep 29 13:21:52 backup2 mpd:  MP MRRU 1600
Sep 29 13:21:52 backup2 mpd:  MP SHORTSEQ
Sep 29 13:21:52 backup2 mpd:  ENDPOINTDISC [802.1] 00 04 75 b5 bd 
ed
Sep 29 13:21:54 backup2 mpd: [pptp1] LCP: SendConfigReq #205
Sep 29 13:21:54 backup2 mpd:  ACFCOMP
Sep 29 13:21:54 backup2 mpd:  PROTOCOMP
Sep 29 13:21:54 backup2 mpd:  MRU 1500
Sep 29 13:21:54 backup2 mpd:  MAGICNUM 55051356
Sep 29 13:21:54 backup2 mpd:  AUTHPROTO CHAP MSOFTv2
Sep 29 13:21:54 backup2 mpd:  MP MRRU 1600
Sep 29 13:21:54 backup2 mpd:  MP SHORTSEQ
Sep 29 13:21:54 backup2 mpd:  ENDPOINTDISC [802.1] 00 04 75 b5 bd 
ed
Sep 29 13:21:55 backup2 mpd: [pptp1] LCP: rec'd Configure Request 
#5 link 0
(Req-Sent)
Sep 29 13:21:55 backup2 mpd:  MRU 1400
Sep 29 13:21:55 backup2 mpd:  MAGICNUM 067054b5
Sep 29 13:21:55 backup2 mpd:  PROTOCOMP
Sep 29 13:21:55 backup2 mpd:  ACFCOMP
Sep 29 13:21:55 backup2 mpd:  CALLBACK
Sep 29 13:21:55 backup2 mpd:    Not supported
Sep 29 13:21:55 backup2 mpd: [pptp1] LCP: not converging
Sep 29 13:21:55 backup2 mpd: [pptp1] LCP: parameter negotiation 
failed
Sep 29 13:21:55 backup2 mpd: [pptp1] LCP: state change Req-Sent --
> Stopped
Sep 29 13:21:55 backup2 mpd: [pptp1] LCP: LayerFinish
Sep 29 13:21:55 backup2 mpd: [pptp1] device: CLOSE event in state UP
Sep 29 13:21:55 backup2 mpd: pptp0-0: clearing call
Sep 29 13:21:55 backup2 mpd: pptp0-0: killing channel
Sep 29 13:21:55 backup2 mpd: [pptp1] PPTP call terminated
Sep 29 13:21:55 backup2 mpd: [pptp1] IFACE: Close event
Sep 29 13:21:55 backup2 mpd: [pptp1] IPCP: Close event
Sep 29 13:21:55 backup2 mpd: [pptp1] IPCP: state change Starting --> 
Initial
Sep 29 13:21:55 backup2 mpd: [pptp1] IPCP: LayerFinish
Sep 29 13:21:55 backup2 mpd: [pptp1] IFACE: Close event


Elore is koszonom., FS




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.770 / Virus Database: 517 - Release Date: 2004. 09. 27.





További információk a(z) BSD levelezőlistáról