Originally Posted by alirezad
in the organization that I work , we should connect to wireless and then connect to a VPN server to access the internet.
for some works i need to connect to another vpn server in another country but i couldnt find a way to connect with multiple vpn connection at the same time in fedora .
i will be very thankful if you have any solution .
and sorry for my bad english .
Which VPN are you using ? openvpn ? vpnc ? other ?
Often the first vpn config routes all
accesses through the VPN, so then you just need to make a routing table entry to go directly through the interface to the second VPN server.
You probably want to make sure each VPN works individually, and also record the router setting which each VPN is up with
sudo ip route
You English is pretty good BTW.
---------- Post added at 08:18 PM ---------- Previous post was at 07:39 PM ----------
Also record any /etc/resolv.conf settings while each VPN is up. To correctly resolve the DNS addresses when you are connected to two VPNs/LANs you'll probably want to run your own trivial DNS server like ....
Lets say the first VPN connects you to a network for addresses 10.10.x.x and 10.11.x.x with DNS server 10.10.5.6 (name vpn1.com, myorg1.org)
And assume the second VPN connects you to 199.190.x.x with DNS server 126.96.36.199 (name vpn2.com and me2.org)
and let's assume your local lan is 192.168.168.x (dns server 192.168.168.77)
Then you can use dnsmasq server something like ....
/usr/sbin/dnsmasq --bind-interfaces --interface=lo \
--no-poll --all-servers --pid-file=/tmp/dnsmasq.pid --no-resolv \
--server=vpn1.com/myorg1.org 10.10.5.6 \
--server=0.10.in-addr.arpa,11.10.in-addr.arpa 10.10.5.6 \
You'll have to tweak that. The point is to route all the dns forward and reverse resolves to the correct dns server.