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

Ralf Jung ralfjung-e at gmx.de
Wed Aug 24 09:19:26 UTC 2011


Hi again,

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".

Kind regards,
Ralf





More information about the Pkg-utopia-maintainers mailing list