I know that I can enable IP forward by echoing 1
to /proc/sys/net/ipv4/ip_forward
, but how can I make this permanent?
By the way I want another method rather than start up scripts, is there any?
routing
I know that I can enable IP forward by echoing 1
to /proc/sys/net/ipv4/ip_forward
, but how can I make this permanent?
By the way I want another method rather than start up scripts, is there any?
Best Answer
Edit /etc/sysctl.conf and search for the following lines:
Uncomment
net.ipv4.ip_forward=1
:Or in one line command :