some small fixes

This commit is contained in:
deflax 2018-04-08 17:21:41 -04:00
parent c0329ddbe8
commit 65408729ae
2 changed files with 4 additions and 4 deletions

View file

@ -311,7 +311,8 @@ $IPT -t nat -D POSTROUTING -s 10.0.{1}.10 -j SNAT --to-source {0}
if __name__ == "__main__":
helpdata = """
python3 frankenrouter.py init --- setup the default firewall, read the contents of /root/pubip.cache and setup all assigments. Useful on startup
python3 frankenrouter.py init --- setup the default firewall
python3 frankenrouter.py allipsetup --- read the contents of /root/pubip.cache and setup all assigments. for startup.
python3 ipadd VLAN IP --- add IP to VLAN
python3 ipdel VLAN IP --- del IP from VLAN
@ -321,7 +322,7 @@ python3 ipdel VLAN IP --- del IP from VLAN
bashexec('fwsetup', initfw())
bashexec('vlsetup', setvlans(clientiface))
if sys.argv[1] == 'allipadd':
if sys.argv[1] == 'allipsetup':
bashexec('allipsetup', allipsetup('/root/pubip.cache'))
if sys.argv[1] == 'ipadd':

View file

@ -10,8 +10,7 @@ sleep 3
ip route add default via $TRANSPORT_GW
python3 /root/frankenrouter/frankenrouter.py init
python3 /root/frankenrouter/frankenrouter.py allipadd
python3 /root/frankenrouter/frankenrouter.py allipsetup
sysctl -p