This shows you the differences between two versions of the page.
ip_forwarding [2007/02/09 12:34] adam |
ip_forwarding [2016/11/25 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== IP Forwarding ===== | ||
- | To enable a machine to act as a gateway for a network: | ||
- | |||
- | echo " | ||
- | iptables -t nat -A POSTROUTING -s 192.168.1.0/ | ||
- | |||
- | Where 192.168.1.0/ | ||
- | |||
- | To make this permanent, on Debian/ | ||
- | |||
- | touch / | ||
- | chmod 755 / | ||
- | |||
- | And add the following the new file: | ||
- | |||
- | #!/bin/bash | ||
- | | ||
- | echo " | ||
- | iptables -t nat -A POSTROUTING -s 192.168.1.0/ | ||
- | | ||
- | For Red Hat/Fedora: | ||
- | |||
- | iptables-save | ||
- | |||
- | Good IP Tables Tutorial: | ||
- | * [[http:// | ||
- | * [[http:// |