Dateiansicht:
Datei: | Projekte -> Linux:Netzwerk für Seminare -> Router_Server -> root -> bin -> stop_seminarnet |
---|---|
md5: | 1cb77fce3077840f693c6a63b60fb2ef |
sha1: | cf380d5151acc6c886b3588bde2855298ca4535d |
Download-Link: | Download |
- #!/bin/bash
- # set -x;
- source "$(dirname $0)/seminarnet.settings";
- route del -net ${net}/${netmask}
- sysctl net.ipv4.ip_forward=0 > /dev/null;
- systemctl stop isc-dhcp-server;
- systemctl stop privoxy
- systemctl stop squid
- #dnsproxyPid=$(ps -C dnsproxy -o "pid=";);
- #if [ -n ${dnsproxyPid} ]; then
- # kill ${dnsproxyPid};
- #fi
- ip address del ${ip}/${netmask} dev ${localnetDev}
- ip link set ${localnetDev} down
- nmcli connection down ${localnetDev}
- iptables --flush