network-proxy-stop.sh 211 B

1234567
  1. #!/bin/sh
  2. echo 0 > /proc/sys/net/ipv4/ip_forward
  3. # disable also IPv6 forwarding, if IPv6 applicable
  4. if [ -w /proc/sys/net/ipv6/conf/all/forwarding ]; then
  5. echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
  6. fi