Community discussions

MikroTik App
 
Danielcj
just joined
Topic Author
Posts: 1
Joined: Mon Jan 22, 2024 1:52 pm

WireGuard not working with IPV6 ULA addresses on LAN.

Wed Jan 31, 2024 3:12 pm

Hi,
I did enable IPV6 ULA addressing for my LAN using IPV6 ND, after that I'm not able to reach any website using WireGuard only local addresses are working. I have static IPV4 address from my ISP. My config is below:
/interface wireguard
add comment="Road Warrior" listen-port=13231 mtu=1440 name=WireGuard
add comment="Back to Home VPN" listen-port=39041 mtu=1420 name=\
    back-to-home-vpn
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip pool
add comment="LAN DHCP" name=dhcp_pool ranges=10.0.0.2-10.0.0.60
/interface list member
add interface=ether1 list=WAN
add interface=bridge list=LAN
add interface=WireGuard list=LAN
add interface=ZeroTier list=LAN
/ip address
add address=10.0.0.1/24 comment=LAN interface=bridge network=10.0.0.0
add address=10.0.3.1/24 comment=Docker interface=docker network=10.0.3.0
add address=10.0.1.2/24 comment="LEOX ONT" interface=ether1 network=10.0.1.0
add address=10.0.2.1/24 comment=Wireguard interface=WireGuard network=\
    10.0.2.0
/ip cloud
set back-to-home-vpn=enabled ddns-enabled=yes ddns-update-interval=10m \
    update-time=no
/ip dhcp-server network
add address=10.0.0.0/24 comment=LAN dns-server=10.0.3.2,10.0.0.1 domain=\
    home.arpa gateway=10.0.0.1 netmask=24 ntp-server=10.0.0.1
/ip dns
set allow-remote-requests=yes cache-size=8192KiB max-concurrent-queries=1000 \
    max-concurrent-tcp-sessions=2000 servers=9.9.9.9,149.112.112.112 \
    use-doh-server=https://dns.nextdns.io verify-doh-cert=yes
/ip firewall filter
add action=accept chain=forward comment="allow ZeroTier connection" \
    in-interface=ZeroTier
add action=accept chain=input comment="allow ZeroTier traffic" in-interface=\
    ZeroTier
add action=accept chain=input comment="allow WireGuard" dst-port=13231 \
    protocol=udp
add action=accept chain=input comment="allow WireGuard traffic" src-address=\
    10.0.2.0/24
add action=accept chain=input comment="accept established,related,untracked" \
    connection-state=established,related
add action=drop chain=input comment="drop invalid" connection-state=invalid
add action=accept chain=input comment="allow ICMP" in-interface-list=WAN \
    protocol=icmp
add action=accept chain=input comment=\
    "accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="drop all not coming from LAN" \
    in-interface-list=!LAN
add action=fasttrack-connection chain=forward comment=\
    "fast-track for established,related" connection-state=established,related \
    hw-offload=yes
add action=accept chain=forward comment=\
    "accept established,related,untracked" connection-state=\
    established,related
add action=drop chain=forward comment="drop invalid" connection-state=invalid
add action=drop chain=forward comment=\
    "drop access to clients behind NAT from WAN" connection-nat-state=!dstnat \
    connection-state=new in-interface-list=WAN
/ip firewall nat
add action=src-nat chain=srcnat comment="WAN NAT" out-interface-list=WAN \
    src-address=10.0.0.0/24 to-addresses=185.102.188.29
add action=masquerade chain=srcnat comment="Docker masquerade" src-address=\
    10.0.3.0/24
add action=dst-nat chain=dstnat comment="AdGuard NAT" dst-address=10.0.0.1 \
    dst-port=888 protocol=tcp to-addresses=10.0.3.2 to-ports=80
add action=redirect chain=dstnat comment="Transparent proxy" dst-port=80 \
    protocol=tcp src-address=10.0.0.0/24 src-address-list=!JMDI_TVIP \
    to-ports=8080
/ip proxy
set enabled=yes max-cache-object-size=50000KiB src-address=10.0.88.254
/ip route
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=0.0.0.0/8
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=172.16.0.0/12
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=192.168.0.0/16
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=10.0.0.0/8
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=169.254.0.0/16
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=127.0.0.0/8
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=224.0.0.0/4
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=198.18.0.0/15
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=192.0.0.0/24
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=192.0.2.0/24
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=198.51.100.0/24
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=203.0.113.0/24
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=100.64.0.0/10
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=240.0.0.0/4
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=192.88.99.0/24
add blackhole comment="Blackhole route for RFC6890 (limited broadcast)" \
    disabled=no dst-address=255.255.255.255/32
/ipv6 route
add blackhole comment="Blackhole route for RFC6890" disabled=no dst-address=\
    ::1/128
add blackhole comment="Blackhole route for RFC6890" disabled=no dst-address=\
    ::/128
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=64:ff9b::/96
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=::ffff:0.0.0.0/96
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=100::/64
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=2001::/23
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=2001::/32
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=2001:2::/48
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=2001:db8::/32
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=2001:10::/28
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=2002::/16
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=fc00::/7
add blackhole comment="Blackhole route for RFC6890 (aggregated)" disabled=no \
    dst-address=fe80::/10

/ipv6 address
add address=fc00::1 interface=bridge
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 firewall filter
add action=accept chain=input comment="accept established,related,untracked" \
    connection-state=established,related,untracked
add action=drop chain=input comment="drop invalid" connection-state=invalid
add action=accept chain=input comment="accept ICMPv6" protocol=icmpv6
add action=accept chain=input comment="accept UDP traceroute" port=\
    33434-33534 protocol=udp
add action=accept chain=input comment=\
    "accept DHCPv6-Client prefix delegation." dst-port=546 protocol=udp \
    src-address=fe80::/10
add action=accept chain=input comment="accept IKE" dst-port=500,4500 \
    protocol=udp
add action=accept chain=input comment="accept ipsec AH" protocol=ipsec-ah
add action=accept chain=input comment="accept ipsec ESP" protocol=ipsec-esp
add action=accept chain=input comment="accept all that matches ipsec policy" \
    ipsec-policy=in,ipsec
add action=drop chain=input comment=\
    "drop everything else not coming from LAN" in-interface-list=!LAN
add action=accept chain=forward comment=\
    "accept established,related,untracked" connection-state=\
    established,related,untracked
add action=drop chain=forward comment="drop invalid" connection-state=invalid
add action=drop chain=forward comment="drop packets with bad src ipv6" \
    src-address-list=bad_ipv6
add action=drop chain=forward comment="drop packets with bad dst ipv6" \
    dst-address-list=bad_ipv6
add action=drop chain=forward comment="rfc4890 drop hop-limit=1" hop-limit=\
    equal:1 protocol=icmpv6
add action=accept chain=forward comment="accept ICMPv6" protocol=icmpv6
add action=accept chain=forward comment="accept HIP" protocol=139
add action=accept chain=forward comment="accept IKE" dst-port=500,4500 \
    protocol=udp
add action=accept chain=forward comment="accept ipsec AH" protocol=ipsec-ah
add action=accept chain=forward comment="accept ipsec ESP" protocol=ipsec-esp
add action=accept chain=forward comment=\
    "accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=\
    "drop everything else not coming from LAN" in-interface-list=!LAN
/ipv6 nd
set [ find default=yes ] dns=fc00::1 interface=bridge
/ipv6 nd prefix
add interface=bridge preferred-lifetime=infinity prefix=fc00::/64 \
    valid-lifetime=infinity

Who is online

Users browsing this forum: ariux, Bing [Bot], ggwp, jurajhampel, pepe262, shahzaddj1 and 34 guests