IP forwarding enabled at startup?


Recommended Posts

I can't seem to get IP forwarding to turn on by default at startup.

I've altered the kernel config in: /etc/sysctl.conf

and changed:

net.ipv4.ip_forward = 1

I've also added the following line in: /etc/sysconfig/network

FORWARD_IPV4=true

Which is what pages on the internet seem to suggest I do. But when I reboot and do a:

cat /proc/sys/net/ipv4/ip_forward

i get a big fat "0" returned.

If I do

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

it will enable it for the session. I'm unfamiliar with what is automatically executed at startup. Is there anywhere I can just add the "echo 1 > /proc/sys/net/ipv4/ip_forward" so that on reboot it does that? What about just setting up the config file correctly to begin with? I'm in Fedora Core 3.

Thanks for you time and input!

-nic

Link to comment
https://www.neowin.net/forum/topic/259882-ip-forwarding-enabled-at-startup/
Share on other sites

Look at /etc/sysctl.conf

# Disables packet forwarding
#net.ipv4.ip_forward = 0

change it to a 1 and uncomment it

then restart your network

I don't use Fedora but I remember a long time ago when I was using Redhat 9 I had to use this file. It is the same for gentoo.

correct me if I am wrong

**** Whoops, I am sorry I didn't see that you already tried that.... sorry... **** mods delete this post please

I would do what sentio says and append it to your rc.local

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.