You are not logged in.

#1 2012-05-13 17:58:44

carbolymer
Member
Registered: 2012-04-25
Posts: 42

NetworkManager - connection sharing through wifi does not work

Hello. I've got a problem with networkmanager. I'm trying do share internet connection through wifi with my ipad, but it seems, that it does not work (connection is estabilished, but wrong ip is obtained), log from everything.log: http://pastebin.com/raw.php?i=QkhCYZaK
At IPv4 tab of my Ad-hoc connection i have selected: "Shared to other computers".
Any ideas? My desired network configuration: internet <-> eth0 <-> pc <-> wlan0 <-> ipad

Offline

#2 2012-05-13 18:43:27

alex_anthony
Member
From: UK
Registered: 2007-09-25
Posts: 344

Re: NetworkManager - connection sharing through wifi does not work

Check you have dnsmasq installed.

Try also disabling ipv6 in the nm-connection-editor for that connection. It seems to be happily connecting to ipv4.

Offline

#3 2012-05-14 06:49:03

carbolymer
Member
Registered: 2012-04-25
Posts: 42

Re: NetworkManager - connection sharing through wifi does not work

I have dnsmasq installed:

May 13 18:56:45 nucleon NetworkManager[9655]: <info> Starting dnsmasq...
May 13 18:56:45 nucleon dnsmasq[1518]: started, version 2.61 cachesize 150
May 13 18:56:45 nucleon dnsmasq[1518]: compile time options: IPv6 GNU-getopt DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack
May 13 18:56:45 nucleon dnsmasq-dhcp[1518]: DHCP, IP range 10.42.0.10 -- 10.42.0.100, lease time 1h
May 13 18:56:45 nucleon dnsmasq[1518]: reading /etc/resolv.conf
May 13 18:56:45 nucleon dnsmasq[1518]: using nameserver 10.30.0.132#53
May 13 18:56:45 nucleon dnsmasq[1518]: using nameserver 10.30.0.133#53
May 13 18:56:45 nucleon dnsmasq[1518]: cleared cache

and IPv6 disabled and it did not help.

Offline

#4 2012-05-14 10:24:45

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: NetworkManager - connection sharing through wifi does not work

carbolymer wrote:

connection is estabilished, but wrong ip is obtained

Which ip is being assigned to your client? And what is it supposed to be? Perhaps briefly explain your network setup.


Burninate!

Offline

#5 2012-05-15 00:05:03

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,375

Re: NetworkManager - connection sharing through wifi does not work

I have gotten connection sharing to work through wifi and I use wicd.  Sometimes I have to disable wicd to allow it to work.  I set manually an ip address for the "wired" (sharing) side, and if I don't change anything through wicd, and then enable iptables with the proper masquerade, then it usually works.  The problem I commonly run into is even with my dhcp4 server running, it doesn't pass on some parameters such as nameserver.  I guess I'm doing it backwards from the way you're doing it, but some wifi cards don't allow it to run in certain modes.  Hostapd I think is what you want.

Last edited by nomorewindows (2012-05-15 00:10:01)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#6 2012-05-15 00:14:21

carbolymer
Member
Registered: 2012-04-25
Posts: 42

Re: NetworkManager - connection sharing through wifi does not work

On iPad this configuration is automatically set:
IP: 169.254.121.183
Mask: 255.255.0.0
Gateway / DNS / search domains / client ID: empty field

I tried also to set manually those settings:
IP addres: 10.42.0.2
Subnet: 255.255.255.0
Gateway: 10.42.0.1
DNS: 8.8.8.8
search domains empty

but it did not help also.

ifconfig from my pc:

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 10.42.0.1  netmask 255.255.255.0  broadcast 10.42.0.255

Any suggestions? Is there any way to setup manually connection sharing through wifi using network manager?

nomorewindows wrote:

I have gotten connection sharing to work through wifi and I use wicd.  Sometimes I have to disable wicd to allow it to work.  I set manually an ip address for the "wired" (sharing) side, and if I don't change anything through wicd, and then enable iptables with the proper masquerade, then it usually works.  The problem I commonly run into is even with my dhcp4 server running, it doesn't pass on some parameters such as nameserver.  I guess I'm doing it backwards from the way you're doing it, but some wifi cards don't allow it to run in certain modes.  Hostapd I think is what you want.

The problem is somewhere in configuration. On windows 7 connection sharing works properly, as I said, iPad recognises and connects to wifi network, the problem is that he does not obtain any information from dhcp server and whenever i try to connect to my PC using ssh client from an iPad - connection times out.

Last edited by carbolymer (2012-05-15 00:28:38)

Offline

#7 2012-05-15 00:25:09

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,375

Re: NetworkManager - connection sharing through wifi does not work

carbolymer wrote:

On iPad this configuration is automatically set:
IP: 169.254.121.183
Mask: 255.255.0.0
Gateway / DNS / search domains / client ID: empty field

I tried also to set manually those settings:
IP addres: 10.42.0.2
Subnet: 255.255.255.0
Gateway: 10.42.0.1
DNS: 8.8.8.8
search domains empty

but it did not help also.

ifconfig from my pc:

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 10.42.0.1  netmask 255.255.255.0  broadcast 10.42.0.255

Any suggestions? Is there any way to setup manually connection sharing through wifi using network manager?

You need to get the dhcp server to do it's job, the 169.254.x.x is a windows 98 automatic dhcp configuration trick in the absense of a real dhcp server.  8.8.8.8 I don't think is a real DNS server I could be wrong.  The dhcp server should also pass this on.  Your internet modem should have some numbers you can use.  Ping your wifi address to see if they are even attached, since setting IPs does no good if it doesn't attach to your wifi.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#8 2012-05-15 00:31:01

carbolymer
Member
Registered: 2012-04-25
Posts: 42

Re: NetworkManager - connection sharing through wifi does not work

Ping fails, and 8.8.8.8 is google DNS. Setting my real DNS gives no effect.

Offline

#9 2012-05-15 00:51:05

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,375

Re: NetworkManager - connection sharing through wifi does not work

If you can't ping from 10.42.0.1 to/from 10.42.0.2 then you don't have an ad hoc connection.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#10 2012-05-15 06:38:32

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: NetworkManager - connection sharing through wifi does not work

You can't simply assign a static ip to your wlan interface and another ip in the same subnet to your client and expect them to be able to communicate with eachother. This would work with a wired connection, but not with wireless.

As already suggested by nomorewindows, hostapd is probably what you want here.


Burninate!

Offline

Board footer

Powered by FluxBB