Пытаюсь подключить машину PC-BSD 1.4.1.2 через pptpclient.
В общих чертах, соединение устанавливается, но пинга нет и внешняя сеть не доступна.ppp.conf:
vpn:
set authname name
set authkey pass
set timeout 0
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0
enable dnsppp.linkup:
vpn:
add default HISADDRустанавливаю соединение:
pptp server vpn &ifconfig:
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=9<RXCSUM,VLAN_MTU>
inet 10.100.3.167 netmask 0xffffff00 broadcast 10.100.3.255
ether 00:04:75:ec:c7:88
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
...
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 192.168.142.127 --> 172.16.16.1 netmask 0xffffffff
Opened by PID 26470netstat -rn:
Destination Gateway Flags Refs Use Netif Expire
default 10.100.3.1 UGS 0 443 xl0
10.100.3/24 link#1 UC 0 0 xl0
10.100.3.1 00:00:cd:24:e9:34 UHLW 2 1 xl0 1112
127.0.0.1 127.0.0.1 UH 0 0 lo0
172.16.16.1 192.168.142.127 UH 0 0 tun0ppp.log:
Mar 7 22:18:06 kloaka ppp[26470]: Phase: Using interface: tun0
Mar 7 22:18:06 kloaka ppp[26470]: Phase: deflink: Created in closed state
Mar 7 22:18:06 kloaka ppp[26470]: Phase: PPP Started (direct mode).
Mar 7 22:18:06 kloaka ppp[26470]: Phase: bundle: Establish
Mar 7 22:18:06 kloaka ppp[26470]: Phase: deflink: closed -> opening
Mar 7 22:18:06 kloaka ppp[26470]: Phase: deflink: Connected!
Mar 7 22:18:06 kloaka ppp[26470]: Phase: deflink: opening -> carrier
Mar 7 22:18:07 kloaka ppp[26470]: Phase: deflink: carrier -> lcp
Mar 7 22:18:08 kloaka ppp[26470]: Phase: bundle: Authenticate
Mar 7 22:18:08 kloaka ppp[26470]: Phase: deflink: his = CHAP 0x05, mine = none
Mar 7 22:18:08 kloaka ppp[26470]: Phase: Chap Input: CHALLENGE (19 bytes from server)
Mar 7 22:18:08 kloaka ppp[26470]: Phase: Chap Output: RESPONSE (name)
Mar 7 22:18:08 kloaka ppp[26470]: Phase: Chap Input: SUCCESS
Mar 7 22:18:08 kloaka ppp[26470]: Phase: deflink: lcp -> open
Mar 7 22:18:08 kloaka ppp[26470]: Phase: bundle: Network
Mar 7 22:18:08 kloaka ppp[26470]: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 22:18:08 kloaka ppp[26470]: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 22:18:08 kloaka ppp[26470]: Warning: Add route failed: 0.0.0.0/0 already exists
Mar 7 22:18:11 kloaka ppp[26470]: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Соединение есть, доступа в интернет нет.Дальше, добавляю в конфиг дополнительное логгирование:
set log phase chat lcp ipcp ccp tun command
устанавливаю соединение. ifconfig и netstat такие же как выше.
в логе:
...
Mar 7 22:49:56 kloaka ppp[47171]: tun0: Phase: bundle: Authenticate
Mar 7 22:49:56 kloaka ppp[47171]: tun0: Phase: deflink: his = CHAP 0x05, mine = none
Mar 7 22:49:56 kloaka ppp[47171]: tun0: LCP: deflink: RecvEchoRequest(0) state = Opened
Mar 7 22:49:56 kloaka ppp[47171]: tun0: LCP: deflink: SendEchoReply(0) state = Opened
Mar 7 22:49:56 kloaka ppp[47171]: tun0: Phase: Chap Input: CHALLENGE (21 bytes from server)
Mar 7 22:49:56 kloaka ppp[47171]: tun0: Phase: Chap Output: RESPONSE (name)
Mar 7 22:49:56 kloaka ppp[47171]: tun0: Phase: Chap Input: SUCCESS
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: FSM: Using "deflink" as a transport
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: State change Initial --> Closed
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: LayerStart.
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: MPPE: Not usable without CHAP81
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: SendConfigReq(1) state = Closed
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: DEFLATE[4] win 15
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: PRED1[2]
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: State change Closed --> Req-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: Phase: deflink: lcp -> open
Mar 7 22:49:56 kloaka ppp[47171]: tun0: Phase: bundle: Network
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: FSM: Using "deflink" as a transport
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: State change Initial --> Closed
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: LayerStart.
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: SendConfigReq(1) state = Closed
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: IPADDR[6] 0.0.0.0
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: PRIDNS[6] 62.117.85.76
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: SECDNS[6] 255.255.255.255
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: State change Closed --> Req-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: RecvConfigReq(1) state = Req-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: IPADDR[6] 172.16.16.1
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: SendConfigAck(1) state = Req-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: IPADDR[6] 172.16.16.1
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: State change Req-Sent --> Ack-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: RecvConfigReq(1) state = Req-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: [EMPTY]
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: SendConfigAck(1) state = Req-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: [EMPTY]
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: State change Req-Sent --> Ack-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: RecvConfigRej(1) state = Ack-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: DEFLATE[4] win 15
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: PRED1[2]
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: MPPE: Not usable without CHAP81
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: SendConfigReq(2) state = Ack-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: [EMPTY]
Mar 7 22:49:56 kloaka ppp[47171]: tun0: LCP: deflink: RecvProtocolRej(2) state = Opened
Mar 7 22:49:56 kloaka ppp[47171]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Mar 7 22:49:56 kloaka ppp[47171]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: RecvConfigRej(1) state = Ack-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: SendConfigReq(2) state = Ack-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: IPADDR[6] 0.0.0.0
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: PRIDNS[6] 62.117.85.76
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: SECDNS[6] 255.255.255.255
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: RecvConfigAck(2) state = Ack-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: [EMPTY]
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: State change Ack-Sent --> Opened
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: LayerUp.
Mar 7 22:49:56 kloaka ppp[47171]: tun0: CCP: deflink: Out = none[-1], In = none[-1]
Mar 7 22:49:56 kloaka ppp[47171]: tun0: LCP: deflink: RecvProtocolRej(3) state = Opened
Mar 7 22:49:56 kloaka ppp[47171]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Mar 7 22:49:56 kloaka ppp[47171]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: RecvConfigNak(2) state = Ack-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: IPADDR[6] 192.168.142.127
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: IPADDR[6] changing address: 0.0.0.0 --> 192.168.142.127
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: PRIDNS[6] 62.117.85.58
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: SECDNS[6] 62.117.85.76
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: Primary nameserver set to 62.117.85.58
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: Secondary nameserver set to 62.117.85.76
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: SendConfigReq(3) state = Ack-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: IPADDR[6] 192.168.142.127
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: PRIDNS[6] 62.117.85.58
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: SECDNS[6] 62.117.85.76
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: RecvConfigAck(3) state = Ack-Sent
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: IPADDR[6] 192.168.142.127
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: PRIDNS[6] 62.117.85.58
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: SECDNS[6] 62.117.85.76
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: State change Ack-Sent --> Opened
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: deflink: LayerUp.
Mar 7 22:49:56 kloaka ppp[47171]: tun0: IPCP: myaddr 192.168.142.127 hisaddr = 172.16.16.1
Mar 7 22:49:59 kloaka ppp[47171]: tun0: LCP: deflink: RecvProtocolRej(4) state = Opened
Mar 7 22:49:59 kloaka ppp[47171]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Mar 7 22:49:59 kloaka ppp[47171]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 22:50:02 kloaka ppp[47171]: tun0: LCP: deflink: RecvProtocolRej(5) state = Opened
Mar 7 22:50:02 kloaka
ppp[47171]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Mar 7 22:50:02 kloaka ppp[47171]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 22:50:05 kloaka ppp[47171]: tun0: LCP: deflink: RecvProtocolRej(6) state = Opened
Mar 7 22:50:05 kloaka ppp[47171]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Mar 7 22:50:05 kloaka ppp[47171]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 22:50:08 kloaka ppp[47171]: tun0: LCP: deflink: RecvProtocolRej(7) state = Opened
Mar 7 22:50:08 kloaka ppp[47171]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Mar 7 22:50:08 kloaka ppp[47171]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 22:50:26 kloaka ppp[47171]: tun0: LCP: deflink: RecvEchoRequest(1) state = Opened
...
Результат тот же.Ковыряю конфиги:
ppp.conf:
vpn:
set authname name
set authkey pass
set timeout 0
set ifaddr 0 0
add default HISADDR
enable dnsубираю ppp.linkup, запускаю соединение, зырю лог:
...
Mar 7 22:59:44 kloaka ppp[53584]: tun0: IPCP: myaddr 192.168.142.127 hisaddr = 172.16.16.1
Mar 7 22:59:44 kloaka ppp[53584]: tun0: Warning: 0.0.0.0/0: Change route failed: errno: No such process
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: Signal 15, terminate.
Mar 7 22:59:45 kloaka ppp[53584]: tun0: IPCP: deflink: LayerDown: 192.168.142.127
Mar 7 22:59:45 kloaka ppp[53584]: tun0: IPCP: deflink: SendTerminateReq(4) state = Opened
Mar
7 22:59:45 kloaka ppp[53584]: tun0: IPCP: deflink: State change Opened --> Closing
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: deflink: read (0): Got zero bytes
Mar 7 22:59:45 kloaka ppp[53584]: tun0: CCP: deflink: LayerDown.
Mar 7 22:59:45 kloaka ppp[53584]: tun0: CCP: deflink: State change Opened --> Starting
Mar 7 22:59:45 kloaka ppp[53584]: tun0: CCP: deflink: LayerFinish.
Mar 7 22:59:45 kloaka ppp[53584]: tun0: CCP: deflink: State change Starting --> Initial
Mar 7 22:59:45 kloaka ppp[53584]: tun0: LCP: deflink: LayerDown
Mar 7 22:59:45 kloaka ppp[53584]: tun0: LCP: deflink: State change Opened --> Starting
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: deflink: open -> lcp
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Warning: 0.0.0.0/0: Change route failed: errno: No such process
Mar 7 22:59:45 kloaka ppp[53584]: tun0: IPCP: deflink: LayerFinish.
Mar 7 22:59:45 kloaka ppp[53584]: tun0: IPCP: Connect time: 1 secs: 0 octets in, 824348 octets out
Mar 7 22:59:45 kloaka ppp[53584]: tun0: IPCP: 0 packets in, 1316 packets out
Mar 7 22:59:45 kloaka ppp[53584]: tun0: IPCP: total 824348 bytes/sec, peak 0 bytes/sec on Fri Mar 7 22:59:44 2008
Mar 7 22:59:45 kloaka ppp[53584]: tun0: IPCP: deflink: State change Closing --> Initial
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: bundle: Terminate
Mar 7 22:59:45 kloaka ppp[53584]: tun0: LCP: deflink: LayerFinish
Mar 7 22:59:45 kloaka ppp[53584]: tun0: LCP: deflink: State change Starting --> Initial
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: deflink: Disconnected!
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: deflink: Connect time: 3 secs: 464 octets in, 835768 octets out
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: deflink: 13 packets in, 1331 packets out
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: total 278744 bytes/sec, peak 125 bytes/sec on Fri Mar 7 22:59:44 2008
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: deflink: lcp -> closed
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: bundle: Dead
Mar 7 22:59:45 kloaka ppp[53584]: tun0: Phase: PPP Terminated (normal).Соединение умирает. При этом на сетевухе таки происходит смена шлюза с внутреннего на ... пустой.
Далее, выставляю:
vpn:
set authname name
set authkey pass
set timeout 0
set ifaddr 0 0
enable dnsсоединяюсь и смотрю лог:
...
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: IPADDR[6] changing address: 0.0.0.0 --> 192.168.142.127
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: PRIDNS[6] 62.117.85.58
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: SECDNS[6] 62.117.85.76
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: Primary nameserver set to 62.117.85.58
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: Secondary nameserver set to 62.117.85.76
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: deflink: SendConfigReq(3) state = Ack-Sent
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: IPADDR[6] 192.168.142.127
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: PRIDNS[6] 62.117.85.58
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: SECDNS[6] 62.117.85.76
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: deflink: RecvConfigAck(3) state = Ack-Sent
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: IPADDR[6] 192.168.142.127
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: PRIDNS[6] 62.117.85.58
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: SECDNS[6] 62.117.85.76
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: deflink: State change Ack-Sent --> Opened
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: deflink: LayerUp.
Mar 7 23:07:53 kloaka ppp[59991]: tun0: IPCP: myaddr 192.168.142.127 hisaddr = 172.16.16.1
Mar 7 23:07:53 kloaka ppp[59991]: tun0: Command: vpn: add default HISADDR
Mar 7 23:07:53 kloaka ppp[59991]: tun0: Warning: Add route failed: 0.0.0.0/0 already exists
Mar 7 23:07:56 kloaka ppp[59991]: tun0: LCP: deflink: RecvProtocolRej(4) state = Opened
Mar 7 23:07:56 kloaka ppp[59991]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Mar 7 23:07:56 kloaka ppp[59991]: tun0:
Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 23:07:59 kloaka ppp[59991]: tun0: LCP: deflink: RecvProtocolRej(5) state = Opened
Mar 7 23:07:59 kloaka ppp[59991]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Mar 7 23:07:59 kloaka ppp[59991]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 23:08:02 kloaka ppp[59991]: tun0: LCP: deflink: RecvProtocolRej(6) state = Opened
Mar 7 23:08:02 kloaka ppp[59991]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Mar 7 23:08:02 kloaka ppp[59991]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 23:08:05 kloaka ppp[59991]: tun0: LCP: deflink: RecvProtocolRej(7) state = Opened
Mar 7 23:08:05 kloaka ppp[59991]: tun0: LCP: deflink: -- Protocol 0x8057 (Internet Protocol V6 Control Protocol) was rejected!
Mar 7 23:08:05 kloaka ppp[59991]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Mar 7 23:08:22 kloaka ppp[59991]: tun0: LCP: deflink: RecvEchoRequest(1) state = Opened
Mar 7 23:08:22 kloaka ppp[59991]: tun0: LCP: deflink: SendEchoReply(1) state = OpenedПо ifconfig и netstat все как выше, в фаере (открыт) пакеты ходят туда-сюда, но ни пинга ни интернета нету.
Ума не приложу, как поднять это хозяйство.
Спасибо за советы.
>Пытаюсь подключить машину PC-BSD 1.4.1.2 через pptpclient.
>В общих чертах, соединение устанавливается, но пинга нет и внешняя сеть не
>доступна.пинговать надо шлюз и смотреть маршруты.
Попробуем почитать логи вслух:пункт первый, вступление ака прелюдия:
netstat -rn:
Destination Gateway Flags Refs Use Netif Expire
default 10.100.3.1 UGS 0 443 xl0пункт второй, он же последний:
>Mar 7 23:07:53 kloaka ppp[59991]: tun0: Warning: Add route failed: 0.0.0.0/0
>already existsЕсли вам нужен шлюз для доступа к впн-серверу, то пропишите маршрут к нему отдельной строкой, а не через 0.0.0.0/0, этим вы избежите конфликтов/итд
>[оверквотинг удален]
> 443 xl0
>
>пункт второй, он же последний:
>
>>Mar 7 23:07:53 kloaka ppp[59991]: tun0: Warning: Add route failed: 0.0.0.0/0
>>already exists
>
>Если вам нужен шлюз для доступа к впн-серверу, то пропишите маршрут к
>нему отдельной строкой, а не через 0.0.0.0/0, этим вы избежите конфликтов/итд
>так я нулевой и не прописывал. есть внутренний айпи (10.100.3.167)и шлюз (10.100.3.1).
при соединении, я так понял, меня должно перекидывать на новый адрес и шлюз. но этого не происходит. то есть, появляется
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 192.168.142.127 --> 172.16.16.1 netmask 0xffffffff
но эффекта нет.
какие маршруты нужно руками прописать?
спасибо.
У тебя не происходит смены дефолтового маршрута...
Попробуй руками прописать default на 172.16.16.1, если инет пойдет, то в ppp.conf
надо добавить строчку set defaultroute (вроде так, давно это уже было...)
>У тебя не происходит смены дефолтового маршрута...
>Попробуй руками прописать default на 172.16.16.1, если инет пойдет, то в ppp.conf
>так прописаны маршруты:
Destination Gateway Flags Refs Use Netif Expire
default 10.100.3.1 UGS 0 443 xl0
10.100.3/24 link#1 UC 0 0 xl0
10.100.3.1 00:00:cd:24:e9:34 UHLW 2 1 xl0 1112
127.0.0.1 127.0.0.1 UH 0 0 lo0
172.16.16.1 192.168.142.127 UH 0 0 tun0если руками добавлять - ругнется, что alredy exists
>надо добавить строчку set defaultroute (вроде так, давно это уже было...)
а разве add default HISADDR не для этого
Но то что фактически смены маршрута не происходит - факт.
убери дефолтный маршрут через 10.100.3.1 и у тебя все заведетсяесли впн гейт находится "гдето далеко" - пропиши маршрут к нему отдельно.
>
>убери дефолтный маршрут через 10.100.3.1 и у тебя все заведетсяесли я его убираю как doute delete default, то соединение сразу пропадает
>если впн гейт находится "гдето далеко" - пропиши маршрут к нему отдельно.
>где прописать?
>>
>>убери дефолтный маршрут через 10.100.3.1 и у тебя все заведется
>
>если я его убираю как doute delete default, то соединение сразу пропадает
>
>
>>если впн гейт находится "гдето далеко" - пропиши маршрут к нему отдельно.
>>
>
>где прописать?стукни в асю когда буду на месте, попробуем разобраться...
333989248