Skip to content
Snippets Groups Projects
Commit 3bbd6c9a authored by nimrod's avatar nimrod
Browse files

WAP: Update the config for OpenWRT 23.05.

This is a dump of the config from a new router (Linksys MR8300) running
a new version of OpenWRT (23.05).
parent c652d688
No related branches found
No related tags found
No related merge requests found
# Wirelss Access Point # Wirelss Access Point
Configure a wireless access point running OpenWRT 19.07. Configure a Linksys MR8300 running OpenWRT 23.05 as a wireless access point.
...@@ -11,24 +11,27 @@ config dnsmasq ...@@ -11,24 +11,27 @@ config dnsmasq
option domain 'lan' option domain 'lan'
option expandhosts '1' option expandhosts '1'
option nonegcache '0' option nonegcache '0'
option cachesize '1000'
option authoritative '1' option authoritative '1'
option readethers '1' option readethers '1'
option leasefile '/tmp/dhcp.leases' option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto' option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1' option nonwildcard '1'
option localservice '1' option localservice '1'
option ednspacket_max '1232'
option filter_aaaa '0'
option filter_a '0'
config dhcp 'lan' config dhcp 'lan'
option interface 'lan' option interface 'lan'
option start '100' option start '100'
option limit '150' option limit '150'
option leasetime '12h' option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server' option dhcpv6 'server'
option ra 'server' option ra 'server'
option ra_management '1' list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1' option ignore '1'
config odhcpd 'odhcpd' config odhcpd 'odhcpd'
...@@ -40,162 +43,33 @@ config odhcpd 'odhcpd' ...@@ -40,162 +43,33 @@ config odhcpd 'odhcpd'
package dropbear package dropbear
config dropbear config dropbear
option Port '22'
option RootPasswordAuth 'off'
option PasswordAuth 'off' option PasswordAuth 'off'
option RootPasswordAuth 'off'
option Port '22'
package firewall package firewall
config defaults config defaults
option syn_flood '1'
option output 'ACCEPT'
option forward 'REJECT'
option input 'REJECT' option input 'REJECT'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'lan'
config include
option path '/etc/firewall.user'
config rule
option dest_port '22'
option src '*'
option name 'ssh'
option target 'ACCEPT'
list proto 'tcp'
package firewall-opkg
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT' option output 'ACCEPT'
option forward 'REJECT' option forward 'REJECT'
option synflood_protect '1'
config zone config zone
option name 'lan' option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'REJECT' option input 'REJECT'
option output 'ACCEPT' option output 'ACCEPT'
option forward 'REJECT' option forward 'REJECT'
option masq '1' list network 'lan'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option src_ip 'fc00::/6'
option dest_ip 'fc00::/6'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-IPSec-ESP'
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule config rule
option name 'Allow-ISAKMP' option name 'ssh'
option src 'wan' list proto 'tcp'
option dest 'lan' option src '*'
option dest_port '500' list dest_ip '192.168.3.13'
option proto 'udp' option dest_port '22'
option target 'ACCEPT' option target 'ACCEPT'
config include
option path '/etc/firewall.user'
package luci package luci
config core 'main' config core 'main'
...@@ -223,6 +97,9 @@ config internal 'ccache' ...@@ -223,6 +97,9 @@ config internal 'ccache'
option enable '1' option enable '1'
config internal 'themes' config internal 'themes'
option Bootstrap '/luci-static/bootstrap'
option BootstrapDark '/luci-static/bootstrap-dark'
option BootstrapLight '/luci-static/bootstrap-light'
config internal 'apply' config internal 'apply'
option rollback '90' option rollback '90'
...@@ -238,43 +115,52 @@ config internal 'diag' ...@@ -238,43 +115,52 @@ config internal 'diag'
package network package network
config interface 'loopback' config interface 'loopback'
option ifname 'lo' option device 'lo'
option proto 'static' option proto 'static'
option ipaddr '127.0.0.1' option ipaddr '127.0.0.1'
option netmask '255.0.0.0' option netmask '255.0.0.0'
config globals 'globals' config globals 'globals'
option ula_prefix 'fd3a:a5ff:4867::/48' option ula_prefix 'fdc9:d14b:495c::/48'
config interface 'lan' config device
option name 'br-lan'
option type 'bridge' option type 'bridge'
option ifname 'eth0' list ports 'lan1'
option proto 'dhcp' list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'wan'
option macaddr 'C4:41:1E:AA:03:4A'
config device 'lan_eth0_dev' config device
option name 'eth0' option name 'lan1'
option macaddr '60:38:e0:ae:19:4a' option macaddr 'C4:41:1E:AA:03:4A'
config device 'wan_eth1_dev' config device
option name 'eth1' option name 'lan2'
option macaddr '60:38:e0:ae:19:49' option macaddr 'C4:41:1E:AA:03:4A'
config switch config device
option name 'switch0' option name 'lan3'
option reset '1' option macaddr 'C4:41:1E:AA:03:4A'
config switch_vlan config device
option device 'switch0' option name 'lan4'
option vlan '1' option macaddr 'C4:41:1E:AA:03:4A'
option ports '0 1 2 3 4'
option vid '1'
package nut_server config interface 'lan'
option device 'br-lan'
option proto 'dhcp'
config device
option name 'wan'
option macaddr 'C4:41:1E:AA:03:4A'
package rpcd package rpcd
config rpcd config rpcd
option socket '/var/run/ubus.sock' option socket '/var/run/ubus/ubus.sock'
option timeout '30' option timeout '30'
config login config login
...@@ -286,11 +172,12 @@ config login ...@@ -286,11 +172,12 @@ config login
package system package system
config system config system
option hostname 'mr8300.shore.co.il'
option ttylogin '0' option ttylogin '0'
option log_size '64' option log_size '64'
option urandom_seed '0' option urandom_seed '0'
option compat_version '2.0'
option zonename 'UTC' option zonename 'UTC'
option hostname 'ea6350.shore.co.il'
option log_proto 'udp' option log_proto 'udp'
option conloglevel '8' option conloglevel '8'
option cronloglevel '5' option cronloglevel '5'
...@@ -306,7 +193,7 @@ package ubootenv ...@@ -306,7 +193,7 @@ package ubootenv
config ubootenv config ubootenv
option dev '/dev/mtd7' option dev '/dev/mtd7'
option offset '0x0' option offset '0x0'
option envsize '0x20000' option envsize '0x40000'
option secsize '0x20000' option secsize '0x20000'
package ucitrack package ucitrack
...@@ -314,7 +201,6 @@ package ucitrack ...@@ -314,7 +201,6 @@ package ucitrack
config network config network
option init 'network' option init 'network'
list affects 'dhcp' list affects 'dhcp'
list affects 'radvd'
config wireless config wireless
list affects 'network' list affects 'network'
...@@ -375,7 +261,7 @@ config uhttpd 'main' ...@@ -375,7 +261,7 @@ config uhttpd 'main'
list listen_http '[::]:80' list listen_http '[::]:80'
list listen_https '0.0.0.0:443' list listen_https '0.0.0.0:443'
list listen_https '[::]:443' list listen_https '[::]:443'
option redirect_https '1' option redirect_https '0'
option home '/www' option home '/www'
option rfc1918_filter '1' option rfc1918_filter '1'
option max_requests '3' option max_requests '3'
...@@ -388,10 +274,11 @@ config uhttpd 'main' ...@@ -388,10 +274,11 @@ config uhttpd 'main'
option network_timeout '30' option network_timeout '30'
option http_keepalive '20' option http_keepalive '20'
option tcp_keepalive '1' option tcp_keepalive '1'
option ubus_prefix '/ubus'
config cert 'defaults' config cert 'defaults'
option days '730' option days '730'
option key_type 'rsa' option key_type 'ec'
option bits '2048' option bits '2048'
option ec_curve 'P-256' option ec_curve 'P-256'
option country 'ZZ' option country 'ZZ'
...@@ -403,32 +290,48 @@ package wireless ...@@ -403,32 +290,48 @@ package wireless
config wifi-device 'radio0' config wifi-device 'radio0'
option type 'mac80211' option type 'mac80211'
option hwmode '11g' option path 'soc/40000000.pci/pci0000:00/0000:00:00.0/0000:01:00.0'
option path 'platform/soc/a000000.wifi' option channel 'auto'
option country 'IL' option band '5g'
option htmode 'HT40' option htmode 'VHT80'
option channel '6' option cell_density '0'
config wifi-iface 'default_radio0' config wifi-iface 'default_radio0'
option device 'radio0' option device 'radio0'
option network 'lan' option network 'lan'
option mode 'ap' option mode 'ap'
option ssid 'Shore Inc. (5ghz)'
option encryption 'sae-mixed'
option key '{{ wifi_password }}' option key '{{ wifi_password }}'
option encryption 'psk2'
option ssid 'Shore Inc. (2.4ghz)'
config wifi-device 'radio1' config wifi-device 'radio1'
option type 'mac80211' option type 'mac80211'
option channel '36' option path 'platform/soc/a000000.wifi'
option hwmode '11a' option channel '11'
option path 'platform/soc/a800000.wifi' option band '2g'
option htmode 'VHT80' option htmode 'HT20'
option country 'IL' option cell_density '0'
config wifi-iface 'default_radio1' config wifi-iface 'default_radio1'
option device 'radio1' option device 'radio1'
option network 'lan' option network 'lan'
option mode 'ap' option mode 'ap'
option ssid 'Shore Inc. (2.4ghz)'
option encryption 'sae-mixed'
option key '{{ wifi_password }}' option key '{{ wifi_password }}'
option encryption 'psk2'
config wifi-device 'radio2'
option type 'mac80211'
option path 'platform/soc/a800000.wifi'
option channel '60'
option band '5g'
option htmode 'VHT80'
option cell_density '0'
config wifi-iface 'default_radio2'
option device 'radio2'
option network 'lan'
option mode 'ap'
option ssid 'Shore Inc. (5ghz)' option ssid 'Shore Inc. (5ghz)'
option encryption 'sae-mixed'
option key '{{ wifi_password }}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment