X-Git-Url: https://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=optional-tools%2Fmake-firewall;h=eeba477fabe7be8edcb0871bf79c6f31ae829da0;hp=239f478047a41ca8872c12e361df70011416a765;hb=HEAD;hpb=a4f661fc8c4d2ef31306e8d4d6f8b0b310623919 diff --git a/optional-tools/make-firewall b/optional-tools/make-firewall index 239f478..eeba477 100755 --- a/optional-tools/make-firewall +++ b/optional-tools/make-firewall @@ -1,14 +1,11 @@ #!/bin/bash -# -# requires: -# -# /rw/etc/hosts ... configuration file for dashboard and snat/dnat -# parses Prometheus compatible nodelist and generates some firewall -# rules -# -./make-pimp -./make-snat-dnat -# -# /rw/etc/network/snat-dnat is generated by make-snat-dnat -# -/rw/etc/network/snat-dnat +cd /root/bin/ +#you have to provide hosts file (prometheus syntax) to these scripts +#/root/bin/updatehosts +/root/bin/make-pimp +/root/bin/make-iptables-restore +#our firewall is configured before restoring iptables nat table +#/etc/network/setnet +echo -n "Running iptables restore ... " +/sbin/iptables-restore < /mnt/mtdblock0/iptables-restore.in +echo "done."