Ben's notes

Linux, Unix, network, radio...

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 revisionPrevious revision
Next revisionBoth sides next revision
migration_temporary_redirect [2015/04/07 16:02] – [Temporary redirect to other host] adminmigration_temporary_redirect [2015/04/07 16:03] admin
Line 6: Line 6:
   * Enable forwarding:<code>sysctl net.ipv4.ip_forward=1</code>   * Enable forwarding:<code>sysctl net.ipv4.ip_forward=1</code>
   * Forward port:<code>iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 2.2.2.2:443</code>   * Forward port:<code>iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 2.2.2.2:443</code>
-  * Allow forwarding: <code>-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 connection:<code>iptables -t nat -A POSTROUTING -j MASQUERADE</code>
migration_temporary_redirect.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1