Bug 30891 - no method to stop sharing internet connection / undo the effects of sharing a connection
Summary: no method to stop sharing internet connection / undo the effects of sharing a...
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard:
Keywords: IN_ERRATA9
Depends on:
Blocks:
 
Reported: 2022-09-25 11:19 CEST by Elmar Stellnberger
Modified: 2024-08-22 23:02 CEST (History)
4 users (show)

See Also:
Source RPM: drakconf-13.27-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Elmar Stellnberger 2022-09-25 11:19:23 CEST
Under the mcc/drakconf I can go to 'Network and Internet' and select 'Share Internet Connection with Other Local Computers'. At me it was that I wanted to share the Wifi connection on the virtual interface docker0 so that my Docker containers would have access to the internet. That did not work as expected and worse there is no method to undo the configuration changes made by this GUI wizard. Though it may be related to some other reason that I had lost the Wifi connection I was left in wonder on how to undo that manually. I stopped and disabled dhcpd and named with systemctl as I had selected not to run squid. However this is likely not all that needs to be done since the apparent iptables forward rule to forward packages from docker0 to wlp58s0 isn´t touched by these steps. Furhtermore this will configure the selected network interface, be it docker0 or enp57s0f1 with a specified static router ip. 
  My suggestion to resolve this is to keep the current network setup when you select to share your internet connection and make drakconf create an own network profile for the connection sharing that can be unselected later on or deleted. It is important that there is some way to attain the previous pirstine configuration without manual hacking or whatever. My question about this suggestion is also whether it is currently possible to make a networking profile enable/disable named, dhcpd and squid.
  Finally I wanna suggest to make lightweight sharing the default. This means no squid by default as most connections are https nowadays and thus won´t profit from a proxy. Furthermore to my knowledge it should be possible to share without a named instance. Internet connection sharing is a very useful feature, just think of a tethered cellular connection shared temporarily across many different computers. You could use that f.i. as a dial backup (since we don´t have modems nowadays).
Comment 1 sturmvogel 2022-09-25 11:54:37 CEST
https://doc.mageia.org/mcc/8/en/content/mcc-network.html#drakgw

Quote:
Stop connection sharing
If you want to stop sharing the connection on the Mageia computer, launch the tool. It will offer to reconfigure the connection or to stop the sharing.
Comment 2 sturmvogel 2022-09-25 11:59:32 CEST
You should read the docker documentation for how to get network access for your containers. 
https://docs.docker.com/network/
Comment 3 Marja Van Waes 2022-10-03 12:54:20 CEST
(In reply to sturmvogel from comment #1)
> https://doc.mageia.org/mcc/8/en/content/mcc-network.html#drakgw
>
Thanks for this link and for the comment & link about network access for docker containers, sturmvogel.
> 
> Quote:
> Stop connection sharing
> If you want to stop sharing the connection on the Mageia computer, launch
> the tool. It will offer to reconfigure the connection or to stop the sharing.


In case it is overlooked, here a link that leads directly to the quoted part:
https://doc.mageia.org/mcc/8/en/content/mcc-network.html#drakgw-stop

Closing this report as invalid.

CC: (none) => marja11
Resolution: (none) => INVALID
Status: NEW => RESOLVED

Comment 4 Elmar Stellnberger 2022-10-03 13:59:21 CEST
"In case it is overlooked,": I can´t find anything like this.

Resolution: INVALID => (none)
Status: RESOLVED => REOPENED

Comment 5 sturmvogel 2022-10-03 20:35:09 CEST
Please read the information that is provided and don't reopen "bugs" without valid reason. 
Quote again:
"If you want to stop sharing the connection on the Mageia computer, launch the tool. It will offer to reconfigure the connection or to stop the sharing."

Status: REOPENED => RESOLVED
Resolution: (none) => INVALID

Comment 6 Elmar Stellnberger 2022-10-03 20:36:48 CEST
No, it does not do that. I have tried it multiple times (and I was reading the exactly same docs you have referred to).

Status: RESOLVED => REOPENED
Resolution: INVALID => (none)

Comment 7 Elmar Stellnberger 2022-10-03 20:57:15 CEST
Hear, I don´t do that for my own joy. I wanna help you build a better distribution (bug 30929, bug 30881, bug 30859, bug 30857).
Comment 8 Lewis Smith 2022-12-13 15:22:41 CET
Sorry to have left you.

(In reply to Marja Van Waes from comment #3)
> > Stop connection sharing
> > If you want to stop sharing the connection on the Mageia computer, launch
> > the [drakgw]tool. It will offer to reconfigure the connection or to stop
> >  the sharing.
> In case it is overlooked, here a link that leads directly to the quoted part:
> https://doc.mageia.org/mcc/8/en/content/mcc-network.html#drakgw-stop
(In reply to Elmar Stellnberger from comment #6)
> No, it does not do that. I have tried it multiple times (and I was reading
> the exactly same docs you have referred to).
Can you describe what *does* happen then, with screenshots to illustrate?
Clearly if what is described is wrong, that should be put right.

CC: (none) => lewyssmith

Comment 9 Elmar Stellnberger 2022-12-13 17:29:04 CET
"If you want to stop sharing the connection on the Mageia computer, launch the tool. It will offer to reconfigure the connection or to stop the sharing." - 
  No, it definitely does not offer to stop sharing! I have tested this now again running "drakgw" or "drakgw stop". There is no "drakgw-stop" executable on my computer.
Comment 10 Dave Hodgins 2022-12-13 21:46:12 CET
drakgw is a gui, not a command.

The documentation indicates that if a connection is already being shared drakgw
is supposed to ask if it's to stop sharing it. It doesn't. It goes directly
to the sharing configuration questions as shown in
https://doc.mageia.org/mcc/3/en/content/drakgw.html

According to comments in /usr/libexec/drakgw and my testing, stopping the
sharing is not working. It doesn't offer to stop sharing.

The only currently available method is to delete the interface and reconfigure
it from scratch.

For testing I created a second network interface for a vb guest.

drakgw does set up the sharing, but does not offer to stop sharing once it's
been setup. It can only be used to change things like the address and netmask.

Assigning accordingly.

Assignee: bugsquad => mageiatools
CC: (none) => davidwhodgins

Omnio Torr 2022-12-14 01:48:41 CET

CC: (none) => storage

Comment 11 Lewis Smith 2022-12-14 12:29:43 CET
(In reply to Elmar Stellnberger from comment #9)
> "If you want to stop sharing the connection on the Mageia computer, launch
> the tool. It will offer to reconfigure the connection or to stop the
> sharing." - 
>   No, it definitely does not offer to stop sharing!
I have at last on M8 tried this, and agree with both of you...
I guess it will be the same for M9.

MCC-Netwok & Internet-Personalise & Secure your network-Share the network connection with other machines.
This pops the dialogue shown in the link given in comment 10.
Not seeing any immediate invitation to stop sharing, I went through the pain of setting up sharing (blindly), which involved installing a lot of extra software (bind, squid, dhcp-server + dependencies).
In the hope that, once done, the next invocation would offer to un-share it.
It did not!
Agree that "The only currently available method is to delete the interface and reconfigure it from scratch."
Or perhaps, as I did, remove the noted packages + orphans.

But Elmar, this would have been expedited if you had shown the screenshot in question right at the start, after having configured sharing, to illustrate that the MCC manual was wrong - or that the documented facility was not in fact offered.

CC: lewyssmith => (none)

Lewis Smith 2022-12-15 20:55:50 CET

Keywords: (none) => FOR_ERRATA9

Comment 12 Morgan Leijström 2023-06-21 09:05:00 CEST
https://wiki.mageia.org/en/Mageia_9_Errata#Network_sharing

Keywords: FOR_ERRATA9 => IN_ERRATA9
CC: (none) => fri

Comment 13 Marja Van Waes 2024-08-22 23:02:46 CEST
We stopped supporting Mageia 8 almost 8 months ago 
https://blog.mageia.org/en/2023/12/30/mageia-8-end-of-life/

That means we also stopped fixing Mageia 8 bugs and that this bug report needs to be closed, regardless of whether it was fixed for Mageia 8 or not.

If this particular bug did not get fixed for Mageia 8, then we do regret that.

If this issue is still present in Mageia 9 or cauldron, then please reopen this report, write a comment and adjust the "Version:" field.

If you are not yet a member of one or our teams, then please consider becoming one. https://wiki.mageia.org/en/Contributing
Mageia is a community project, meaning that we, the users, make Mageia together.

The more active contributors we have, the more bug reports will get fixed.
Besides, being active in a team can be very rewarding. It was and is certainly rewarding to me :-D

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


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