Make it stop

Posted:
May 12th, '20, 06:27
by jiml8
I have a Realtek USB wifi dongle that I want to plug into a USB port on my workstation, then assign it to a virtual machine so I can do some particular development work.
When I plug in the dongle, something in the workstation immediately takes control of it, defines wlan0, configures the routing, and moves all my workstation networking to use that dongle for my WAN connection.
Now, I THOUGHT I had all this automatic networking crap turned off. I do not want the machine to try to configure my networking; it screws everything up. My networking is static and I need for it to be that way.
All I want is to plug the dongle in, and have the workstation ignore its existence, so that I can assign it to a VM. Is that too much to ask?
How do I make it stop?
Re: Make it stop

Posted:
May 12th, '20, 17:56
by doktor5000
Mind to share the output of
- Code: Select all
systemctl --all|grep -i network
pgrep -af net
pgrep -af ifplug
You can remove your network adapters from the systemctl output, I'd be only interested which services are currently running.
Re: Make it stop

Posted:
May 13th, '20, 21:09
by jiml8
systemctl --all|grep -i network
- Code: Select all
mandi.service loaded active running Network monitoring daemon (Interactive Firewall and wireless)
ntpd.service loaded active running Network Time Service
systemd-timesyncd.service loaded
network-online.target loaded active active Network is Online
network.target loaded active active Network
nss-lookup.target loaded active active Host and Network Name Lookups
openvpn.target loaded active active OpenVPN Networks
After looking at this list, I stopped mandi.service. I don't know if that is what I wanted to do, but I think so.
pgrep -af net
- Code: Select all
57 netns
9481 /usr/bin/perl /usr/bin/net_applet
16183 /usr/bin/vmnet-bridge -s 12 -d /var/run/vmnet-bridge-0.pid -n 0
16185 /usr/bin/vmnet-netifup -s 12 -d /var/run/vmnet-netifup-vmnet1.pid /dev/vmnet1 vmnet1
16205 /usr/bin/vmnet-dhcpd -s 12 -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet1/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1
16209 /usr/bin/vmnet-netifup -s 12 -d /var/run/vmnet-netifup-vmnet2.pid /dev/vmnet2 vmnet2
16216 /usr/bin/vmnet-netifup -s 12 -d /var/run/vmnet-netifup-vmnet5.pid /dev/vmnet5 vmnet5
16237 /usr/bin/vmnet-dhcpd -s 12 -cf /etc/vmware/vmnet5/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet5/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet5.pid vmnet5
16242 /usr/bin/vmnet-natd -s 12 -m /etc/vmware/vmnet5/nat.mac -c /etc/vmware/vmnet5/nat/nat.conf
16270 /usr/bin/vmnet-netifup -s 12 -d /var/run/vmnet-netifup-vmnet6.pid /dev/vmnet6 vmnet6
16285 /usr/bin/vmnet-natd -s 12 -m /etc/vmware/vmnet6/nat.mac -c /etc/vmware/vmnet6/nat/nat.conf
16323 /usr/bin/vmnet-netifup -s 12 -d /var/run/vmnet-netifup-vmnet8.pid /dev/vmnet8 vmnet8
16335 /usr/bin/vmnet-dhcpd -s 12 -cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8
16339 /usr/bin/vmnet-natd -s 12 -m /etc/vmware/vmnet8/nat.mac -c /etc/vmware/vmnet8/nat/nat.conf
26794 /usr/lib64/chromium-browser/chrome --type=utility --field-trial-handle=3573275452026283566,16504767145507292699,131072 --lang=en-US --service-sandbox-type=network --no-sandbox --enable-audio-service-sandbox --shared-files=v8_snapshot_data:100
pgrep -af ifplug
empty response
Re: Make it stop

Posted:
May 13th, '20, 22:49
by doktor5000
mandi is only for the interactive firewall, that shouldn't matter.
Well, best bet is to fire up journalctl -af and then plugin your wireless dongle, then check what's happening.
I'd guess it's net_applet that handles this. You should be able to prevent it from automatically starting if you handle your network yourself via right-click -> Settings or by putting AUTOSTART=FALSE into ~/.net-applet
You could also see if there's any ifcfg config file for the wireless dongle, and edit it to prevent automatically connecting. That should do it.