Commit 687dfeb0 authored by mad's avatar mad

nmtelekinesis - disconnect MoPS networks

Hier ist der MoPS disconnector.
Empfohlener start aus der initrd scripts/casper-bottom 25adduser
... oder besser in "26mopsfrei" oder so aehnlich.

Alternativ per upstart startbar. dafür die upstart config aus ./upstart/
nach /etc/init kopieren.
Dann gibt es aber keine User-Notifies, weil dann der Session-DBus-nicht erreicht werden kann.
parent 9dfbf725
[Desktop Entry]
Type=Application
Exec=/usr/bin/python /usr/bin/nmtelekinese.py 134.61.32.0/21
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[de_DE]=NM Telekinese
Name=NM Telekinese
Comment[de_DE]=Verdindert das Verbinden zu gefärlichen Netzwerken
Comment=Verdindert das Verbinden zu gefärlichen Netzwerken
This diff is collapsed.
cp /nm/nmtelekinese.py /root/usr/bin/
chroot /root mkdir -m 755 -p /home/${USERNAME}/.config/autostart
cp /nm/nmtelekinese.desktop /root/home/${USERNAME}/.config/autostart
chroot /root chmod 755 /home/${USERNAME}/.config/autostart/nmtelekinese.desktop
chroot /root chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}/.config
# nmtelekinesis - keeps you out of unwanted networks
#
# Nmtelekinesis controls NetworkManager via DBus
# It all network interfaces that gets address inside the "forbidden"
# IPv4 address range named on the command line (see below for an example)
description "Nmtelekinese-Interdict nm connections"
# Make sure we start before an interface receives traffic
start on (starting network-interface
or starting network-manager
or starting networking)
stop on runlevel [!023456]
console output
exec /usr/bin/python /isodevice/nmtelekinese.py 134.61.32.0/21
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment