подключаюсь по VPN с винды к серверу poptop на freebsd. Прописал поднимать интерфейс 10.10.0.10 и выдавать клиенту айпи 10.10.0.20 Но при подключении поднимается tun0 с 10.10.0.2 на сервере (а с 10.10.0.2 в сети есть машина). При старте pptpd ошибок нет.
на сервере есть интерфейс vlan c 10.10.0.1
Конфиги:
/usr/local/etc/pptpd.conf:
debug
noipparam
localip 10.10.0.10
remoteip 10.10.0.20-30
pidfile /var/run/pptpd.pid
/etc/ppp/ppp.conf:
default:
set log Phase Chat LCP IPCP CCP tun command
disable ipv6cp
pptp:
enable mschapv2
accept mschapv2
enable mppe
enable lqr
disable deflate pred1
deny deflate pred1
set timeout 0
set ifaddr 10.10.0.10 10.10.0.20-10.10.0.30 255.255.255.0 0.0.0.0
allow mode direct
accept dns
set dns 8.8.8.8 10.10.0.1
enable proxy
/etc/ppp/ppp.secret:
login passxxxxxxxxxxx 10.10.0.20
в логах ppp частично:
tun0: CCP: deflink: RecvConfigReq(8) state = Req-Sent
tun0: CCP: MPPE[6] value 0x01000040 (128 bits, stateless)
tun0: CCP: deflink: SendConfigAck(8) state = Req-Sent
tun0: CCP: MPPE[6] value 0x01000040 (128 bits, stateless)
tun0: CCP: deflink: State change Req-Sent --> Ack-Sent
tun0: IPCP: deflink: RecvConfigReq(9) state = Req-Sent
tun0: IPCP: IPADDR[6] 0.0.0.0
tun0: IPCP: PRIDNS[6] 0.0.0.0
tun0: IPCP: SECDNS[6] 0.0.0.0
tun0: IPCP: deflink: SendConfigNak(9) state = Req-Sent
tun0: IPCP: IPADDR[6] 10.10.0.2
tun0: IPCP: PRIDNS[6] 8.8.8.8
tun0: IPCP: SECDNS[6] 10.10.0.1
tun0: CCP: deflink: RecvConfigAck(2) state = Ack-Sent
tun0: CCP: MPPE[6] value 0x00000040 (128 bits, stateful)
tun0: CCP: deflink: State change Ack-Sent --> Opened
tun0: CCP: deflink: LayerUp.
tun0: CCP: MPPE: Input channel initiated
tun0: CCP: MPPE: Output channel initiated
tun0: CCP: deflink: Out = MPPE[18], In = MPPE[18]
tun0: LCP: Reducing MTU from 1400 to 1398 (CCP requirement)
tun0: Warning: ff02::/: Change route failed: errno: Network is unreachable
tun0: IPCP: deflink: RecvConfigRej(2) state = Req-Sent
tun0: IPCP: IPADDR[6] 0.0.0.0
tun0: IPCP: deflink: SendConfigReq(3) state = Req-Sent
tun0: IPCP: IPADDR[6] 0.0.0.0
tun0: IPCP: deflink: RecvConfigReq(10) state = Req-Sent
tun0: IPCP: IPADDR[6] 10.10.0.2
tun0: IPCP: PRIDNS[6] 8.8.8.8
tun0: IPCP: SECDNS[6] 10.10.0.1
tun0: IPCP: deflink: SendConfigAck(10) state = Req-Sent
tun0: IPCP: IPADDR[6] 10.10.0.2
tun0: IPCP: PRIDNS[6] 8.8.8.8
tun0: IPCP: SECDNS[6] 10.10.0.1
tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent
tun0: IPCP: deflink: RecvConfigRej(3) state = Ack-Sent
tun0: IPCP: IPADDR[6] 0.0.0.0
tun0: IPCP: deflink: SendConfigReq(4) state = Ack-Sent
tun0: IPCP: IPADDR[6] 0.0.0.0
tun0: IPCP: deflink: RecvConfigRej(4) state = Ack-Sent
tun0: IPCP: IPADDR[6] 0.0.0.0
tun0: IPCP: deflink: SendConfigReq(5) state = Ack-Sent
tun0: IPCP: IPADDR[6] 0.0.0.0
tun0: IPCP: deflink: RecvConfigRej(5) state = Ack-Sent