Routing in Ubuntu
Posted on 2013-05-09
I have two network 192.168.1.0 and 192.168.2.0 connected by VPN connection. At the moment, users in network 1.0 can go internet by pass router 192.168.1.1 and this router has the rule forwarded all internal application connection will through VPN tunnel.
For permit the users not to go to internet except VPN application, I built the Ubuntu server had IP 192.168.1.2 and set the default gateway of clients to this IP.
Please advise me how to do the routing in Ubuntu to forward all VPN connection to network 2 and block any internet connection.