0 votes

I want to activate IP forwarding from internet to my inside servers. So i have enabled:
1. in sysctl net.ipv4.ip_forward=1
2. #iptables -P FORWARD ACCEPT

and it's working.

I saved the iptables:

but on reboot I have to do 1-2 steps work..

In which file I have to make modifications to work after a reboot.

It would be very helpul if this will be in future in webconfig. :)

Friday, October 08 2010, 12:41 PM
Share this post:
Responses (1)
  • Accepted Answer

    Friday, October 08 2010, 01:20 PM - #Permalink
    0 votes
    Any permanent changes to the firewall or anything you want to run when the firewall restarts should be put in /etc/rc.d/rc.firewall.local. Anything you want to run on start up should go into /etc/rc.d/rc.local.

    To make the first change permanent, in /etc/sysctl.conf change net.ipv4.ip_forward = 0 to 1. The file can be reloaded with a
    sysctl -p
    sysctl -w net.ipv4.route.flush=1

    From memory, although net.ipv4.ip_forward is set to 0 in /etc/sysctl.conf, ClearOS does some jiggery-pokery if is in gateway mode and sets /proc/sys/net/ipv4/ip_forward on the fly.
    The reply is currently minimized Show
Your Reply