Hello,
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:
#iptables-save
but on reboot I have to do 1-2 steps again....to 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.
Thanks
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:
#iptables-save
but on reboot I have to do 1-2 steps again....to 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.
Thanks
In Firewall
Share this post:
Responses (1)
-
Accepted Answer
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.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »