I have CentOS Linux 6 based software router. I have 2 local networks, lets say Local1
and Local2
. I have one Internet connection, and I have VPN connection that I run via this Internet one.
I use iptables
and DHCP server to share Internet connection. When I enable VPN, both Local1
and Local2
traffic goes through VPN, without VPN both local networks go directly to Internet.
My question follows: how to set up CentOS based software router to forward one local network via VPN and another one directly?