[Pkg-utopia-maintainers] Bug#638995: Bug#638995: Bug#638995: network-manager: Sharing network connection does not work: NAT not set up properly

Michael Biebl biebl at debian.org
Tue Sep 6 22:52:41 UTC 2011


Am 24.08.2011 11:19, schrieb Ralf Jung:
> since testing the binaries did not work, I had a look at the source code (from
> git://git.debian.org/git/pkg-utopia/network-manager.git) and quickly found the
> offending line in 0.8.4.0: It's in nm-device.c, function start_sharing, line
> 2525:
> add_share_rule (req, "nat", "POSTROUTING --source %s/%s --destination ! %s/%s
> --jump MASQUERADE", str_addr, str_mask, str_addr, str_mask);
> The same line is, as far as I can tell, still present in the 0.9 tag.
>
> This fix should be as simple as moving that "!" before "--destination".

Thanks for the detailed bug report and the analysis and sorry for the 
breakage introduced by upgrading to nm 0.9.
I will add a breaks to network-manager against older versions of the kde 
frontend, to avoid such partial upgrades.

Regarding the bug at hand, I talked to upstream. The code in 
network-manager hasn't changed since 2008-08-15. But the iptables man 
page is imho pretty clear about the syntax.
So most likely nm was using the wrong syntax to begin with but former 
iptables versions did accept that and have become stricter in recent 
versions.
We currently try to verify if there were relevant changes in iptables.

Regards,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?





More information about the Pkg-utopia-maintainers mailing list