mozilla-vpn-client
mozilla-vpn-client copied to clipboard
Promiscuous mode on reconnect
Could we fix promiscuous mode on moz0 interface which is re-enabled on reconnects?
if not, for automatically disabling promiscuous mode on the moz0 interface I've added a shell script to monitor and disable promiscuous mode and a systemd service to run it persistently.
Created /usr/local/bin/monitor-moz0-promisc.sh to check moz0 for promiscuous mode every 5 seconds and disable it if detected.
Added /etc/systemd/system/monitor-moz0-promisc.service to run the script at boot, after network and VPN services.
Ensured script logs actions via logger for debugging.
Files: /usr/local/bin/monitor-moz0-promisc.sh: bash #!/bin/bash while true; do if ip link show moz0 | grep -q PROMISC; then ip link set moz0 promisc off logger "Disabled promiscuous mode on moz0" fi sleep 5 done
/etc/systemd/system/monitor-moz0-promisc.service: [Unit] Description=Monitor and disable promiscuous mode on moz0 After=network.target mozillavpn.service
[Service] ExecStart=/usr/local/bin/monitor-moz0-promisc.sh Restart=always
[Install] WantedBy=multi-user.target (will log you out, suggest reboot)
.. Thanks