Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293053 - net-misc/networkmanager-0.8.0_pre20091105 broken connection sharing
Summary: net-misc/networkmanager-0.8.0_pre20091105 broken connection sharing
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-13 16:13 UTC by Alessandro Guido
Modified: 2010-08-17 14:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild.patch (untested.patch,655 bytes, patch)
2009-11-13 16:26 UTC, Alessandro Guido
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Guido 2009-11-13 16:13:01 UTC
./configure script for networkmanager needs the path of the iptables executable passed as an argument, like:

   ./configure --with-iptables=/path/to/iptables

The current ebuild only has:

   $(use_with connection-sharing iptables)

which translate to --with-iptables.
This sets the iptables path to yes, as you can see in the generated config.h

#define IPTABLES_PATH "yes"

You can verify this if you try to share your internet connection and see that syslog has several lines:
    yes --table filter --insert INPUT --in-interface eth1 --protocol tcp --destination-port 53 --jump ACCEPT

which obviously fails.

Reproducible: Always
Comment 1 Alessandro Guido 2009-11-13 16:26:55 UTC
Created attachment 210142 [details, diff]
ebuild.patch

Untested patch
Comment 2 Alessandro Guido 2009-11-13 16:47:07 UTC
(In reply to comment #1)
> Created an attachment (id=210142) [details]
> ebuild.patch
> 
> Untested patch
> 

Patch tested and seems ok.
Comment 3 Robert Piasek (RETIRED) gentoo-dev 2009-11-21 23:41:40 UTC
Configure scripts detects it's location automatically. If enabled configure checks for iptables location in /sbin and /usr/sbin:

AC_PATH_PROG(IPTABLES_PATH, iptables, [], $PATH:/sbin:/usr/sbin)

So if this doesn't work - it's a bug in NM code. I'll investigate it closer and consult with NM author.

Thanks for your report!
Comment 4 Robert Piasek (RETIRED) gentoo-dev 2010-08-17 14:50:54 UTC
Can you please test if you still have the same issue with NM-0.8.1?