Situation
Branch-office > vpn router > internet > RRAS server > main office
user: vpn-branch
Tab Dial in:
Network access permission: Allow access
Assign static ip: an ip in the RRAS range 192.168.13.114
Apply static route: 192.168.14.0 MASK 255.255.255.0 Metric 1
Now the router setup the connection and got the right ip
In route print
______________________________________________________________
Network Destination Netmask Gateway Interface Metric
192.168.14.0 255.255.255.0 192.168.13.114 192.168.13.2 23
_______________________________________________________________
when i ping a destination on the branch office there is a "General failure"
Now i run
route delete 192.168.14.0
route add 192.168.14.0 mask 255.255.255.0 192.168.13.114 metric 1
Network Destination Netmask Gateway Interface Metric192.168.14.0 255.255.255.0 192.168.13.114 192.168.13.2 24
Now everything works fine
So i need to recreate the route every time the vpn reconnect. what do i do wrong?
the full iptable
IPv4 Route Table===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 WANGW WAN 5
WAN.0 255.255.255.0 On-link WAN 261
Branchoffice1 255.255.255.255 On-link WAN 261
Branchoffice1BC 255.255.255.255 On-link WAN 261
Branchoffice2 255.255.255.255 WANGW WAN 6
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.11.0 255.255.255.0 On-link 192.168.19.4 110
192.168.11.255 255.255.255.255 On-link 192.168.19.4 266
192.168.12.0 255.255.255.0 192.168.13.100 192.168.13.2 23
192.168.13.1 255.255.255.255 On-link 192.168.13.1 266
192.168.13.2 255.255.255.255 On-link 192.168.13.2 279
192.168.13.100 255.255.255.255 192.168.13.100 192.168.13.2 24
192.168.13.114 255.255.255.255 192.168.13.114 192.168.13.2 24
192.168.14.0 255.255.255.0 192.168.13.114 192.168.13.2 24
192.168.19.4 255.255.255.255 On-link 192.168.19.4 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.13.1 266
224.0.0.0 240.0.0.0 On-link WAN 261
224.0.0.0 240.0.0.0 On-link 192.168.13.2 279
224.0.0.0 240.0.0.0 On-link 192.168.19.4 266
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.13.1 266
255.255.255.255 255.255.255.255 On-link WAN 261
255.255.255.255 255.255.255.255 On-link 192.168.13.2 279
255.255.255.255 255.255.255.255 On-link 192.168.19.4 266
===========================================================================