-
Notifications
You must be signed in to change notification settings - Fork 37
Help with Mullvad on er-x #128
Comments
I actually set this up just today.
Note: I am using a zone based firewall config, you might need to adjust that to your configuration |
I'm having the same issue, but not using zone based firewall config. @droidforever did you got it working with your config? |
No I never got it working. I just ordered A Ubiquiti Access Point. Once that comes I will try again with the above suggestions to the config. |
Actually i got it working with basically your configuration (Bahnhof wireguard). I did play around alot with the wireguard config, and saw weird routes being in use even though i deleted those settings. So a reboot did the trick. I guess im affected by missing clean up code such as #116. However a subnet collision with my network and Bahnhof wireguard had also to be resolved. I dont know about Mullvad, and "general" discussions like this maybe should not be in a github issue. I will be happy to help you out in another forum. Anyway, the throughput is superior compared to OpenVPN. Great work everyone involved! |
I thought I had this working but I was unable to go to any site requiring TLS encryption such as yahoo mail. Here is the original guide I tried to follow: Can anyone please tell me what is wrong with these commands via CLI. Thank you |
Have you tried |
Check your PRIVATE_NETS firewall/nat group (if you have used the setup wizard in your router), the private network definitions may overlap with the ip range from mullvad.. |
Just my two cents: https://github.com/bneijt/mullvad-edgerouter-x/blob/master/mullvad-example_config.txt |
So if I understand the above I would replace |
10.8.0.1/32 is the private Mullvad DNS server (see https://mullvad.net/en/help/dns-leaks/ for more information on the address), so you can also do without that if you want and just use 1.1.1.1 and 1.0.0.1 if you want more privacy. |
@bneijt I followed your guide on https://github.com/bneijt/mullvad-edgerouter-x/blob/master/mullvad-example_config.txt but when I get to set description 'in-tunnel dns' I get an error about invalid configuration so I tried "edit system" and still got the same error. Your help with this would be greatly appreciated. Thank you |
@droidforever Try |
@droidforever my mistake, the description node is invalid at that position. I'll remove it from the configuration example. Thank you for pointing this out! Feel free to leave out the |
Here is my hardware:
Spectrum passthrough modem
Edgerouter X (Connects on 172.16.16.1 configured on eth4)
TL-SG108E Switch (IP 192.168.1.2)
Linksys Router in Bridge Mode (IP 192.168.1.3)
AmpedAlly whole home mesh network on eth2 which has been removed from the VLAN (IP 192.168.3.1) (it appears to get its internet address on IP 192.168.1.38) Eth2 is wired to WAN as this system can not be used an access point.
My setup:
set interfaces wireguard wg0 address {PEED_ADDR}
set interfaces wireguard wg0 listen-port 51820
set interfaces wireguard wg0 route-allowed-ips false
set interfaces wireguard wg0 peer {PEER_PUBKEY} endpoint {PEER_ENDPOINT}
set interfaces wireguard wg0 peer {PEER_PUBKEY} allowed-ips 0.0.0.0/0
set interfaces wireguard wg0 private-key /config/auth/wg.key
WG Nat
set service nat rule 5000 description 'mullvad-nat'
set service nat rule 5000 outbound-interface wg0
set service nat rule 5000 source address 192.168.1.0/24
set service nat rule 5000 type masquerade
commit
Routing to force connections through wg0 and fail open
set protocols static table 1 description 'table to force wg0:mullvad'
set protocols static table 1 interface-route 0.0.0.0/0 next-hop-interface wg0
set protocols static table 1 route 0.0.0.0/0 blackhole distance 255
commit
Route anything DHCPing to ER-X through wireguard routing
set firewall modify mullvad_route rule 10 description 'mullvad-vpn'
set firewall modify mullvad_route rule 10 source address 192.168.1.0/24
set firewall modify mullvad_route rule 10 modify table 1
commit
set interfaces switch switch0 firewall in modify mullvad_route
commit
Set edgerouter to use our own choice of DNS server, not the ISP's DHCP setting
set interfaces ethernet eth0 dhcp-options name-server no-update
set system name-server 127.0.0.1
set service dns forwarding system
set protocols static interface-route 1.1.1.1/32 next-hop-interface wg0
set protocols static interface-route 1.0.0.1/32 next-hop-interface wg0
Set client dns-server directly to a public IP to ensure we don't leak DNS requests
Traffic originating from the er-x won't be routed to the firewall
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 dns forwarding name-server 1.1.1.1
set service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 dns forwarding name-server 1.0.0.1
delete service dhcp-server shared-network-name LAN subnet 192.168.1.0/24 dns-server 192.168.1.1
commit;save;
I have a mistake somewhere as after configuration I have no access to the internet. Or on a couple occasions I would have access to my main computer on the WG interface but nothing else.
Any help on pointing out where my errors are would be greatly appreciated.
The text was updated successfully, but these errors were encountered: