Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


migration_temporary_redirect

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
migration_temporary_redirect [2015/04/07 18:06]
admin
migration_temporary_redirect [2015/04/07 18:09]
admin [Temporary redirect traffic to other host]
Line 8: Line 8:
   * Allow forwarding: <code>iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT   * Allow forwarding: <code>iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
 iptables -A FORWARD -p tcp -d 2.2.2.2 --dport 443 -j ACCEPT</code> iptables -A FORWARD -p tcp -d 2.2.2.2 --dport 443 -j ACCEPT</code>
-  * Masquerade outgoing connection:<code>iptables -t nat -A POSTROUTING -j MASQUERADE</code>+  * Masquerade outgoing connections:<code>iptables -t nat -A POSTROUTING -j MASQUERADE</code>
   * Show active rules:<code>iptables -nvL -t nat</code>   * Show active rules:<code>iptables -nvL -t nat</code>
   * Delete rules:   * Delete rules:
migration_temporary_redirect.txt ยท Last modified: 2015/04/07 18:09 by admin