tag:blogger.com,1999:blog-4950896403024987968.post8746674049069148318..comments2023-09-18T06:24:13.221-03:00Comments on Lamarque's blog: Wireless sharing with Plasma NM 0.9Lamarquehttp://www.blogger.com/profile/02689491144609928238noreply@blogger.comBlogger33125tag:blogger.com,1999:blog-4950896403024987968.post-40020521984591643742011-09-01T19:43:13.046-03:002011-09-01T19:43:13.046-03:00@Lamarque: Yeah I tried that but it just says that...@Lamarque: Yeah I tried that but it just says that it's not in range (Android 2.1 on Xperia X8).<br />Could you see any important errors in the log? It didn't look quite successful to me but I don't really know what to read into it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-3746756107996699412011-09-01T19:15:52.255-03:002011-09-01T19:15:52.255-03:00My phone (Symbian) does not always find ad-hoc acc...My phone (Symbian) does not always find ad-hoc access points, but if I force it connect passing the ssid it connects. I think some phones ignores ad-hoc connections or have troubles scanning them.Lamarquehttps://www.blogger.com/profile/02689491144609928238noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-65158184448404362942011-09-01T18:20:47.690-03:002011-09-01T18:20:47.690-03:00@Lamarque: I hope you don't regret posting thi...@Lamarque: I hope you don't regret posting this excellent article with all the questions flooding in ;-)<br /><br />Shutting down dnsmasq and re-configuring sort of worked: http://paste.ubuntu.com/680138/<br /><br />The last 10-12 lines in syslog clearly indicates some errors but ifconfig and iwconfig looks correct and Plasma NM shows the device as connected.<br /><br />The access point doesn't show up when scanning from my phone though.Thomas "Tanghus" Olsenhttps://www.blogger.com/profile/09985615004473965207noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-36716927846210766082011-09-01T13:14:29.243-03:002011-09-01T13:14:29.243-03:00@Thomas "Tanghus" Olsen, yes, dnsmasq sh...@Thomas "Tanghus" Olsen, yes, dnsmasq should not be started at boot because it will conflicts with the one NM tries to start when you activate the shared connection. The same is valid for any program that conflicts with NM's shared connection implementation: bind name server is another one that will conflicts, dhcpd is another one.<br /><br />Using dnsmasq is a valid approach to override dhcp's nameserver configuration. The problem is that you cannot run two dns nameservers (like dnsmasq and bind) or two dhcp servers (like dnsmasq and dhcpd) at the same time.<br /><br />@procuste, this line in the log<br /><br />Sep 1 15:54:14 linux-4upm NetworkManager[1402]: [1314885254.168013] [nm-device-wifi.c:1544] nm_device_wifi_set_mode(): (wlan0): error setting mode 2<br /><br />indicates NM is trying to configure the wifi card in infrastructure mode (mode 2), which is wrong, shared connection for wifi only works in adhoc mode (mode 1). You need to check your configuration and change your connection to use ad-hoc instead of infrastructure.Lamarquehttps://www.blogger.com/profile/02689491144609928238noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-51702148973903093692011-09-01T11:27:28.718-03:002011-09-01T11:27:28.718-03:00well, here is the NMlog of the guest machine using...well, here is the NMlog of the guest machine using:<br />opensuse 11.4<br />gnome 2.32 (Applet NetworkManager 0.8.2)<br /><br />here you can download the log(too many characters to paste here):<br />http://www.4shared.com/file/EJAvDsnC/NMlog_01set11-15.html<br /><br />:-) ciaoprocustehttps://www.blogger.com/profile/09356101088270858962noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-33637460306935734022011-09-01T05:50:33.668-03:002011-09-01T05:50:33.668-03:00@Lamarque: Sorry for all the non-Plasma NM questio...@Lamarque: Sorry for all the non-Plasma NM questions but I'm having a hard time wrapping my brain around how this works.<br /><br />Questions:<br />dnsmasq should not be started explicitly at boot?<br />Will networkmanager then automatically start dnsmasq when needed?<br /><br />Reason:<br />I use dnsmasq to set which DNS servers to use override the ones given by DHCP because Danish ISP's DNS-blocks certain domains.<br />Hmm. This leads me to another question: Am I using a wrong approach to override DNS servers?<br /><br />NetworkManager is great but sometimes it just feels like it was a lot easier 10-15 years ago ;-D (I know that's not the fact - I'm just not up-to-date on how to use it)Thomas "Tanghus" Olsenhttps://www.blogger.com/profile/09985615004473965207noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-59591221216200514102011-08-31T15:28:43.045-03:002011-08-31T15:28:43.045-03:00@Thomas "Tanghus" Olsen, you have dnsmas...@Thomas "Tanghus" Olsen, you have dnsmasq already running, connection sharing will not work until you close that instance of dnsmasq.<br /><br />@procuste, send me the NM log from the "guest" machine (the one which is trying to connect).Lamarquehttps://www.blogger.com/profile/02689491144609928238noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-90627077278559020802011-08-31T15:16:05.021-03:002011-08-31T15:16:05.021-03:00for me too it doesn't works, I created the &qu...for me too it doesn't works, I created the "Share Wireless Connection" on the host machine (suse 11.4, kde 4.7), but the other machine cannot connect, I tried with suse 11.4 and windows 7<br /><br />I tried also:<br />pla@linux-y7c9:~> ps auxw | grep dnsmasq<br />dnsmasq 7072 0.0 0.0 12956 1044 ? S 19:54 0:00 /usr/sbin/dnsmasq --conf-file /tmp/ttbcxqvgwa.conf --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=10.42.43.1 --dhcp-range=10.42.43.10,10.42.43.100,60m --dhcp-option=option:router,10.42.43.1 --dhcp-lease-max=50 --pid-file=/var/run/nm-dnsmasq-wlan0.pid<br />pla 9856 0.0 0.0 7804 828 pts/1 S+ 20:03 0:00 grep dnsmasq<br />pla@linux-y7c9:~> ^C<br />pla@linux-y7c9:~> <br /><br />and the only process with "bind" are rpcbind and dnsmaskprocustehttps://www.blogger.com/profile/09356101088270858962noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-42934817401869669272011-08-30T19:27:13.856-03:002011-08-30T19:27:13.856-03:00@Lamarque
dnsmasq 1420 0.0 0.0 6120 472 ? ...@Lamarque<br />dnsmasq 1420 0.0 0.0 6120 472 ? S Aug29 0:01 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new -h<br /><br />Wondering what the dpkg-* are for but it must be updates to the configuration. Last time I had to setup DNS servers (OpenDNS) in dnsmasq it was quite a hassle to get to work but from my notes it looks like the only thing I ended up changing was resolf-file.<br /><br />No bind running.<br /><br />btw, sorry for the late reply. I thought blogger automatically send out email notification on comments and I got caught up with other things meanwhile ;-)Thomas "Tanghus" Olsenhttps://www.blogger.com/profile/09985615004473965207noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-10465924627320451232011-08-28T19:51:05.900-03:002011-08-28T19:51:05.900-03:00@Thomas "Tanghus" Olsen, yes, all the sc...@Thomas "Tanghus" Olsen, yes, all the screenshot are from the host machine. There is not signal indication for ad-hoc networkms, which are the case of wifi shared connections.<br /><br />Is dnsmasq already running? Execute 'ps auxw | grep dnsmasq' and send the output.<br /><br />Do you have a nameserver (bind) running on your machine? If so then dnsmasq will not be able to run and the activation of the shared connection will fail.Lamarquehttps://www.blogger.com/profile/02689491144609928238noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-33698017892710566632011-08-28T19:26:25.578-03:002011-08-28T19:26:25.578-03:00Great article!
I'm having a bit of trouble get...Great article!<br />I'm having a bit of trouble getting it to work though.<br />Just to make sure: The configuration in the screenshots are all on the "host" machine; the one with the outbound Internet connection?<br /><br />I see the interface but with no indication of signal strength. /var/log/syslog shows a lot of information, which is too lengthy to post here. It seems like it tries to set up the interfaces, get's an error and takes down the interface again.<br />The relevant log lines being:<br /> dnsmasq exited with error: Network access problem (address in use; permissions; etc) (2)<br />Aug 28 23:48:08 tanghus NetworkManager[1212]: (wlan0): device state change: 8 -> 9 (reason 18)<br />Aug 28 23:48:08 tanghus NetworkManager[1212]: Activation (wlan0) failed for access point (Tanghus)<br />Aug 28 23:48:08 tanghus NetworkManager[1212]: Activation (wlan0) failed.<br />Aug 28 23:48:08 tanghus NetworkManager[1212]: (wlan0): device state change: 9 -> 3 (reason 0)<br />NetworkManager[1212]: (wlan0): deactivating device (reason: 0) dnsmasq exited with error: Network access problem (address in use; permissions; etc) (2)<br />NetworkManager[1212]: (wlan0): device state change: 8 -> 9 (reason 18)<br />NetworkManager[1212]: Activation (wlan0) failed for access point (Tanghus)<br />NetworkManager[1212]: Activation (wlan0) failed.<br />NetworkManager[1212]: (wlan0): device state change: 9 -> 3 (reason 0)<br />NetworkManager[1212]: (wlan0): deactivating device (reason: 0)<br />---snip----<br />NetworkManager[1212]: [1314568088.989946] [nm-device-wifi.c:1548] nm_device_wifi_set_mode(): (wlan0): error setting mode 2<br /><br />Can anyone decipher this? Well I get the 'Address already in use' message but why it is happening I don't get.<br /><br />It would be very cool to get this to work as I'm currently leaching on my neighbors unprotected network from my Android phone ;-)Thomas "Tanghus" Olsenhttps://www.blogger.com/profile/09985615004473965207noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-18200103653818110502011-08-23T15:11:17.651-03:002011-08-23T15:11:17.651-03:00Lamarque - many thanks! I finally realised the obv...Lamarque - many thanks! I finally realised the obvious.. I did not put the "client" to connect via ad-hoc. Am blushing all over but might help someone else confused. Works a treat now, great! Just saved money for a small router at home as no reason any longer :-DAnonymoushttps://www.blogger.com/profile/06227151380621015212noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-90654738350850119392011-08-23T09:35:08.442-03:002011-08-23T09:35:08.442-03:00Look at NM logs to know what is going on, also dis...Look at NM logs to know what is going on, also disables your firewall when testing the shared connection.<br /><br />dnsmasq implements both dns and dhcp servers. It is well known program used in most Linux wireless routers out there.<br /><br />Each distribution has its own way to configure firewall. I have never used Kubuntu, I do not know how it does it.Lamarquehttps://www.blogger.com/profile/02689491144609928238noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-3242357295909564632011-08-23T08:33:22.989-03:002011-08-23T08:33:22.989-03:00well, this goes over my head so to speak. Both com...well, this goes over my head so to speak. Both computers (for now only 2) are on Kubuntu 11.04 w KDE 4.7 but connection from one to the other does not work.<br /><br />So: does the "server" have to have dhcp server service running?<br /><br />Any guide on somewhere on firewall/net configuration settings that possibly must be done for sharing and "masquerading"?Anonymoushttps://www.blogger.com/profile/06227151380621015212noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-39270394561796037692011-08-22T10:28:58.784-03:002011-08-22T10:28:58.784-03:00@O. Sinclair & H. Costa, current Plasma NM doe...@O. Sinclair & H. Costa, current Plasma NM does not compile against NM <= 0.8.1, so if you want to use the newest Plasma NM (as "client" or "server") you have to use NM >= 0.8.2.Lamarquehttps://www.blogger.com/profile/02689491144609928238noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-24338701637016398312011-08-22T06:04:14.448-03:002011-08-22T06:04:14.448-03:00Thanks for your reply! Does the "client"...Thanks for your reply! Does the "client" need 0.8.2 or higher of NM or just the "server"?Anonymoushttps://www.blogger.com/profile/06227151380621015212noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-49791195070169130652011-08-22T06:03:18.962-03:002011-08-22T06:03:18.962-03:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/06227151380621015212noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-72002208449811276772011-08-19T17:39:47.079-03:002011-08-19T17:39:47.079-03:00@O. Sinclair & H. Costa, 3G is mobile broadban...@O. Sinclair & H. Costa, 3G is mobile broadband, not dial-up. Both use AT commands and most 3G modems support serial interfaces but the similarities end there.<br /><br />The "client" machines should use dhcp to get the network configuration and that is it. You can create wireless and wired shared connections. The wireless shared connection only works in ad-hoc mode, some wireless drivers has problems to change the wireless card to ad-hoc mode. Once connected to the "sharing" computer the "clients" should be able to access the Internet as if they were the "sharing" computer. If it is not working them problably there is conflict with the firewall configuration in the "sharing" computer or dnsmasq is not properly configurated by NM.<br /><br />Old NetworkManager versions (<=0.8.2) create a dnsmasq configuration that is not compatible with newer dnsmasq and the connection does not work because of that.Lamarquehttps://www.blogger.com/profile/02689491144609928238noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-18035796896505391202011-08-19T04:34:28.874-03:002011-08-19T04:34:28.874-03:00I mean the "client" can connect to "...I mean the "client" can connect to "sharing" computer but can not connect to internet...Anonymoushttps://www.blogger.com/profile/06227151380621015212noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-49325466222610698472011-08-19T04:32:28.086-03:002011-08-19T04:32:28.086-03:00I tried this at home with a "dial-up" pp...I tried this at home with a "dial-up" ppp (usb 3G modem managed my networkmanager) being the internet connection to share. The "client" could finally connect but no luck. How should the connecting machines be set up and does it work with other connections than wired to share?Anonymoushttps://www.blogger.com/profile/06227151380621015212noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-9352195640113199222011-08-19T04:29:04.261-03:002011-08-19T04:29:04.261-03:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/06227151380621015212noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-64962491681149039042011-08-15T09:42:28.904-03:002011-08-15T09:42:28.904-03:00@Nick Shaforostoff, NM does not allow to select th...@Nick Shaforostoff, NM does not allow to select the output interface (the one which will send the IP packages to the Internet). NM always uses the interface with the default route, which is logical and reasonable in my oppinion. Dragging one connection onto a different interface is misleading because of that. Besides, I do not think it is possible to drag a plasma widget onto another, at least I have never seen it working.<br /><br />@Beat Wolf, as far as I know NM does not have mechanisms to send that kind of error messages to NM's clients (Plasma NM). You should contact NM developers about this issue. The same for the unmanaged wireless interface (it is the interface that is unmanaged, not the connection).<br /><br />@Anonymous1, that is a good ideia.<br /><br />@Anonymous2 and 3, it is not possible to right-click a connection on the connection list, that would pop-up the plasmoid settings menu and not the connection settings menu. I could that in "Manage Connection" widget. The problem is that by what I am reading here in the comments some of you do not understand how shared connections work in NM, that could lead to misconfigurations. Shared connection is not a good name for what NM does. In fact, NM creates an "input connection", that connection just receives IP packages from the computers connected to it. To send the packages to the Internet you always need a second connection with the default route set.<br /><br />@procuste, that is an alternative, although I guess most people will not pay attention to the already created shared connections :-/<br /><br />@Fri13, I think I will just add another button below the Add, Edit, Delete buttons in the ethernet and wireless tabs of "Manage Connections". I will call it "Share...". I guess that would be easy to find, maybe not that easy to realise what the button does, I can add I Qt's hint explaining what the button does.Lamarquehttps://www.blogger.com/profile/02689491144609928238noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-64565314749052578032011-08-13T05:34:46.309-03:002011-08-13T05:34:46.309-03:00This is great and still a littlebit technical.
I ...This is great and still a littlebit technical.<br /><br />I hope some day the network sharing could be achieved simply drag'n'drop method and behind right click.<br /><br />Like you have two interface (eth0 and wlan0). To share your eth0 (internet) to remote computers (local) you just drag and drop the local connection top of the internet connection.<br /><br />Drag wlan0 over eth0 and drop. It would ask something like "do you want to share eth0?"<br /><br />Or should it be vice versa that user drops a internet connection to network device what would be linked to it?<br /><br />Now the "ad-hoc + shared" mode works well but still hard for avarage user.Fri13https://www.blogger.com/profile/00914958546817888010noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-19122525779115708972011-08-12T14:09:50.740-03:002011-08-12T14:09:50.740-03:00What about a shared connection created by default ...What about a shared connection created by default (like the eth0 one) and called "share this connection" and with a single click on it you share the connection you are using??<br /><br />ciao, plaprocustehttps://www.blogger.com/profile/09356101088270858962noreply@blogger.comtag:blogger.com,1999:blog-4950896403024987968.post-11720696330398587612011-08-12T14:03:51.384-03:002011-08-12T14:03:51.384-03:00"right-clicking on existing wireless connecti..."right-clicking on existing wireless connection and selecting "Share" "<br /><br />This is way to go!Anonymousnoreply@blogger.com