drsound / fault_tolerant_router

A daemon, running in background on a Linux router or firewall, monitoring the state of multiple internet uplinks/providers and changing the routing accordingly. LAN/DMZ internet traffic is load balanced between the uplinks.
GNU General Public License v2.0
185 stars 20 forks source link

Examples of port forwarding in iptables template #26

Closed georgedorn closed 6 years ago

georgedorn commented 6 years ago

Before I added multiple uplinks, I had port forwarding working through rules like:

*nat
-A PREROUTING -p tcp -m tcp -i ppp0 --dport 8080 -j DNAT --to-destination 192.168.1.212:80

*filter
-A FORWARD -p tcp -d 192.168.1.212 --dport 8080 -j ACCEPT

Now it no longer works. What's the right way to do this once fault_tolerant_router is running things?