User Tools

Site Tools


ip_forwarding

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ip_forwarding [2007/02/09 12:34]
adam
ip_forwarding [2016/11/25 22:38] (current)
Line 13: Line 13:
   chmod 755 /etc/network/if-up.d/iptables   chmod 755 /etc/network/if-up.d/iptables
  
-And add the following the new file:+And add the following to the new file:
  
   #!/bin/bash   #!/bin/bash
Line 23: Line 23:
  
   iptables-save   iptables-save
 +
 +and edit /etc/sysctl.conf, changing the line ''net.ipv4.ip_forward=0'' to:
 +
 +  net.ipv4.ip_forward=1
 +
 +Then running sysctl -p to make sysctl restart with the new values.
  
 Good IP Tables Tutorial: Good IP Tables Tutorial:
   * [[http://iptables-tutorial.frozentux.net/iptables-tutorial.html]]   * [[http://iptables-tutorial.frozentux.net/iptables-tutorial.html]]
   * [[http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables]]   * [[http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables]]
ip_forwarding.txt ยท Last modified: 2016/11/25 22:38 (external edit)