ahem
[svn/Prometheus-QoS/.git] / optional-tools / make-firewall
index 239f478047a41ca8872c12e361df70011416a765..0cf46a260a2ccfe073e971bfd0055267c6382582 100755 (executable)
@@ -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 provider 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."
This page took 0.124309 seconds and 4 git commands to generate.