site A router
ubus call system board
{
"kernel": "6.6.119",
"hostname": "OpenWrt",
"system": "ARMv8 Processor rev 4",
"model": "GL.iNet GL-MT6000",
"board_name": "glinet,gl-mt6000",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.5",
"revision": "r29087-d9c5716d1d",
"target": "mediatek/filogic",
"description": "OpenWrt 24.10.5 r29087-d9c5716d1d",
"builddate": "1766005702"
}
}
cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix '<redacted>'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'lan5'
option ipv6 '0'
config interface 'lan'
option device 'br-lan.10'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
list dns '192.168.1.2'
list dns_search 'lan'
option delegate '0'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
config interface 'wan6'
option device 'eth1'
option proto 'dhcpv6'
config interface 'wg0'
option proto 'wireguard'
option private_key '<redacted>'
option listen_port '<redacted>'
option delegate '0'
list addresses '10.0.0.1/24'
option defaultroute '0'
config wireguard_wg0
option description 'beryl ax'
option public_key '<redacted>'
option private_key '<redacted>'
option persistent_keepalive '25'
list allowed_ips '10.0.0.2'
config wireguard_wg0
option description 's25'
option public_key '<redacted>'
option private_key '<redacted>'
list allowed_ips '10.0.0.3'
option persistent_keepalive '25'
config wireguard_wg0
option description 'laptop'
option public_key '<redacted>'
option private_key '<redacted>'
list allowed_ips '10.0.0.4'
option persistent_keepalive '25'
config interface 'wgclient1'
option proto 'wireguard'
option private_key '<redacted>'
list addresses '<redacted>'
list addresses '<redacted>'
list dns '<redacted>'
list dns '<redacted>'
list dns '<redacted>'
list dns '<redacted>'
config wireguard_wgclient1
option description 'wgclient1.conf'
option public_key '<redacted>'
list allowed_ips '0.0.0.0/0'
list allowed_ips '::/0'
option endpoint_host '<redacted>'
option endpoint_port '<redacted>'
config bridge-vlan
option device 'br-lan'
option vlan '10'
list ports 'lan1:u*'
list ports 'lan2:u*'
list ports 'lan3:u*'
list ports 'lan4:u*'
list ports 'lan5'
config bridge-vlan
option device 'br-lan'
option vlan '20'
list ports 'lan1:t'
list ports 'lan5:u*'
config interface 'vlan20'
option proto 'static'
option device 'br-lan.20'
option ipaddr '192.168.0.1'
option netmask '255.255.255.0'
option delegate '0'
config interface 'wg1'
option proto 'wireguard'
option private_key '<redacted>'
option listen_port '<redacted>'
list addresses '10.0.100.1/29'
option delegate '0'
option defaultroute '0'
option mtu '1280'
config wireguard_wg1
option description 'spitz ax'
option public_key '<redacted>'
option private_key '<redacted>'
list allowed_ips '10.0.100.2/32'
list allowed_ips '192.168.2.0/24'
option endpoint_host '<redacted>'
option endpoint_port '<redacted>'
option persistent_keepalive '25'
config wireguard_wg0
option description 'iphone'
option public_key '<redacted>'
option private_key '<redacted>'
list allowed_ips '10.0.0.5'
config wireguard_wg0
option description 'galaxy'
option public_key '<redacted>'
option private_key '<redacted>'
list allowed_ips '10.0.0.6'
option endpoint_host '<redacted>'
option endpoint_port '<redacted>'
config wireguard_wg1
option description '<redacted>'
option public_key '<redacted>'
option private_key '<redacted>'
option route_allowed_ips '1'
option endpoint_host '<redacted>'
option endpoint_port '<redacted>'
option persistent_keepalive '25'
list allowed_ips '10.0.100.3'
config route
option interface 'wg1'
option target '192.168.2.0/24'
cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/home/'
option domain 'home'
option expandhosts '1'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
list dhcp_option '6,192.168.1.2'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
option piofolder '/tmp/odhcpd-piofolder'
config dhcp 'vlan20'
option interface 'vlan20'
option start '100'
option limit '150'
option leasetime '12h'
cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
list network 'vlan20'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
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 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
option name 'Allow-ISAKMP'
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config zone
option name 'wg0'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'wg0'
option mtu_fix '1'
option masq '1'
config rule
option src 'wan'
option name 'Allow-Wireguard'
list proto 'udp'
option dest_port '<redacted> <redacted>'
option target 'ACCEPT'
config forwarding
option src 'wg0'
option dest 'lan'
config forwarding
option src 'wg0'
option dest 'wan'
config forwarding
option src 'lan'
option dest 'wg0'
config zone
option name 'wgwan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'wgclient1'
option masq '1'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wgwan'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'Allow service'
option src 'wgwan'
option src_dport '<redacted>'
option dest_ip '192.168.1.50'
option dest_port '<redacted>'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'Allow service2'
list proto 'tcp'
option src 'wan'
option src_dport '<redacted>'
option dest_ip '192.168.1.50'
option dest_port '<redacted>'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'Allow service3'
option src 'wan'
option src_dport '<redacted>'
option dest_ip '192.168.1.50'
option dest_port '<redacted>'
config zone
option name 'wg1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'wg1'
option mtu_fix '1'
config forwarding
option src 'wg1'
option dest 'lan'
config forwarding
option src 'wg1'
option dest 'wan'
config forwarding
option src 'wg1'
option dest 'wg0'
config forwarding
option src 'lan'
option dest 'wg1'
config forwarding
option src 'wg0'
option dest 'wg1'
ip route show
default via <redacted> dev eth1 proto static src <redacted>
10.0.0.0/24 dev wg0 proto kernel scope link src 10.0.0.1
10.0.100.0/29 dev wg1 proto kernel scope link src 10.0.100.1
10.0.100.3 dev wg1 proto static scope link
<redacted> dev eth1 proto kernel scope link src <redacted>
192.168.0.0/24 dev br-lan.20 proto kernel scope link src 192.168.0.1
192.168.1.0/24 dev br-lan.10 proto kernel scope link src 192.168.1.1
192.168.2.0/24 dev wg1 proto static scope link
<redacted> via <redacted> dev eth1 proto static
ip -6 route show
fd00:0:1337:cafe:1111:1111:1a2d:460 dev wgclient1 proto kernel metric 256 pref medium
fd46:609:777d::/64 dev br-lan.10 proto static metric 1024 pref medium
unreachable fd46:609:777d::/48 dev lo proto static metric 2147483647 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev br-lan.10 proto kernel metric 256 pref medium
fe80::/64 dev br-lan.20 proto kernel metric 256 pref medium
fe80::/64 dev eth1 proto kernel metric 256 pref medium
ip route show table all
default via <redacted> dev eth1 table pbr_wan
10.0.0.0/24 dev wg0 table pbr_wan proto kernel scope link src 10.0.0.1
10.0.100.0/29 dev wg1 table pbr_wan proto kernel scope link src 10.0.100.1
10.0.100.3 dev wg1 table pbr_wan proto static scope link
192.168.0.0/24 dev br-lan.20 table pbr_wan proto kernel scope link src 192.168.0.1
192.168.1.0/24 dev br-lan.10 table pbr_wan proto kernel scope link src 192.168.1.1
192.168.2.0/24 dev wg1 table pbr_wan proto static scope link
default via <redacted> dev wgclient1 table pbr_wgclient1
10.0.0.0/24 dev wg0 table pbr_wgclient1 proto kernel scope link src 10.0.0.1
10.0.100.0/29 dev wg1 table pbr_wgclient1 proto kernel scope link src 10.0.100.1
10.0.100.3 dev wg1 table pbr_wgclient1 proto static scope link
192.168.0.0/24 dev br-lan.20 table pbr_wgclient1 proto kernel scope link src 192.168.0.1
192.168.1.0/24 dev br-lan.10 table pbr_wgclient1 proto kernel scope link src 192.168.1.1
192.168.2.0/24 dev wg1 table pbr_wgclient1 proto static scope link
default via <redacted> dev eth1 proto static src <redacted>
10.0.0.0/24 dev wg0 proto kernel scope link src 10.0.0.1
10.0.100.0/29 dev wg1 proto kernel scope link src 10.0.100.1
10.0.100.3 dev wg1 proto static scope link
<redacted> dev eth1 proto kernel scope link src <redacted>
192.168.0.0/24 dev br-lan.20 proto kernel scope link src 192.168.0.1
192.168.1.0/24 dev br-lan.10 proto kernel scope link src 192.168.1.1
192.168.2.0/24 dev wg1 proto static scope link
<redacted> via <redacted> dev eth1 proto static
local 10.0.0.1 dev wg0 table local proto kernel scope host src 10.0.0.1
broadcast 10.0.0.255 dev wg0 table local proto kernel scope link src 10.0.0.1
local 10.0.100.1 dev wg1 table local proto kernel scope host src 10.0.100.1
broadcast 10.0.100.7 dev wg1 table local proto kernel scope link src 10.0.100.1
local <redacted> dev eth1 table local proto kernel scope host src <redacted>
broadcast <redacted> dev eth1 table local proto kernel scope link src <redacted>
local 127.0.0.0/8 dev lo table local proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo table local proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo table local proto kernel scope link src 127.0.0.1
local <redacted> dev wgclient1 table local proto kernel scope host src <redacted>
local 192.168.0.1 dev br-lan.20 table local proto kernel scope host src 192.168.0.1
broadcast 192.168.0.255 dev br-lan.20 table local proto kernel scope link src 192.168.0.1
local 192.168.1.1 dev br-lan.10 table local proto kernel scope host src 192.168.1.1
broadcast 192.168.1.255 dev br-lan.10 table local proto kernel scope link src 192.168.1.1
fd00:0:1337:cafe:1111:1111:1a2d:460 dev wgclient1 proto kernel metric 256 pref medium
fd46:609:777d::/64 dev br-lan.10 proto static metric 1024 pref medium
unreachable fd46:609:777d::/48 dev lo proto static metric 2147483647 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
fe80::/64 dev br-lan.10 proto kernel metric 256 pref medium
fe80::/64 dev br-lan.20 proto kernel metric 256 pref medium
fe80::/64 dev eth1 proto kernel metric 256 pref medium
local ::1 dev lo table local proto kernel metric 0 pref medium
local fd00:0:1337:cafe:1111:1111:1a2d:460 dev wgclient1 table local proto kernel metric 0 pref medium
anycast fd46:609:777d:: dev br-lan.10 table local proto kernel metric 0 pref medium
local fd46:609:777d::1 dev br-lan.10 table local proto kernel metric 0 pref medium
anycast fe80:: dev eth0 table local proto kernel metric 0 pref medium
anycast fe80:: dev br-lan.20 table local proto kernel metric 0 pref medium
anycast fe80:: dev br-lan.10 table local proto kernel metric 0 pref medium
anycast fe80:: dev eth1 table local proto kernel metric 0 pref medium
local fe80::9683:c4ff:fea2:203f dev eth1 table local proto kernel metric 0 pref medium
local fe80::9683:c4ff:fea2:2041 dev eth0 table local proto kernel metric 0 pref medium
local fe80::9683:c4ff:fea2:2041 dev br-lan.20 table local proto kernel metric 0 pref medium
local fe80::9683:c4ff:fea2:2041 dev br-lan.10 table local proto kernel metric 0 pref medium
multicast ff00::/8 dev eth0 table local proto kernel metric 256 pref medium
multicast ff00::/8 dev br-lan.10 table local proto kernel metric 256 pref medium
multicast ff00::/8 dev br-lan.20 table local proto kernel metric 256 pref medium
multicast ff00::/8 dev eth1 table local proto kernel metric 256 pref medium
multicast ff00::/8 dev wgclient1 table local proto kernel metric 256 pref medium
multicast ff00::/8 dev wg0 table local proto kernel metric 256 pref medium
multicast ff00::/8 dev wg1 table local proto kernel metric 256 pref medium
ip rule show
0: from all lookup local
29996: from all sport <redacted> lookup pbr_wan
29997: from all sport <redacted> lookup pbr_wan
29998: from all fwmark 0x20000/0xff0000 lookup pbr_wgclient1
30000: from all fwmark 0x10000/0xff0000 lookup pbr_wan
32766: from all lookup main
32767: from all lookup default
wg show
interface: wg0
public key: <redacted>
private key: (hidden)
listening port: <redacted>
peer: <redacted>
endpoint: <redacted>
allowed ips: 10.0.0.3/32
latest handshake: 1 day, 17 hours, 20 minutes, 35 seconds ago
transfer: 33.60 MiB received, 242.39 MiB sent
persistent keepalive: every 25 seconds
peer: <redacted>
allowed ips: 10.0.0.2/32
persistent keepalive: every 25 seconds
peer: <redacted>
allowed ips: 10.0.0.4/32
persistent keepalive: every 25 seconds
peer: <redacted>
allowed ips: 10.0.0.5/32
peer: <redacted>
endpoint: <redacted>
allowed ips: 10.0.0.6/32
interface: wgclient1
public key: <redacted>
private key: (hidden)
listening port: <redacted>
peer: <redacted>
endpoint: <redacted>
allowed ips: 0.0.0.0/0, ::/0
latest handshake: 1 minute, 41 seconds ago
transfer: 13.89 GiB received, 26.31 GiB sent
interface: wg1
public key: <redacted>
private key: (hidden)
listening port: <redacted>
peer: <redacted>
endpoint: <redacted>
allowed ips: 10.0.100.2/32, 192.168.2.0/24
latest handshake: 21 seconds ago
transfer: 2.83 GiB received, 161.37 MiB sent
persistent keepalive: every 25 seconds
peer: <redacted>
endpoint: <redacted>
allowed ips: 10.0.100.3/32
transfer: 0 B received, 4.51 MiB sent
persistent keepalive: every 25 seconds