lxc-config/hooks/dn42-routes

11 lines
265 B
Bash
Executable File

#!/bin/bash
ip route add 172.16.0.0/12 via 172.23.75.1
ip route add 10.0.0.0/8 via 172.23.75.1
ip -6 route add fc00::/7 via fdc0:4992:6a6d::1
sysctl -w net.ipv4.conf.all.forwarding=0
sysctl -w net.ipv4.ip_forward=0
sysctl -w net.ipv6.conf.all.forwarding=0
exit 0