Routing through iptables

view full story

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( 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 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)