3

Routing through iptables

view full story
linux-howto

http://unix.stackexchange.com – I have this vpn client that touches the routing table and then keeps watching it to exit if it gets touched. It is the kind of setup needed for an endpoint, such as a laptop. I want to use a small pc as vpn endpoint and route through it for other machines on my LAN(192.168.0.0/24). As I can't touch the routing table and all the packets are forced through the vpns tun0 device, I was thinking iptables could help me POSTROUTEing packets to the 192.168.0.0 network back to the eth1 device. I am not sure though, how would this work, because once it exits eth1 it should resolve the IPtoMAC because (HowTos)