Community discussions

MikroTik App
 
rodpp
newbie
Topic Author
Posts: 32
Joined: Thu Feb 05, 2015 1:45 am

Wireguard only works with IPv4 peers

Wed Dec 28, 2022 4:11 am

Hi!

I have a Wireguard server configured in a Mikrotik router (ROS 7.6) that only works when the peer has an IPv4 address. If the peer has an IPv6 address it doesn't work.

One peer is my cell phone, sometimes the LTE carrier assing to it an IPv4, sometimes an IPv6. That's the problem, everytime it gets an IPv6 I can't connect to my network using Wireguard.

I have the IPv6 disabled in my router:
/ipv6 settings
set disable-ipv6=yes max-neighbor-entries=8192

And the firewall allow the necessary input connection:
/ip firewall filter
add action=accept chain=input comment="default configuration" \
    connection-state=established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
    invalid log-prefix=FI_D_invalid
add action=accept chain=input protocol=icmp
add action=accept chain=input comment="Allow Wireguard Connections" dst-port=\
    1234 protocol=udp
    ...
What could be the problem?

Thanks!

Regards,
Rodrigo.

Who is online

Users browsing this forum: Bing [Bot] and 63 guests