Once I've managed to get Wireguard VPN functioning on my Archer C6U, I've lost the ability to, for example, ssh into the router or any other device, or to connect via Moonlight to a Sunshine host under the router's network. If anyone could point me to the right direction I'd be very grateful.
Attached are various files and outputs:
wg show
interface: wg0
public key: <key1>
private key: (hidden)
listening port: 46507
peer: <key2>
endpoint: <ip:port>
allowed ips: 0.0.0.0/0, ::/128
latest handshake: 46 seconds ago
transfer: 140.46 GiB received, 5.97 GiB sent
cat /etc/config/firewall
config defaults
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone 'lan'
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
config zone 'wan'
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'wan6'
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 'ec
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 redirect
option dest 'lan'
option target 'DNAT'
option src_dport '22'
option dest_ip '192.168.1.181'
option dest_port '22'
option name 'SSH PC'
option src 'wan'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'Parsec'
list proto 'udp'
option src 'wan'
option dest_ip '192.168.1.181'
option src_dport '8000-8010'
option dest_port '8000-8010'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'MAM'
option src 'wan'
option dest_ip '192.168.1.181'
option src_dport '40000-60000'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'Wake on Wan'
list proto 'udp'
option src 'wan'
option src_dport '9'
option dest_ip '192.168.1.181'
option dest_port '9'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'SSH ROUTER'
option src_dport '23'
option dest_port '22'
option dest_ip '192.168.1.1'
option src 'wan'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'NixOS WSL SSH'
option src 'wan'
option src_dport '1337'
option dest_ip '192.168.1.181'
option dest_port '1337'
list proto 'tcp'
list proto 'udp'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'Force DNS'
option src_dport '53'
option dest_port '53'
option src 'lan'
config rule 'wg'
option name 'Allow-WireGuard'
option src 'wan'
option dest_port '<ip>'
option proto 'udp'
option target 'ACCEPT'
config forwarding
option src 'lan'
option dest 'wan'
config zone
option name 'vpn'
option output 'ACCEPT'
list network 'wg0'
option masq '1'
option input 'REJECT'
option forward 'REJECT'
config forwarding
option src 'lan'
option dest 'vpn'
cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
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'
option strictorder '1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option dhcpv4 'server'
option dhcpv6 'server'
option leasetime '24000h'
option force '1'
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'
config host
option name 'zhukopc'
option dns '1'
option mac '<mac1>'
option ip '192.168.1.181'
option duid '<duid1>'
option leasetime 'infinite'
config host
option name 'Zhukophone'
option ip '192.168.1.201'
option mac '<mac2>'
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 packet_steering '1'
option ula_prefix '<ipv6cidr>'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ip6assign '60'
list ipaddr '192.168.1.1/24'
list ipaddr '192.168.69.1/24'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
option peerdns '0'
list dns '<ip>'
option metric '20'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix 'auto'
option peerdns '0'
config interface 'wg0'
option proto 'wireguard'
option peerdns '0'
list dns '<ip>'
option metric '10'
option private_key '<pKey1>'
list addresses '<ipv4cidr>'
list addresses '<ipv6cidr>'
config wireguard_wg0
option description 'fi-hel-wg-002'
option public_key '<key2>'
list allowed_ips '0.0.0.0/0'
list allowed_ips '::0'
option route_allowed_ips '1'
option endpoint_host '<ip>'
option endpoint_port '<port>'
wg showconf wg0
[Interface]
ListenPort = <port>
PrivateKey = <pKey>
[Peer]
PublicKey = <key2>
AllowedIPs = 0.0.0.0/0, ::/128
Endpoint = <ip:port>
Both help & critique are very welcome.