From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021016 Description of problem: sysctl gives ip_forward a value of 0 right after iptables gives it a value of 1. I did not have this problem with prior versions of redhat. Nov 22 04:12:07 tower iptables: Loading kernel modules ... Nov 22 04:12:07 tower iptables: net.ipv4.ip_forward = 1 Nov 22 04:12:07 tower iptables: net.ipv4.ip_dynaddr = 1 Nov 22 04:12:08 tower iptables: net.ipv4.conf.all.rp_filter = 1 Nov 22 04:12:08 tower iptables: Flushing Tables ... Nov 22 04:12:08 tower iptables: Create and populate custom rule chains ... Nov 22 04:12:08 tower iptables: Process INPUT chain ... Nov 22 04:12:08 tower iptables: Process FORWARD chain ... Nov 22 04:12:08 tower iptables: Process OUTPUT chain ... Nov 22 04:12:08 tower iptables: Load rules for nat table ... Nov 22 04:12:08 tower iptables: Load rules for mangle table ... Nov 22 04:12:08 tower rc: Starting iptables: succeeded Nov 22 04:12:08 tower sysctl: net.ipv4.ip_forward = 0 Nov 22 04:12:08 tower sysctl: net.ipv4.conf.default.rp_filter = 1 Nov 22 04:12:08 tower sysctl: kernel.sysrq = 0 Nov 22 04:12:08 toewr sysctl: kernel.core_uses_pid = 1 Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.During the install of redhat 8.0 I selected no firewall. 2.http://www.e3.com.au/firewall/ is were I got the script 3. install docs are inside the script and run the script 4. reboot Actual Results: during boot up, sysctl give ip_forward a value of 0 right after iptables give it a value of 1. Expected Results: ip_forward should have a value of 1 after iptables loads Additional info: I solved this issue by adding a line in the rc.local to get the gateway to work correctly. echo "1" > /proc/sys/net/ipv4/ip_forward Im not sure if it is a bug but it sure bugs me! hehe
It's not a bug, because you can choose what sysctl will do. Make sure you set net.ipv4.ip_forward = 1 in /etc/sysctl.conf You can edit it with your favourite editor or with the redhat-config-proc utility.