Bug 9555 - drakgw breaks the Internet connection in the two computers
Summary: drakgw breaks the Internet connection in the two computers
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Olivier Blin
QA Contact:
URL:
Whiteboard: FOR_ERRATA
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2013-03-27 13:34 CET by Perilio Castrol
Modified: 2015-10-27 06:55 CET (History)
4 users (show)

See Also:
Source RPM: drakx-net-1.20-1.mga3.src.rpm
CVE:
Status comment:


Attachments

Description Perilio Castrol 2013-03-27 13:34:59 CET
Description of problem:
With Mageia 3 beta 3, I want to share my Internet connection with other machines using drakgw, so I run drakgw as I did in Mageia 2, but the result is that I cannot connect to Internet from any of the two PCs. 

I am able to connect from one PC to the other using ssh, but the Internet connection doesn't work on any of them (it stops working on the PC which is directly connected to Internet).

Also in Mageia 2, opening again drakgw gave the choice to disable the network sharing, while in Mageia 3 beta 3 it wants to configure again the connection. As I can't disable it, the only way I found to recover Internet is disabling the firewall.


How reproducible:
Always

Steps to Reproduce:
1. Go to MCC -> Network & Internet -> Share the Internet connection with other local machines
2. Configure the network sharing. Before this you may need to configure the firewall so the wlan adapter is protected by the firewall and the ethernet adapter is not protected.
3. Check your Internet connection. I noticed that from one PC I can connect to the other using ssh, but Internet is not working.
4. Open again drakgw and it won't offer to disable the network sharing. To recover Internet you have to disable the firewall.

Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2013-03-27 14:15:05 CET
was it working before the last update ?
Comment 2 Perilio Castrol 2013-03-27 14:30:58 CET
No it wasn't.

I remember having tried with beta 1 or 2 and it also didn't work.
Manuel Hiebel 2013-05-28 23:15:49 CEST

Assignee: bugsquad => mageia

Comment 3 Robert Courtright 2013-05-30 05:26:33 CEST
I have the opposit problem. It would work with all betas and RC's
But I can't get it to work with Official Release of 3
I had to switch my server back to Mageia 2 and I'm putting off upgrading 6 other due to this problem.

CC: (none) => rbcourt

Comment 4 Perilio Castrol 2013-05-30 18:27:19 CEST
I can't test with Mageia 3 final because the firewall configuration tool seems to be broken. I cannot configure my firewall properly, I can't check which network interfaces I want to protect or not, so drakgw says that there is no adapter available.
Comment 5 Robert Courtright 2013-05-31 01:51:14 CEST
After reading the Errata I was able to get past the point of selecting which network to protect. It still didn't work.
Comment 6 Perilio Castrol 2013-06-01 15:19:17 CEST
I tried again following the information from the errata. The behavior has changed a bit: The PC connected directly to Internet now works well, but the secondary PC is still not seeing Internet.

I still can connect from one to other using ssh.
Comment 7 Robert Courtright 2013-06-10 17:23:29 CEST
Since I have quadruple boots I install pc-linux-os 64 bit. (Which I believe is taken from Mageia anyways)
When Mageia get this fixed I will start using Mageia again.
Comment 8 Sandro kensan 2013-11-04 00:57:48 CET
With Mageia 3 updated until today, I want to share my Internet connection with other machines using drakgw, so I run drakgw and set my fist machine with IP 192.168.2.1 Netmask 255.255.255.0 Gateway 192.168.2.1 get DNS from DHCP and the second machine with IP 192.168.2.2 Netmask 255.255.255.0 Gateway 192.168.2.1

I share the connection, my shorewall is (/etc/shorewall/interfaces)
net     ppp0    detect

where ppp0 is my internet connection and eth0 my lan (see bug https://bugs.mageia.org/show_bug.cgi?id=5596)

I am able to connect from one PC to the other using ping, but the Internet connection doesn't work on any of them (it stops working on the PC which is directly connected to Internet).

If I want to restart the Internet connection i must to disconnect the ethernet wired from my fist machine but ping from one pc to the other fails.

CC: (none) => kensan

Comment 9 Perilio Castrol 2013-12-06 15:03:59 CET
Bug confirmed in Mageia 4 beta 1. The behaviour is the described in comment 8.
Comment 10 Samuel Verschelde 2015-04-25 10:36:01 CEST
Is this still valid in Mageia 4 with all updates installed? In Mageia 5RC (due in a few days)?

Keywords: (none) => NEEDINFO

Comment 11 Perilio Castrol 2015-05-24 12:09:41 CEST
Still valid with Mageia 5 RC fully updated
Comment 12 Robert Courtright 2015-05-24 14:25:48 CEST
Works for me in Mageia 5 Cauldron
Comment 13 Samuel Verschelde 2015-05-26 15:01:04 CEST
Works for Robert, bug for Perilio, there must be differences in your setups probably.

Keywords: NEEDINFO => (none)
Whiteboard: (none) => MGA4TOO MGA5TOO FOR_ERRATA

Comment 14 Perilio Castrol 2015-05-26 20:30:33 CEST
I identified two issues:

1-) In the first step, when it asks for the local IP address, by default it was written 192.168.1.1, which is the same of my router. That is what made my direct conected laptop not work (I guess). I noticed it in my second attempt on configuring it because it showed a message saying something like: "Potential conflict in the local network address found in the configuration of wlp20s0! (translated from spanish)". However, I am sure that this message did not appear on my first try, but it should have.


2-) dhcpd is not started unless the ethernet wire is conected, so the secondary device was not getting a IP address. I do not know if this is the normal behaviour.

Thanks. For me this bug is solved
Comment 15 Robert Courtright 2015-05-26 22:31:31 CEST
I found out years ago by trial and error you can't have the same ip range on both sides of the firewall/router. I also noted that most of the routers I 've worked with use the 192.168 range. So on my internel network I use 10.0 as the address range. This is since the Mandrake days! Yes Mandrake.
Comment 16 Marja Van Waes 2015-05-27 06:24:41 CEST
Hi  Perilio and Robert (and others),

Thanks for the feedback :-)

So, IIUC, this is fixed in pre-Mageia5, but we should expand
http://doc.mageia.org/mcc/5/en/content/drakgw.html

WDYT about adding the following as note just above "Configure the client":

"Please keep in mind that ip addresses need to be unique, like phone numbers. So if the gateway is connected to a modem/router that supplies ip addresses in the 192.168.*.* range, then it is safer to let your gateway computer use a 10.0.*.* range, if you set it act as DHCP server."

(CC'ing docteam)

Keywords: (none) => USABILITY
CC: (none) => doc-bugs, marja11
Version: Cauldron => 4
Whiteboard: MGA4TOO MGA5TOO FOR_ERRATA => FOR_ERRATA

Comment 17 Marja Van Waes 2015-05-27 06:27:00 CEST
s/it act/it to act/
Comment 18 Perilio Castrol 2015-05-27 20:52:25 CEST
For me this bug is solved, but:

I tried again with a liveCD, and the first time I configure the network sharing it does not show the error message about the conflict with the IPs. This message is shown when I use drakgw to configure the sharing for a second time once I have configured it previously. Someone should have a look into this issue.
Comment 19 Robert Courtright 2015-05-27 21:03:53 CEST
I've never gotten an error message for the same range of ips's on eacjh side.
Comment 20 Samuel Verschelde 2015-09-21 13:18:30 CEST
Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we weren't 
able to fix it before Mageia 4's end of life. If you are able to reproduce it 
against a later version of Mageia, you are encouraged to click on "Version" and 
change it against that version of Mageia. If it's valid in several versions, 
select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/
Comment 21 Marja Van Waes 2015-10-27 06:55:59 CET
As announced over a month ago, Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer maintained, which means that it will not receive any further security or bug fix updates.

This issue may have been fixed in a later Mageia release, so, if you still see it and didn't already do so: please upgrade to Mageia 5 (or, if you read this much later than this is written: make sure you run a currently maintained Mageia version)

If you are able to reproduce it against a maintained version of Mageia, you are encouraged to 
1. reopen this bug report, by changing the "Status" from "RESOLVED - OLD" to "REOPENED"
2. click on "Version" and change it against that version of Mageia. If you know it's valid in several versions, select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.
3. give as much relevant information as possible. If you're not an experienced bug reporter and have some time: please read this page:
https://wiki.mageia.org/en/How_to_report_a_bug_properly

If you see a similar issue, but are _not_sure_ it is the same, with the same cause, then please file a new bug report and mention this one in it (please include the bug number, too). 


If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].
[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.