Description of problem: With FORWARD_IPV4=true in /etc/sysconfig/network, /proc/sys/net/ipv4/ip_forward is not set to 1 after restart of network.service How reproducible: Configure your Mageia PC to act as a gateway : https://wiki.mageia.org/en/Howto_use_NAT_to_share_your_connection Or use #drakgw (or ControlCenter/Networking/ShareConnexion) Check in /etc/shorewall/interfaces the zone "loc" of the subnetwork NIC Restart network #systemctl restart network Try internet acces on client device => not working On gateway type #sysctl -w net.ipv4.ip_forward=1 Try internet acces on client device => working Explanation : After a #systemctl restart network Test ip forwarding #cat /proc/sys/net/ipv4/ip_forward -> 0 Check parameter #grep FORWARD_IPV4 /etc/sysconfig/network -> FORWARD_IPV4=true This parameter is not used by /etc/rc.d/init.d/network This script has been changed since Mageia6 : the block # depreciated but we still use it. if [ -f /proc/sys/net/ipv4/ip_forward ] && [[ "$FORWARD_IPV4" = "yes" || "$FORWARD_IPV4" = "true" ]]; then action "Enabling IPv4 packet forwarding" sysctl -w net.ipv4.ip_forward=1 fi has been removed. I have re-installed it after the "./ifup ifcfg-lo" block, and got network sharing work again after restart of service network. The initial /etc/rc.d/init.d/network sets to 0 /proc/sys/net/ipv4/ip_forward at stop, but dont set it to 1 at start
Created attachment 11476 [details] /etc/sysconfig/network of Mageia7
Created attachment 11477 [details] /etc/sysconfig/network of Mageia6
Thank you for the report and your research. initscripts is committed by different people, so assigning this to the base system group.
Assignee: bugsquad => basesystem
CC: (none) => doktor5000
I have the same behaviour with an adittional issue. I have a "real" IP address into my mageia ethernet device connected to internet (190.146.0.0/16 network). After ran the drakgw I had to do the following in order to make things happen: 1- To write an 1 into ip_forward: echo 1 > /proc/sys/net/ipv4/ip_forward 2- To add the acl of my network to squid configuration file: 18a19 > acl real_ip_net src 190.146.0.0/16 39a41 > http_access allow real_ip_net After that everything begin to work smooth and nicely.
CC: (none) => gramo.gnu
Mageia 7 is EOL since July 1st 2021. There will not have any further bugfix for this release. You are encouraged to upgrade to Mageia 8 as soon as possible. @reporter, if this bug still apply with Mageia 8, please let us know it. @packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead. This bug report will be closed OLD if there is no further notice within 1st September 2021.
Bonjour Aurelien Yes, this bug still apply with Mageia 8. I reported since Mageia 4, I think. I use Mageia Live Gnome version, but I think it happens with all versions.
Version: 7 => 8CC: (none) => marja11
(In reply to Ricardo Naranjo from comment #6) > Yes, this bug still apply with Mageia 8. I reported since Mageia 4, I think. Somebody in forums confirmed that this issue still applies for Mageia 9.
Version: 8 => 9