машина имеет два выхода в мир один из которых по l2tp, он используется как дополнительный.
пытаюсь добиться соединения
em0 - 1 выход
em1 - 2 (l2tp)маршруты по умолчанию все через em0
em1 192.168.1.1 шлюз 192.168.1.254 впн 192.168.2.1
прописан маршрут route add -host 192.168.2.1 192.168.1.254
mpd5.conf
l2tp_client:
create bundle static B1
create link static L1 l2tp
set link action bundle B1
set auth authname "*****"
set auth password "*****"
set iface enable tcpmssfix
set link max-redial "10"
set link mtu 1460
set iface route default
set link keep-alive 20 75
set l2tp peer "192.168.2.1"
set l2tp self "192.168.1.1"
open
логи:
Jan 12 23:54:03 vpn-z mpd: L2TP: Initiating control connection 0x2862f008 192.168.1.1 0 <-> 192.168.2.1 1701
Jan 12 23:54:03 vpn-z mpd: L2TP: Control connection 0x2862f008 192.168.1.1 62063 <-> 192.168.2.1 1701 connected
Jan 12 23:54:03 vpn-z mpd: [L1] L2TP: Incoming call #1690000 via control connection 0x2862f008 initiated
Jan 12 23:54:03 vpn-z mpd: [L1] L2TP: Call #1690000 connected
Jan 12 23:54:07 vpn-z mpd: [L1] L2TP: Call #1690000 terminated locally
Jan 12 23:54:11 vpn-z mpd: [L1] L2TP: Incoming call #1690001 via control connection 0x2862f008 initiated
Jan 12 23:55:11 vpn-z mpd: [L1] L2TP: call #1690001 terminated: result=2 error=6 errmsg="control connection closing"
Jan 12 23:55:11 vpn-z mpd: L2TP: Control connection 0x2862f008 terminated: 6 (expecting reply; none received)
Jan 12 23:55:15 vpn-z mpd: L2TP: Initiating control connection 0x2862f408 192.168.1.1 0 <-> 192.168.2.1 1701
Jan 12 23:55:22 vpn-z mpd: L2TP: Control connection 0x2862f008 destroyed
Jan 12 23:56:15 vpn-z mpd: L2TP: Control connection 0x2862f408 terminated: 6 (expecting reply; none received)
Jan 12 23:56:19 vpn-z mpd: L2TP: Initiating control connection 0x2862f008 192.168.1.1 0 <-> 192.168.2.1 1701
Jan 12 23:56:20 vpn-z mpd: L2TP: Control connection 0x2862f008 192.168.1.1 54985 <-> 192.168.2.1 1701 connected
Jan 12 23:56:20 vpn-z mpd: [L1] L2TP: Incoming call #1690002 via control connection 0x2862f008 initiated
Jan 12 23:56:20 vpn-z mpd: [L1] L2TP: Call #1690002 connected
Jan 12 23:56:22 vpn-z mpd: [L1] L2TP: Call #1690002 terminated locally
Jan 12 23:56:26 vpn-z mpd: L2TP: Control connection 0x2862f408 destroyed
Jan 12 23:56:32 vpn-z mpd: L2TP: Control connection 0x2862f008 terminated: 0 (no more sessions exist in this tunnel)
Jan 12 23:56:43 vpn-z mpd: L2TP: Control connection 0x2862f008 destroyed