From 24a01ff5487e1972a25d22f0ed2aa9e0a370b782 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 18 Apr 2019 08:03:35 -0400 Subject: [PATCH] add iptables rule and dnsmasq restart to rc.local --- installers/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/installers/common.sh b/installers/common.sh index da0d3be..2a62b6c 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -207,7 +207,9 @@ function default_configuration() { # #RASPAP is for removal script lines=( 'echo 1 > \/proc\/sys\/net\/ipv4\/ip_forward #RASPAP' + 'iptables -t nat -A POSTROUTING -s 10.3.141.0/24 -o lokitun0 -j MASQUERADE #LOKIPAP' 'iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP' + 'sudo /etc/init.d/dnsmasq restart' )