fix
This commit is contained in:
@@ -6,6 +6,7 @@ wlan_name="office"
|
||||
wlan_password="fuckingwep"
|
||||
root_password="AsD7fg"
|
||||
lan_ip_address="192.168.47.1"
|
||||
wan_mac_address="98:DA:C4:20:8D:02"
|
||||
hostname="gw-aramil"
|
||||
# dhcp server 1 disable, 0 enable
|
||||
dhcpsrv="0"
|
||||
@@ -21,6 +22,7 @@ fi
|
||||
# More options: https://openwrt.org/docs/guide-user/base-system/basic-networking
|
||||
if [ -n "$lan_ip_address" ]; then
|
||||
uci set network.lan.ipaddr="$lan_ip_address"
|
||||
uci set network.@device[1].macaddr="$wan_mac_address"
|
||||
uci commit network
|
||||
fi
|
||||
|
||||
@@ -56,8 +58,8 @@ cat << EOI > /etc/dropbear/authorized_keys
|
||||
${SSHPUB}
|
||||
EOI
|
||||
chmod 600 /etc/dropbear/authorized_keys
|
||||
uci set dropbear.@dropbear[0].PasswordAuth="0"
|
||||
uci set dropbear.@dropbear[0].RootPasswordAuth="0"
|
||||
uci set dropbear.@dropbear[0].PasswordAuth="1"
|
||||
uci set dropbear.@dropbear[0].RootPasswordAuth="1"
|
||||
uci set dropbear.@dropbear[0].GatewayPorts='on'
|
||||
uci commit dropbear
|
||||
/etc/init.d/dropbear restart
|
||||
@@ -72,75 +74,75 @@ uci commit uhttpd
|
||||
uci set dhcp.lan.start='90'
|
||||
uci set dhcp.lan.limit='100'
|
||||
uci set dhcp.lan.ignore="$dhcpsrv"
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='kyocera0'
|
||||
uci set dhcp.@host[-1].mac='00:17:C8:76:43:91'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.30'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='kyocera1'
|
||||
uci set dhcp.@host[-1].mac='00:17:C8:42:1C:AA'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.31'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='lg-webos-1F'
|
||||
uci set dhcp.@host[-1].mac='A8:23:FE:7A:D4:1E'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.36'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='camera1'
|
||||
uci set dhcp.@host[-1].mac='c0:56:e3:86:2d:22'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.20'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='camera2'
|
||||
uci set dhcp.@host[-1].mac='c0:56:e3:87:de:b0'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.21'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='camera3'
|
||||
uci set dhcp.@host[-1].mac='c0:56:e3:86:2d:33'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.22'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='camera4'
|
||||
uci set dhcp.@host[-1].mac='c0:56:e3:87:df:37'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.23'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='camera5'
|
||||
uci set dhcp.@host[-1].mac='f8:4d:fc:0b:dd:59'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.24'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='kodi-aramil'
|
||||
uci set dhcp.@host[-1].mac='90:0E:B3:03:97:96'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.19'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='switch-des2110'
|
||||
uci set dhcp.@host[-1].mac='00:11:95:28:7F:F4'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.155'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='Pap2t'
|
||||
uci set dhcp.@host[-1].mac='00:0e:08:20:22:68'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.40'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='CiscoATA186'
|
||||
uci set dhcp.@host[-1].mac='00:0D:29:51:31:E9'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.41'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='PBX'
|
||||
uci set dhcp.@host[-1].mac='00:16:3E:5F:0F:15'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.7'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='Ogorod-mikrotik'
|
||||
uci set dhcp.@host[-1].mac='D4:CA:6D:7F:6F:3E'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.38'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='Yandexstation-1F'
|
||||
uci set dhcp.@host[-1].mac='70:4A:0E:62:C1:1A'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.33'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='esphome-pogreb'
|
||||
uci set dhcp.@host[-1].mac='C4:5B:BE:63:51:4F'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.45'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='esphome-kotelnaya'
|
||||
uci set dhcp.@host[-1].mac='4C:75:25:2A:5B:64'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.46'
|
||||
uci add host
|
||||
uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='esphome-garage-dvor'
|
||||
uci set dhcp.@host[-1].mac='40:91:51:52:C3:24'
|
||||
uci set dhcp.@host[-1].ip='192.168.47.47'
|
||||
|
||||
Reference in New Issue
Block a user