Hope I get some assistance and I appreciate those who take time from their busy schedules to lend a hand. This mikrotik is my home router and I am the furthest from an IT professional. I’m trying to get this wireguard client to work without impacting the entire home network so I went the VLAN route.
I’ve read multiple posts, even the stickies concerning VLAN and unfortunately I’m not in a position to completely restructure the configuration due to family visiting with numerous kiddos and my wife hating to lose access to the internet. I wish I could get her out of the house to redo this all but I’m stuck having to continue with my slightly hobbled configuration and hoping to get it working as intended.
So, I’m able to connect to the VLAN and ping the router and the DNS used for the home network, however, it’s unable to access the internet nor ping the wireguard DNS and server. The wireguard client PEER looks to have a connection but I’m unable to confirm. I believe I have a firewall rule that is missing or misdirected that is causing all my issues and I’m struggling to figure it out.
Also, if anyone can recommend changes to clean up the config (especially the firewall section), I would greatly appreciate it! Configuring this and getting it work as I wish has been enjoyable, and even though I get stuck from time to time, I’m usually able to figure it out but this time I’m stumped.
Thank you
# dec/23/2023 15:32:22 by RouterOS 7.8
# software id = GN4Y-UV2W
#
# model = RB750Gr3
# serial number = D5030F11F667
/interface bridge
add admin-mac=DC:2C:6E:BD:86:06 auto-mac=no comment=defconf name=bridge
/interface l2tp-server
add name=l2tp-in1 user=ber
add name=l2tp-test user=vpn
/interface wireguard
add listen-port=57775 mtu=1420 name=mullvad-upstream
/interface vlan
add interface=bridge name=mullvad vlan-id=60
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=192.168.88.21-192.168.88.254
add name=Cameras ranges=192.168.88.15-192.168.88.20
add name=VPNpool ranges=192.168.89.2-192.168.89.255
add name=Wireguard-in ranges=10.0.60.2-10.0.60.254
/ip dhcp-server
add address-pool=dhcp interface=bridge lease-time=6h name=defconf
add address-pool=Wireguard-in interface=mullvad name=dhcp1
/port
set 0 name=serial0
/ppp profile
add change-tcp-mss=yes dns-server=1.1.1.1,8.8.8.8 interface-list=LAN \
local-address=192.168.89.1 name=VPNProfile remote-address=VPNpool \
use-encryption=yes
/routing table
add fib name=mullvad
/system logging action
add email-start-tls=yes email-to=ber*** name=VPNorLogin \
target=email
/interface bridge port
add bridge=bridge comment=defconf ingress-filtering=no interface=ether2
add bridge=bridge comment=defconf ingress-filtering=no interface=ether3
add bridge=bridge comment=defconf ingress-filtering=no interface=ether4
add bridge=bridge comment=defconf ingress-filtering=no interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192
/interface bridge vlan
add bridge=bridge vlan-ids=60
/interface l2tp-server server
set enabled=yes use-ipsec=yes
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/interface ovpn-server server
set auth=sha1,md5
/interface pptp-server server
# PPTP connections are considered unsafe, it is suggested to use a more modern VPN protocol instead
set enabled=yes
/interface sstp-server server
set default-profile=default-encryption enabled=yes
/interface wireguard peers
add allowed-address=0.0.0.0/0,::/0 endpoint-address=198.54.134.162 \
endpoint-port=51820 interface=mullvad-upstream persistent-keepalive=35s \
public-key="Vim/OUBT3Bogv+FF623pAHXc/vmRwur2JKcNsLHQH1o="
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
192.168.88.0
add address=192.168.1.100/24 interface=ether5 network=192.168.1.0
add address=10.65.2.109 interface=mullvad-upstream network=10.124.0.70
add address=10.0.60.1/24 interface=mullvad network=10.0.60.0
/ip arp
add address=192.168.88.255 interface=bridge
add address=192.168.88.5 interface=bridge mac-address=00:D8:61:4E:2A:0A
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add comment=defconf interface=ether1 script=":if ( [/ping 8.8.8.8 interface= \
\"ether1\" count=6 ] = 0) do={/ip dhcp-client release numbers=0}"
/ip dhcp-server network
add address=10.0.60.0/24 dns-server=100.64.0.7 gateway=10.0.60.1
add address=192.168.1.0/24 dns-server=1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4 \
gateway=192.168.88.1
add address=192.168.88.0/24 comment=defconf dns-server=\
1.1.1.1,8.8.8.8,1.0.0.1,8.8.4.4 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall address-list
add address=192.168.88.14-192.168.88.19 list=Cameras
/ip firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=output comment=\
"Wireguard allow destination access via port" dst-address=198.54.134.162 \
dst-port=51820 protocol=udp
add action=accept chain=input comment="Allow L2TP VPN ipsec" protocol=\
ipsec-esp
add action=accept chain=input comment="allow IPsec NAT" dst-port=4500 \
protocol=udp
add action=accept chain=input comment=\
"Allow L2TP VPN ispec (udp 500,1701,4500)" dst-port=500,1701,4500 \
protocol=udp
add action=accept chain=input comment="allow pptp" disabled=yes dst-port=1723 \
protocol=tcp
add action=accept chain=input comment="allow sstp" disabled=yes dst-port=443 \
protocol=tcp
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related hw-offload=yes
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface-list=WAN
add action=accept chain=forward comment="Allow Port Forwarding - DSTNAT" \
connection-nat-state=dstnat in-interface-list=WAN
add action=drop chain=forward comment="Camer IP blocked from internet" \
out-interface=ether1 src-address-list=Cameras
/ip firewall mangle
add action=mark-routing chain=prerouting in-interface=mullvad-upstream \
new-routing-mark=mullvad
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat out-interface=mullvad-upstream
add action=masquerade chain=srcnat comment="masq. vpn traffic" src-address=\
192.168.89.0/24
add action=dst-nat chain=dstnat comment=Plex dst-port=32400 in-interface=\
ether1 protocol=tcp to-addresses=192.168.88.3
add action=dst-nat chain=dstnat comment="Plex UDP" disabled=yes dst-port=\
32400 in-interface=ether1 protocol=udp to-addresses=192.168.88.3 \
to-ports=32400
/ip firewall service-port
set ftp disabled=yes
/ip route
add dst-address=0.0.0.0/0 gateway=10.124.0.70 routing-table=mullvad
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
/ppp profile
set *FFFFFFFE local-address=192.168.89.1 remote-address=*4
/ppp secret
add name=ber profile=VPNProfile
add name=vpn profile=VPNProfile
/routing rule
add action=lookup-only-in-table routing-mark=mullvad table=mullvad
/system clock
set time-zone-name=America/Los_Angeles
/system identity
set name=RouterOS
/system logging
add action=VPNorLogin topics=l2tp,ppp,info,account
/tool e-mail
set address=smtp.zoho.com from=fub** port=587 tls=starttls user=\
fub**
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN