How do I turn on IP forwarding on the fly in Linux?



  • # cat /proc/sys/net/ipv4/ip_forward
    0
    
    # echo 1 > /proc/sys/net/ipv4/ip_forward
    
    # cat /proc/sys/net/ipv4/ip_forward
    1
    

    Note: this change will not be persistent after a reboot.


Log in to reply
 

© Lightnetics 2024