Hi, I'm a noob and I'm trying to configure my Mikrotic hAP ac2 router to be VPN client using WireGuard VPN protocol for Proton VPN. After I'm using commands from Proton VPN Mikrotik router setup tutorial my router stops responding and internet is not working any more.
My setup:
I have Mikrotic hAP ac2 (RouterOS v7.3.1) connected via ethernet cable to the router from my Internet Provider.
Instructions that I use:
I have setup instruction and WireGuard configuration file from Protone VPN web page.
Setup instruction: https://protonvpn.com/support/wireguard ... k-routers/
My WireGuard configuration:
[Interface]
# Key for MikroTik Germany (via Switzerland)
# NetShield = 1
# Moderate NAT = off
# VPN Accelerator = on
PrivateKey = *****
Address = 10.2.0.2/32
DNS = 10.2.0.1
[Peer]
# CH-DE#1
PublicKey = *****
AllowedIPs = 0.0.0.0/0
Endpoint = 185.159.157.184:51820
What I do:
I use next commands to configure my router:
Route all internet traffic through a VPN server:
/ip firewall address-list add address=192.168.88.0/24 list=under_protonvpn
/ip firewall mangle add action=mark-connection chain=prerouting src-address-list=under_protonvpn new-connection-mark=under_protonvpn passthrough=yes
Create WireGuard configurations:
/interface/wireguard/add name=protonwg01 private-key="*****" comment="ProtonVPN interface"
/interface/wireguard/peers/add endpoint-address=185.159.157.184 endpoint-port=51820 public-key="*****" allowed-address=0.0.0.0/1,128.0.0.0/1 interface=protonwg01
/ip/address/add address=10.2.0.2/32 interface=protonwg01
/ip/dns/set servers=10.2.0.1 allow-remote-requests=yes
/routing/table/add name=protonvpn_wg fib
/ip/firewall/mangle/add chain=prerouting src-address-list=under_protonvpn action=mark-routing new-routing-mark=protonvpn_wg passthrough=yes
/ip/route/add routing-table=protonvpn_wg dst-address=0.0.0.0/0 gateway=protonwg01 comment="ProtonVPN Wireguard default route"
After last command my router stops responding and internet stops working. I can't access router web interface by http://192.168.88.1 any more. In order to access router I need press physical reset button on the router to set it to default.
I very appreciate if anyone can help me to solve my problem