Автор: Midhawk
Дата сообщения: 24.06.2008 08:31
Делал все, как все писали. Итак, по порядку.
Мой IP 172.22.27.11, шлюз 172.22.27.254
VPN сервер: 172.22.100.11 (он на общем коммутаторе, т.е. сразу же после шлюза).
1. В файл /etc/ppp/ppp.conf добавляю:
VPN:
set authname [мое погоняло]
set authkey [мой пароль]
set timeout 0
set ifaddr 0 0
add default HISADDR
alias enable yes
2. В файл /etc/rc.conf добавляю (что в общем не обязательно)
static_routes="pptp"
route_pptp="172.22.0.0/16 172.22.27.254"
3. Пытаюсь запустить VPN:
#route del default
#route add -host 1.1.1.1 172.22.27.254
#route add -net 0/0 1.1.1.1
#pptp 172.22.100.11 VPN &
Замечание: сервер выдает IP адреса динамически: 192.168.3... и т.д.
Соединения нет, локальный ДНС теряется... Вот лог:
Jun 24 12:45:13 d00544a newsyslog[583]: logfile first created
Jun 24 12:50:10 d00544a ppp[834]: Phase: Using interface: tun0
Jun 24 12:50:10 d00544a ppp[834]: Phase: deflink: Created in closed state
Jun 24 12:50:10 d00544a ppp[834]: Warning: The alias command is deprecated
Jun 24 12:50:10 d00544a ppp[834]: Phase: PPP Started (direct mode).
Jun 24 12:50:10 d00544a ppp[834]: Phase: bundle: Establish
Jun 24 12:50:10 d00544a ppp[834]: Phase: deflink: closed -> opening
Jun 24 12:50:10 d00544a ppp[834]: Phase: deflink: Connected!
Jun 24 12:50:10 d00544a ppp[834]: Phase: deflink: opening -> carrier
Jun 24 12:50:11 d00544a ppp[834]: Phase: deflink: carrier -> lcp
Jun 24 12:50:12 d00544a ppp[834]: Phase: bundle: Authenticate
Jun 24 12:50:12 d00544a ppp[834]: Phase: deflink: his = CHAP 0x81, mine = none
Jun 24 12:50:12 d00544a ppp[834]: Phase: Chap Input: CHALLENGE (16 bytes from pptpd)
Jun 24 12:50:12 d00544a ppp[834]: Phase: Chap Output: RESPONSE (МОЕ_ПОГОНЯЛО)
Jun 24 12:50:12 d00544a ppp[834]: Phase: Chap Input: SUCCESS (S=55C2CF32D4D31A7D4CD84D8065CE0F017F4E8204)
Jun 24 12:50:12 d00544a ppp[834]: Phase: deflink: lcp -> open
Jun 24 12:50:12 d00544a ppp[834]: Phase: bundle: Network
Jun 24 12:50:12 d00544a ppp[834]: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Jun 24 12:50:12 d00544a ppp[834]: Warning: ff02:4::/32: Change route failed: errno: Network is unreachable
Jun 24 12:50:12 d00544a ppp[834]: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Jun 24 12:50:12 d00544a ppp[834]: Warning: iface add: ioctl(SIOCAIFADDR, 192.168.3.8 -> 1.1.1.1): File exists
Jun 24 12:50:12 d00544a ppp[834]: Error: ipcp_InterfaceUp: unable to set ip address
Jun 24 12:50:13 d00544a ppp[834]: Warning: ipv4_Input: IPCP not open - packet dropped
Jun 24 12:50:15 d00544a ppp[834]: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Jun 24 12:50:17 d00544a ppp[834]: Phase: deflink: open -> lcp
Jun 24 12:50:17 d00544a ppp[834]: Warning: ff02:4::/32: Change route failed: errno: Network is unreachable
Jun 24 12:50:17 d00544a ppp[834]: Phase: bundle: Terminate
Jun 24 12:50:17 d00544a ppp[834]: Phase: Signal 15, terminate.
Jun 24 12:50:17 d00544a ppp[834]: Phase: Signal 15, terminate.
Jun 24 12:50:20 d00544a ppp[834]: Phase: deflink: Disconnected!
Jun 24 12:50:20 d00544a ppp[834]: Phase: deflink: Connect time: 10 secs: 640 octets in, 420 octets out
Jun 24 12:50:20 d00544a ppp[834]: Phase: deflink: 17 packets in, 16 packets out
Jun 24 12:50:20 d00544a ppp[834]: Phase: total 106 bytes/sec, peak 296 bytes/sec on Tue Jun 24 12:50:12 2008
Jun 24 12:50:20 d00544a ppp[834]: Phase: deflink: lcp -> closed
Jun 24 12:50:20 d00544a ppp[834]: Phase: bundle: Dead
Jun 24 12:50:20 d00544a ppp[834]: Phase: PPP Terminated (normal).