Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

VPN Servers not getting whitelisted #14

Closed
Maroko opened this issue Mar 26, 2021 · 4 comments
Closed

VPN Servers not getting whitelisted #14

Maroko opened this issue Mar 26, 2021 · 4 comments

Comments

@Maroko
Copy link

Maroko commented Mar 26, 2021

After several hours of testing, I got my setup working and wanted to share my solution.
Problem: I could not connect to my VPN (Mullvad).
The servers were not whitelisted:
Allowing remote servers in configuration file... Using: Allowing connections over VPN interface...
After the "Using:" log, the server list should be printed.
Additionally I got the following error logs:
write UDPv4: Operation not permitted (code=1)

Solution:
I used an OpenVPN.conf with IP addresses. After I changed to hostnames and added my subnets, it worked. To get all required subnets I turned off the killswitch, started a shell in my container and used traceroute to get the route to my dns server and added every subnet of a hop to the whitelisted subnets.

@Maroko Maroko closed this as completed Mar 26, 2021
@wfg
Copy link
Owner

wfg commented Mar 26, 2021

Can you share the conf used that caused parsing problems?

@Maroko
Copy link
Author

Maroko commented Mar 27, 2021

Of course!

mullvad_de_fra.txt

@wfg
Copy link
Owner

wfg commented Mar 27, 2021

Thanks. Here's the problem with the parsing:

for ip in $(dig -4 +short $domain); do

When using IP addresses, $domain is an IP address, not a FQDN, so I'm running dig on an IP address. Interesting situation.

wfg pushed a commit that referenced this issue Mar 27, 2021
wfg pushed a commit that referenced this issue Mar 27, 2021
@wfg
Copy link
Owner

wfg commented Mar 27, 2021

Should be fixed in v1.0.1.

I used the exact same conf file (with my Mullvad creds) and was able to connect with only DNS server address whitelisted and kill switch enabled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants