ip fowarding being reset

Discussion in 'HOWTO-Related Questions' started by ratcateme, Jan 11, 2009.

  1. ratcateme

    ratcateme New Member

    i am following this tutorial mainly i want the forwarding not DNS but i am looking into both when i go
    echo 1 > /proc/sys/net/ipv4/ip_forward
    cat /proc/sys/net/ipv4/ip_forward
    it will output "1" but when i reset the networking it says
    Shutting down interface eth0:                              [  OK  ]
    Shutting down interface eth1:                              [  OK  ]
    Shutting down loopback interface:                          [  OK  ]
    Disabling IPv4 packet forwarding:  net.ipv4.ip_forward = 0
    and when i go cat /proc/sys/net/ipv4/ip_forward i get "0"
    i have added "FORWARD_IPV4=YES" to /etc/sysconfig/network
    can anyone shed some light on where i went wrong?


  2. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/sysctl.conf?
  3. ratcateme

    ratcateme New Member

    i got it working another person gave me sysctl -w net.ipv4.ip_forward = 1 which i guess edited /etc/sysctl.conf and it works i was just getting very frustrated as there are lots of posts on the internet that say to get it working all you need is
    echo 1 > /proc/sys/net/ipv4/ip_forward
    but working now thanks


Share This Page