Hi, i'm not being lazy, but have trawled and googled but not found a definitive answer.
Hopefully adding this to the list so it can be googled and may help others even if the end result is pointing me to a faq or other doc.
So, i'm not asking about forwarding from the external interface vlan1 to internal machines. That's easy enough.
Briefly, i want a certain host in my local network to have all it's traffic forwarded back and forth to a openvpn tun0 interface. Thus i need two MASQUERADING (or SNAT ??) rules i think.
So, on my openwrt, i essentially have two WAN interfaces
1. vlan1 to the WAN (lets say this ip is WAN_IP0 and gateway GW_IP0)
2. br0 internal LAN (lets say the ip addresses in the LAN is 10.0.0.x)
3. tun0 to a remote WAN p-t-p host (lets say this is WAN_IP1 and ptp IP is GW_IP1)
Now i need all traffic from an internal lan host, say 10.0.0.5 to be routed thru tun0. I should just be able to use iproute2 to do the forwarding, but can't for the life of me get it to work. I'm trying to integrate this into the /etc/init.d/S45firewall scripts so i don't have to make too many changes.
If i can do this then the next step would be to just tunnel HTTP(s) traffic to that interface by doing traffic classification (policy routing) using iptables and iproute, but first i need to know how to get all the traffic from a single host to be forwarded to the secondary WAN interface. I don't have the luxury to try too much combinations as i've already locked myself once out of the router and had to reboot, so wife-approval-factor is diminishing.
Thanks
(Last edited by dm66 on 4 Apr 2007, 10:12)