Route all traffic of home network through VPN

Posted by user436118 on Super User See other posts from Super User or by user436118
Published on 2012-04-02T22:30:31Z Indexed on 2012/04/02 23:33 UTC
Read the original article Hit count: 187

Filed under:
|
|

I have a typical semi advanced home network scenario:

A cable modem - eth
A wireless router (netgear n600) eth and wlan
A home server (Running ubuntu 12.04 LTS, connected over wlan)
A bunch of wireless clients (wlan)

Lying around I have anoher cheaper wlan router, and two different USB wlan NIC's that are known to work with Linux.

ACTA struck. I want to route ALL of my WAN traffic through a remote server through a VPN.

For sake of completition, lets say there is a remote server running debian sqeeze where a VPN server is to be installed. The network is then to behave so that if the VPN is not operative, it is separated from the outside world. I am familiar with general system/network practices, but lack the specific detailed knowledge to accomplish this.

Please suggest the right approach, packages and configurations you'd use to reach said solution. I've also envisioned the following network configuration, please improve it if you see fit:

==LAN==

Client
ip:10.1.1.x
nm:255.0.0.0
gw:10.1.1.1 reached via WLAN

Wlan router 1:
ip: 10.1.1.1
nm:255.0.0.0
gw: 10.10.10.1 reached via ETH

Homeserver:  <<< VPN is initiated here, and the other endpoint is somewhere on the internet.
eth0:
ip:10.10.10.1
nm: 0.0.0.0
gw:192.168.0.1 reached via WLAN

Homeserver:
wlan0:
ip: 192.168.0.2
nm: 255.255.255.0
gw: 192.168.0.1 reached via WLAN

==WAN==

Wlan router 2:
ip: 192.168.0.1
nm: 0.0.0.0
gw: set via dhcp
uplink connector: cable modem


Cable Modem:
Remote DHCP.
Has on-board DHCP server for ethernet device that connects to it,
and only works this way.

All this WLAN fussery is because my home server is located in a part of the house where a cable link isnt possible unfortunately.

© Super User or respective owner

Related posts about ubuntu

Related posts about debian