config dhcp 'wifi'
option interface 'wifi'
- option start '100'
- option limit '150'
+ option start '2'
+ option limit '254'
option leasetime '48h'
#option dhcpv6 'server'
#option ra 'server'
# Amcrest Camera 1
#config host
-# option ip '192.168.1.235'
-# option mac '3c:ef:8c:7f:c0:19'
+ option ip '192.168.1.133'
+ option mac '3c:ef:8c:7f:c0:19'
# Amcrest Camera 2
#config host
-# option ip '192.168.1.241'
-# option mac '3c:ef:8c:6f:79:5a'
+ option ip '192.168.1.134'
+ option mac '3c:ef:8c:6f:79:5a'
+
+# Amcrest Camera 3
+config host
+ option ip '192.168.1.91'
+ option mac '9c:8e:cd:0f:e9:d8'
+
+# Amcrest Camera 4
+config host
+ option ip '192.168.1.83'
+ option mac '9c:8e:cd:0f:f1:60'
# iHome Speaker 1
config host
option ip '192.168.1.234'
option mac 'c8:d5:fe:e6:a2:d8'
-# ESP board
-config host
- option ip '192.168.1.222'
- option mac '18:fe:34:db:59:72'
+# Blossom Sprinkler
+config host
+ option ip '192.168.1.129'
+ option mac '28:c2:dd:47:17:b6'
# Lifx light bulb 1
config host
option ip '192.168.1.232'
option mac 'd0:73:d5:02:41:da'
-# WeMo
-config host
- option ip '192.168.1.145'
- option mac '94:10:3e:36:60:09'
+# Dlink alarm
+config host
+ option ip '192.168.1.4'
+ option mac 'c4:12:f5:de:38:20'
64:bc:0c:43:3f:40 1qaz2wsx3edcPhone
3c:ef:8c:7f:c0:19 1qaz2wsx3edcCam1
3c:ef:8c:6f:79:5a 1qaz2wsx3edcCam2
+9c:8e:cd:0f:e9:d8 1qaz2wsx3edcCam3
+9c:8e:cd:0f:f1:60 1qaz2wsx3edcCam4
c8:d5:fe:e6:ad:96 1qaz2wsx3edcSpk1
c8:d5:fe:e6:a2:d8 1qaz2wsx3edcSpk2
+28:c2:dd:47:17:b6 1qaz2wsx3edcBlsm
18:fe:34:db:59:72 1qaz2wsx3edcEsp
d0:73:d5:12:8e:30 1qaz2wsx3edcLight1
d0:73:d5:02:41:da 1qaz2wsx3edcLight2
94:10:3e:36:60:09 1qaz2wsx3edc
+c4:12:f5:de:38:20 1qaz2wsx3edcAlarm
config interface 'lan'
option ifname 'eth0'
option proto 'static'
- option ipaddr '128.195.204.115'
+ option ipaddr '128.195.204.94'
option netmask '255.255.254.0'
option gateway '128.195.204.1'
option dns '128.200.192.202 128.200.1.201'
# Do IP mangling for checksum error issue after disable_dgaf=1
iptables -A POSTROUTING -t mangle -p udp --dport 68 -j CHECKSUM --checksum-fill
-# Do block ARP from ESP8266 to itself to avoid DHCPDECLINE
-arptables -A INPUT -j DROP --source-mac 18:fe:34:db:59:72 --destination-mac 18:fe:34:db:59:72
-arptables -A OUTPUT -j DROP --source-mac 18:fe:34:db:59:72 --destination-mac 18:fe:34:db:59:72
-arptables -A FORWARD -j DROP --source-mac 18:fe:34:db:59:72 --destination-mac 18:fe:34:db:59:72
-
# block everything except ssh, icmp, http, and dhcp
# Configure NAT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# Protocol ICMP
iptables -A FORWARD -j ACCEPT -p icmp;
-iptables -A INPUT -j ACCEPT -s 192.168.1.198 -d 192.168.1.1 -p icmp;
-iptables -A INPUT -j ACCEPT -s 192.168.1.1 -d 192.168.1.198 -p icmp;
-iptables -A OUTPUT -j ACCEPT -s 192.168.1.198 -d 192.168.1.1 -p icmp;
-iptables -A OUTPUT -j ACCEPT -s 192.168.1.1 -d 192.168.1.198 -p icmp;
+iptables -A INPUT -j ACCEPT -p icmp;
+iptables -A OUTPUT -j ACCEPT -p icmp;
# SSH port 22
+# Note: 192.168.1.198 is the address of the master Raspberry Pi.
+# So, please adjust it to your own setup if needed.
#iptables -A INPUT -j ACCEPT -s 192.168.1.198 -d 192.168.1.1 -p tcp --dport ssh;
#iptables -A INPUT -j ACCEPT -s 192.168.1.198 -d 192.168.1.1 -p tcp --sport ssh;
#iptables -A INPUT -j ACCEPT -s 192.168.1.1 -d 192.168.1.198 -p tcp --dport ssh;