Skip to content

Instantly share code, notes, and snippets.

Created May 2, 2019 21:36
What would you like to do?
general routing setup
#assuming appliance is a dns server on another network
#and you want to be able to talk to those clients on that network
#and you can ssh into the appliance
#this might be useful if you dont want to use iptables
route add -net netmask gw "$appliance"
ssh root@"$appliance" route add -net netmask gw; echo "1" > /proc/sys/net/ipv4/ip_forward;
#should you need to delete the route, use this:
route del -net netmask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment