Explorar o código

open port 80 in /etc/firewall.user

Danja Vasiliev %!s(int64=10) %!d(string=hai) anos
pai
achega
312840c6d0
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      openwrt/common/etc/firewall.user

+ 10 - 0
openwrt/common/etc/firewall.user

@@ -0,0 +1,10 @@
+# This file is interpreted as shell script.
+# Put your custom iptables rules here, they will
+# be executed with each firewall (re-)start.
+
+# allow Superglue!
+iptables -A input_rule -p tcp --dport 80 -j ACCEPT
+
+# Internal uci firewall chains are flushed and recreated on reload, so
+# put custom rules into the root chains e.g. INPUT or FORWARD or into the
+# special user chains, e.g. input_wan_rule or postrouting_lan_rule.