update firewall rules for http server
[automated-distro-installer] / wrt-setup
index 4d208c0eea476ea6a77d2d4607b5cd9acddb197a..044bf826e5510f25541e908a77013dd4d291eeaf 100755 (executable)
--- a/wrt-setup
+++ b/wrt-setup
@@ -169,6 +169,33 @@ config rule
     option src              wan
     option target           ACCEPT
     option dest_port        22
+
+
+#http/https
+config redirect
+       option src              wan
+       option src_dport        443
+       option dest             lan
+       option dest_ip          192.168.1.2
+       option proto            tcp
+config rule
+       option src              wan
+       option target           ACCEPT
+       option dest_port        443
+       option proto            tcp
+
+config redirect
+       option src              wan
+       option src_dport        80
+       option dest             lan
+       option dest_ip          192.168.1.2
+       option proto            tcp
+config rule
+       option src              wan
+       option target           ACCEPT
+       option dest_port        80
+       option proto            tcp
+
 EOF