/proc/net/ip_fprward??

Discussion in 'Linux Networking' started by Ishwar Rattan, Jul 16, 2003.

  1. Hello,

    System is Mandrake-9.1 (2.4.20 kernel).

    What happened to ip_forwarding? How it is achieved in current
    kernels?

    -ishwar
     
    Ishwar Rattan, Jul 16, 2003
    #1
    1. Advertisements

  2. Ishwar Rattan

    Bit Twister Guest

    masquerading is enabled in /etc/sysctl.conf
    net.ipv4.ip_forward = 1

    and in /etc/sysconfig/network:
    FORWARD_IPV4=true

    Do not forget to update the firewall to allow masquerading
    something like
    iptables -t nat -A POSTROUTING -d ! 192.168.0.0/21 -j MASQUERADE
    and save the rules.
     
    Bit Twister, Jul 16, 2003
    #2
    1. Advertisements

  3. It's in /proc/sys/net/ipv4

    Davide
     
    Davide Bianchi, Jul 16, 2003
    #3
  4. As long as I have been forwarding, up to and including SuSE 8.2 with
    kernel 2.4.20:

    echo 1 > /proc/sys/net/ipv4/ip_forward

    Of course forwarding can also be influenced by firewall rules (iptables or
    ipchains).
     
    David Efflandt, Jul 16, 2003
    #4
  5. Ishwar Rattan

    ishwar Guest

    This looks like the problem. I did bring the firewall down (iptables) and
    forwarding was working. How do I fix it?

    The dial-in ppp uses the stattic IP w.x.y.z (in 192.168.x.x) -- only one modem
    and user. It was suggested

    iptables -t nat POSTROUTING -d ! 192.168.0.0/21 -j MASQUERADE

    when used generates error message? Man page says to use SNAT but I did not
    see any example usage?

    Any pointers will be appreciated.

    -ishwar
     
    ishwar, Jul 17, 2003
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.