Hello,
Since this morning, I tried to configure my old rb951G with wireguard to route all traffic through the vpn.
First, I did a complete reset, and updated my router to version 7.1(stable).
The configuration file from my provider
[Interface]
PrivateKey = Privxxxxxxxxxxxxxx
Address = 192.168.140.2/32
DNS = 109.236.87.2, 23.237.56.98
[Peer]
PublicKey = PubXXXXXXXXXX
AllowedIPs = 0.0.0.0/0
Endpoint = 62.X.X.X:443
After that, in winbox, I configured an interface for wireguard (translated in the script)
/interface wireguard add listen-port=13231 mtu=1420 name=wireguard1 listen-port=13231 private-key=Privxxxxxxxxxxxxxx
/interface wireguard peers
add allowed-address=0.0.0.0/O interface=wireguard1 public-key=PubXXXXXXXXXX endpoint=62.X.X.X:443 enpointport=443
My interface seems to be correct and working but no new IP address appears in /ip address print.
IP DHCP client : uncheck "use dns peer" and "use dns ntp" also (I'm also tried to modifed the value of "Default route Distance")
IP Dns : I configured a static dns with google(8.8.8.8 and 8.8.4.4) and unchecked in the
IP address : /add address=192.168.140.2/32 interface=wireguard1 network=1192.168.140.2
Here I tried 2 things:
1) I tried to change
/interface list change wan to wireguard1. But not working
2) in firewall-NAT create rule with maskarable with wireguard1 as output interface and disable old one
firewall-FILTER Create 3 rules : accept all in,out,forward
create a new route 0.0.0.0/24 to wireguard1
Not working
Can you help me configure a vpn client with wiregard to route all traffic through the vpn?
Thanks in advance