When using NetworkManager for connection sharing, the following error message is displayed in the kernel messages file. <info> Executing: /sbin/iptables --table nat --insert POSTROUTING --source 10.42.43.0/255.255.255.0 --destination ! 10.42.43.0/255.255.255.0 --jump MASQUERADE <warn> ** Command returned exit status 2. $ /sbin/iptables --table nat --insert POSTROUTING --source 10.42.43.0/255.255.255.0 --destination ! 10.42.43.0/255.255.255.0 --jump Bad argument `10.42.43.0/255.255.255.0' Try `iptables -h' or 'iptables --help' for more information. The patch (thanks to Ignacio Aguilera) changes the ordering of the arguments to iptables to make this command valid. The correct syntax should look like (NOTE the ! is now moved in front of the --destination argument): $ /sbin/iptables --table nat --insert POSTROUTING --source 10.42.43.0/255.255.255.0 ! --destination 10.42.43.0/255.255.255.0 --jump I can confirm this patch works with 0.8.4.0-r2 and the Arch Linux report mentions it works with networkmanager-0.9.0-1. Reproducible: Always
Created attachment 305673 [details, diff] Connection sharing patch
Should be fixed in latest version https://bugzilla.gnome.org/show_bug.cgi?id=658571