Routering local traffic over VPN

Hi all,

I’m trying to route all local traffic from interface ether2 over the pptp vpn gateway.

I’ve added a route to route a traffic with destination 10.0.0.0/8 to go over the pptp vpn gatway.
This works, as i can ping and traceroute some of the local ip addreses via de webinterface.

The only thing that i have not yet figured out are the firewall rules that i need to add to let traffic from interface ether2 use this route.

Can some one help me out :slight_smile: ?

If I understand what you mean, you can create a prerouting mangle rule to mark packets from ether2 as VPN or similar, and then use the same routing mark for the route to 10.0.0.0/8 :slight_smile:

Don’t forget to create a masquerade NAT rule for everything going through the VPN.