amanshukor
Hi,
Now I had 2 computer with both have their own internet connection.
Each of them connected to their own Private Network.
1 of my computer had failed, now I need both network to work.
I know that some might say that "just repair the other one", this will not helping to let you know first.
The situation still same just I had 1 computer left.
I connect both the internet to the pc and now I want to connect each of them to their own VPN.
As example below
____ WAN 1 ----- VPN 1
[pc] ----|
____ WAN 2 ----- VPN 2
I had my idea but didn't test it yet...
Below is my idea,
I will manually add the route as how it do automatically.
ifconfig tun0 10.8.0.6 pointopoint 10.8.0.5 mtu 1500
route add -net VPN1 netmask 255.255.255.255 gw WAN1
*route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.8.0.5
*route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.8.0.5
*route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.8.0.5
*route add -net 10.8.0.1 netmask 255.255.255.255 gw 10.8.0.5
ifconfig tun0 10.9.0.6 pointopoint 10.9.0.5 mtu 1500
route add -net VPN2 netmask 255.255.255.255 gw WAN2
*route add -net 0.0.0.0 netmask 128.0.0.0 gw 10.9.0.5
*route add -net 128.0.0.0 netmask 128.0.0.0 gw 10.9.0.5
*route add -net 10.9.0.0 netmask 255.255.255.0 gw 10.9.0.5
*route add -net 10.9.0.1 netmask 255.255.255.255 gw 10.9.0.5
As the * will be add automatically by OpenVPN, I just need to manually add the non * command
so that both of the network will use the right one.
I just want to prevent [pc] -- WAN 1 --- VPN1 -- VPN2 route...
Any can give idea how can I achieve this ....