Необходимо настроить VPN канал между двумя локалками, каждая подключена к inet через прокси сервер на FreeBSD (squid, ipfw,natd).
Для организации канала хочу использовать программу mpd.
Какие надо прописать настройки, какие порты надо открыть в ipfw???
настроил на одном конце mpd-server . с компами из вне кооторые имеют реальные ip всё работает прекрасно . а вот из под nаtd не работает
вот лог mpd
Apr 3 08:46:19 mail mpd: mpd: PPTP connection from 62.219.41.13:1062
Apr 3 08:46:19 mail mpd: pptp0: attached to connection with 62.219.41.13:1062
Apr 3 08:46:19 mail mpd: [pptp0] IFACE: Open event
Apr 3 08:46:19 mail mpd: [pptp0] IPCP: Open event
Apr 3 08:46:19 mail mpd: [pptp0] IPCP: state change Initial --> Starting
Apr 3 08:46:19 mail mpd: [pptp0] IPCP: LayerStart
Apr 3 08:46:19 mail mpd: [pptp0] IPCP: Open event
Apr 3 08:46:19 mail mpd: [pptp0] bundle: OPEN event in state CLOSED
Apr 3 08:46:19 mail mpd: [pptp0] opening link "pptp0"...
Apr 3 08:46:19 mail mpd: [pptp0] link: OPEN event
Apr 3 08:46:19 mail mpd: [pptp0] LCP: Open event
Apr 3 08:46:19 mail mpd: [pptp0] LCP: state change Initial --> Starting
Apr 3 08:46:19 mail mpd: [pptp0] LCP: LayerStart
Apr 3 08:46:19 mail mpd: [pptp0] LCP: LayerStart
Apr 3 08:46:19 mail mpd: [pptp0] device: OPEN event in state DOWN
Apr 3 08:46:19 mail mpd: [pptp0] attaching to peer's outgoing call
Apr 3 08:46:19 mail mpd: [pptp0] device is now in state OPENING
Apr 3 08:46:19 mail mpd: [pptp0] device: UP event in state OPENING
Apr 3 08:46:19 mail mpd: [pptp0] device is now in state UP
Apr 3 08:46:19 mail mpd: [pptp0] link: UP event
Apr 3 08:46:19 mail mpd: [pptp0] link: origination is remote
Apr 3 08:46:19 mail mpd: [pptp0] LCP: Up event
Apr 3 08:46:19 mail mpd: [pptp0] LCP: state change Starting --> Req-Sent
Apr 3 08:46:19 mail mpd: [pptp0] LCP: phase shift DEAD --> ESTABLISH
Apr 3 08:46:19 mail mpd: [pptp0] LCP: SendConfigReq #253
Apr 3 08:46:19 mail mpd: ACFCOMP
Apr 3 08:46:19 mail mpd: PROTOCOMP
Apr 3 08:46:19 mail mpd: MRU 1500
Apr 3 08:46:19 mail mpd: MAGICNUM 082b750c
Apr 3 08:46:19 mail mpd: AUTHPROTO CHAP MSOFT
Apr 3 08:46:19 mail mpd: pptp0-0: ignoring SetLinkInfo
Apr 3 08:46:21 mail mpd: [pptp0] LCP: SendConfigReq #254
Apr 3 08:46:21 mail mpd: ACFCOMP
Apr 3 08:46:21 mail mpd: PROTOCOMP
Apr 3 08:46:21 mail mpd: MRU 1500
Apr 3 08:46:21 mail mpd: MAGICNUM 082b750c
Apr 3 08:46:21 mail mpd: AUTHPROTO CHAP MSOFT
Apr 3 08:46:23 mail mpd: [pptp0] LCP: SendConfigReq #255
Apr 3 08:46:23 mail mpd: ACFCOMP
Apr 3 08:46:23 mail mpd: PROTOCOMP
Apr 3 08:46:23 mail mpd: MRU 1500
Apr 3 08:46:23 mail mpd: MAGICNUM 082b750c
Apr 3 08:46:23 mail mpd: AUTHPROTO CHAP MSOFT
Apr 3 08:46:25 mail mpd: [pptp0] LCP: SendConfigReq #0
Apr 3 08:46:25 mail mpd: ACFCOMP
Apr 3 08:46:25 mail mpd: ACFCOMP
Apr 3 08:46:25 mail mpd: PROTOCOMP
Apr 3 08:46:25 mail mpd: MRU 1500
Apr 3 08:46:25 mail mpd: MAGICNUM 082b750c
Apr 3 08:46:25 mail mpd: AUTHPROTO CHAP MSOFT
Apr 3 08:46:27 mail mpd: [pptp0] LCP: SendConfigReq #1
Apr 3 08:46:27 mail mpd: ACFCOMP
Apr 3 08:46:27 mail mpd: PROTOCOMP
Apr 3 08:46:27 mail mpd: MRU 1500
Apr 3 08:46:27 mail mpd: MAGICNUM 082b750c
Apr 3 08:46:27 mail mpd: AUTHPROTO CHAP MSOFT
Apr 3 08:46:29 mail mpd: [pptp0] LCP: SendConfigReq #2
Apr 3 08:46:29 mail mpd: ACFCOMP
Apr 3 08:46:29 mail mpd: PROTOCOMP
Apr 3 08:46:29 mail mpd: MRU 1500
Apr 3 08:46:29 mail mpd: MAGICNUM 082b750c
Apr 3 08:46:29 mail mpd: AUTHPROTO CHAP MSOFT
Apr 3 08:46:31 mail mpd: [pptp0] LCP: SendConfigReq #3
Apr 3 08:46:31 mail mpd: ACFCOMP
Apr 3 08:46:31 mail mpd: PROTOCOMP
Apr 3 08:46:31 mail mpd: MRU 1500
Apr 3 08:46:31 mail mpd: MAGICNUM 082b750c
Apr 3 08:46:31 mail mpd: AUTHPROTO CHAP MSOFT
Apr 3 08:46:33 mail mpd: [pptp0] LCP: SendConfigReq #4
Apr 3 08:46:33 mail mpd: ACFCOMP
Apr 3 08:46:33 mail mpd: PROTOCOMP
Apr 3 08:46:33 mail mpd: MRU 1500
Apr 3 08:46:33 mail mpd: MAGICNUM 082b750c
Apr 3 08:46:33 mail mpd: AUTHPROTO CHAP MSOFT
Apr 3 08:46:35 mail mpd: [pptp0] LCP: SendConfigReq #5
Apr 3 08:46:35 mail mpd: ACFCOMP
Apr 3 08:46:35 mail mpd: PROTOCOMP
Apr 3 08:46:35 mail mpd: MRU 1500
Apr 3 08:46:39 mail mpd: [pptp0] LCP: state change Req-Sent --> Stopped
Apr 3 08:46:39 mail mpd: [pptp0] LCP: LayerFinish
Apr 3 08:46:39 mail mpd: [pptp0] LCP: parameter negotiation failed
Apr 3 08:46:39 mail mpd: [pptp0] LCP: LayerFinish
Apr 3 08:46:39 mail mpd: [pptp0] device: CLOSE event in state UP
Apr 3 08:46:39 mail mpd: pptp0-0: clearing call
Apr 3 08:46:39 mail mpd: pptp0-0: killing channel
Apr 3 08:46:39 mail mpd: [pptp0] PPTP call terminated
Apr 3 08:46:39 mail mpd: [pptp0] IFACE: Close event
Apr 3 08:46:39 mail mpd: [pptp0] IPCP: Close event
Apr 3 08:46:39 mail mpd: [pptp0] IPCP: state change Starting --> Initial
Apr 3 08:46:39 mail mpd: [pptp0] IPCP: LayerFinish
Apr 3 08:46:39 mail mpd: [pptp0] IFACE: Close event
Apr 3 08:46:39 mail mpd: pptp0: closing connection with 62.219.41.13:1062
Apr 3 08:46:39 mail mpd: [pptp0] IFACE: Close event
Apr 3 08:46:39 mail mpd: [pptp0] device is now in state CLOSING
Apr 3 08:46:39 mail mpd: [pptp0] bundle: CLOSE event in state OPENED
Apr 3 08:46:39 mail mpd: [pptp0] closing link "pptp0"...
Apr 3 08:46:39 mail mpd: [pptp0] device: CLOSE event in state CLOSING
Apr 3 08:46:39 mail mpd: [pptp0] device is now in state CLOSING
Apr 3 08:46:39 mail mpd: pptp0: invalid length 16 for type 4
Apr 3 08:46:39 mail mpd: pptp0: killing connection with 62.219.41.13:1062
Apr 3 08:46:39 mail mpd: [pptp0] link: CLOSE event
Apr 3 08:46:39 mail mpd: [pptp0] LCP: Close event
Apr 3 08:46:39 mail mpd: [pptp0] LCP: state change Stopped --> Closed
Apr 3 08:46:39 mail mpd: [pptp0] device: DOWN event in state CLOSING
Apr 3 08:46:39 mail mpd: [pptp0] device is now in state DOWN
Apr 3 08:46:39 mail mpd: [pptp0] link: DOWN event
Apr 3 08:46:39 mail mpd: [pptp0] LCP: Down event
Apr 3 08:46:39 mail mpd: [pptp0] LCP: state change Closed --> Initial
Apr 3 08:46:39 mail mpd: [pptp0] LCP: phase shift ESTABLISH --> DEAD
Apr 3 08:46:39 mail mpd: [pptp0] device: DOWN event in state DOWN
Apr 3 08:46:39 mail mpd: [pptp0] device is now in state DOWN
Apr 3 08:46:39 mail mpd: [pptp0] device is now in state DOWN
Apr 3 08:46:39 mail mpd: [pptp0] link: DOWN event
Apr 3 08:46:39 mail mpd: [pptp0] LCP: Down event
|