minor fixes and improvements
[automated-distro-installer] / wrt-setup-local
index 4b61c08d82b9e3b1c9a5c046218c58d219c75094..4cad00c1797158040c6ec1f66dc90d9a321eaf70 100755 (executable)
@@ -483,7 +483,7 @@ config redirect
  option src              wan
  option src_dport        2202
  option dest_port        22
- option dest_ip          $l.8
+ option dest_ip          $l.2
  option dest             lan
 config rule
  option src              wan
@@ -571,7 +571,7 @@ config redirect
  option src              wan
  option src_dport        80
  option dest             lan
- option dest_ip          $l.8
+ option dest_ip          $l.2
  option proto            tcp
 config rule
  option src              wan
@@ -584,7 +584,7 @@ config redirect
  option src              wan
  option src_dport        443
  option dest             lan
- option dest_ip          $l.8
+ option dest_ip          $l.2
  option proto            tcp
 config rule
  option src              wan
@@ -677,9 +677,9 @@ EOF
 case $hostname in
   cmc)
     v cedit host /etc/hosts <<EOF || dnsmasq_restart=true
-$l.1 $hostname b8.nz
-$l.2 kd
-$l.3 frodo
+$l.1 $hostname
+$l.2 kd b8.nz
+#$l.3 frodo
 $l.4 wrt2
 $l.5 x2 faiserver
 $l.6 x2w
@@ -689,7 +689,7 @@ $l.9 bb8
 $l.14 wrt3
 #$l.18 x3
 $l.19 brother
-$l.28 frodow
+#$l.28 frodow
 EOF
     ;;
 esac
@@ -707,6 +707,7 @@ uset system.@system[0].hostname $hostname
 # uci doesnt seem to have a way to set an empty value,
 # if you delete it, it goes back to the default. this seems
 # to be a decent workaround.
+# todo: setup /etc/resolv.conf to point to 127.0.0.1
 uset dhcp.@dnsmasq[0].resolvfile=/dev/null
 
 # disabled for now. i want to selectively enable it
@@ -735,6 +736,7 @@ server=/_dmarc.b8.nz/#
 server=/ns1.b8.nz/#
 server=/ns2.b8.nz/#
 server=/bk.b8.nz/#
+server=/je.b8.nz/#
 mx-host=b8.nz,mail.iankelling.org,10
 txt-record=b8.nz,"v=spf1 a ?all"