Hey, this is giving me a bit of trouble, but hopefully it's a simple solution for someone with more experience than I.
I have Tomato configured as an OpenVPN Client and am trying to use it to route traffic coming into the OpenVPN Server to an endpoint on the Tomato's LAN.
I have gotten it to work with port forwarding and such, so that Traffic comes into ServerX on port 1234, is passed through the VPN to Tomato, and then routed (based on port) to the proper endpoint IP.
I have done this by entering the iptables rule while ssh'd into Tomato.
However, if I reboot obviously this disappears, I've tried putting the iptables rule into Scripts > Firewall and Scripts > WAN UP but neither seem to do the trick.
For reference, my iptables rule is:
iptables -t nat -I PREROUTING -i tun11 -p tcp —dport 1234 -j DNAT —to-dest [192.168.12.34]
Any assistance would be great, thanks.