DD-WRT Policy Based Routing?

Soldato
Joined
18 Oct 2002
Posts
4,773
Location
Kent
My brother moved to Belgium not long ago and he wants to use a VPN within his DD WRT router that only affects one or two devices in the network and as I understand it that means policy based routing.

In the examples i've seen people add an IP and then a forward slash with a number after it (192.168.1.10/24 for example). I haven't yet been able to find out what the forward slash and number means and I was hoping someone here might enlighten me.

Cheers.
 
My brother moved to Belgium not long ago and he wants to use a VPN within his DD WRT router that only affects one or two devices in the network and as I understand it that means policy based routing.

In the examples i've seen people add an IP and then a forward slash with a number after it (192.168.1.10/24 for example). I haven't yet been able to find out what the forward slash and number means and I was hoping someone here might enlighten me.

Cheers.

the slash number is a notation for expressing a subnet mask.
24 = 255.255.255.0

In this case the subnet mask effectively denotes the local area network range of 192.168.1.1-254

i.e. Any communication to a host with an address inside that range will be sent across the local area network, communication with other ip addresses will be routed through the gateway (your router).

It's probably possible to force all traffic from some local IP addresses (and/or VLANS/Specific ethernet ports) to go through a specific VPN, the method of achieving this will vary from one router/firmware to another. However dependant on the devices and VPN solution, you may prefer to simply continuously run the VPN software on the devices in question, which would effectively do the same, with the ability to switch it off at the device.

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=277575&sid=7bf818410200ed819d92fdd3e3eea2e7

The link says much the same, but also discusses selective routing for a specific type of VPN via DD WRT.
 
Thanks for that. The device he wants to use with a VPN is an Amazon FireTV and its a absolute pain trying to use VPN client apps on it hence this thread.
 
Just use a virtual router, configure that with the vpn and anything you want to go over the vpn, set them with the new router as the gateway.
 
Back
Top Bottom