better handling of home http server
[automated-distro-installer] / wrt-setup
index 3fa44d229d81e7cbc44616eed3fd3f1917ee939a..b4372198b460a0d03f8eb1fe354abbaa12500144 100755 (executable)
--- a/wrt-setup
+++ b/wrt-setup
@@ -186,30 +186,6 @@ config rule
     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
 
@@ -219,7 +195,7 @@ EOF
 dnsmasq_restart=false
 v cedit /etc/hosts <<EOF || dnsmasq_restart=true
 192.168.1.1 wrt
-192.168.1.2 treetowl faiserver
+192.168.1.2 treetowl faiserver $IMPERSONAL_DOMAIN
 192.168.1.3 frodo
 192.168.1.4 htpc
 192.168.1.5 x2