permanent – Dan Vasile https://pentest.ro InfoSec Adventures Thu, 10 Dec 2020 11:11:22 +0000 en-US hourly 1 https://wordpress.org/?v=6.2.2 Permanent IP forwarding in Linux https://pentest.ro/2013/07/31/permanent-ip-forwarding-in-linux/ Wed, 31 Jul 2013 13:53:21 +0000 http://www.pentest.ro/?p=325 We usually do

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

when we want to enable forwarding in Linux.

If you want to make this change permanent, you need to edit the /etc/sysctl.conf file and add or uncomment the following line

net.ipv4.ip_forward = 1
]]>