Jump to content
linuxserver.io

[Support] Linuxserver.io - OpenVPN-AS

1093 posts in this topic Last Reply

Recommended Posts

Assuming "stopped working" means the docker won't start, if you read up a few posts on this page, you will see lots of people did have the same issue and a solution is mentioned as working for all of them.  You might try that (setting docker to bridge mode instead of host). 
Sorry. The docker starts and everything but it doesn't connect, and the route is also gone from the network settings. I literally rolled back and started working again.

Sent from my Pixel 2 XL using Tapatalk

Share this post


Link to post

Gacpac.

Did you check that it is set to brige. and the right interface is set. ?

Share this post


Link to post

I tried in bridge and host and the route will never be added to the network settings. But that was using 6.7.0rc2 i downgraded back. I'll test again and is stable

Sent from my Pixel 2 XL using Tapatalk

Share this post


Link to post
3 hours ago, gacpac said:

I tried in bridge and host and the route will never be added to the network settings. But that was using 6.7.0rc2 i downgraded back. I'll test again and is stable

Sent from my Pixel 2 XL using Tapatalk
 

What do you mean by route never got added to the network?

Share this post


Link to post
What do you mean by route never got added to the network?
Well.

When you go settings > network settings

Then you scroll down to routing table and you should be able to see

Route (VPN server ipaddress).
Gateway (tun0)
Metric (1)

If this information is not added then your VPN server won't know where to go.

Sent from my Pixel 2 XL using Tapatalk

Share this post


Link to post
3 hours ago, gacpac said:

Well.

When you go settings > network settings

Then you scroll down to routing table and you should be able to see

Route (VPN server ipaddress).
Gateway (tun0)
Metric (1)

If this information is not added then your VPN server won't know where to go.

Sent from my Pixel 2 XL using Tapatalk
 

Do you mean in the unraid gui?

 

No, you won't see the tun interface in the unraid gui because the interface is inside the container. Vpn knows where to go because you are mapping ports. It goes through the docker bridge network on the host.

 

Did you actually try connecting or are you hypothesizing?

Edited by aptalca

Share this post


Link to post
2 minutes ago, aptalca said:

Do you mean in the unraid gui?

 

No, you won't see the tun interface in the unraid gui because the interface is inside the container. Vpn knows where to go because you are mapping ports. It goes through the docker bridge network on the host.

 

Did you actually try connecting or are you hypothesizing?

Actually, it's supposed to create a route automatically. Now in version 6.6.6 it's working perfectly

 

image.thumb.png.b7eced754ead5cbbf0a62b7d56baa5cc.png

 

And it has to show. If it doesn't show then the network is not created, meaning it won't connect.

Share this post


Link to post
On 1/27/2019 at 8:49 PM, gacpac said:

Sorry. The docker starts and everything but it doesn't connect, and the route is also gone from the network settings. I literally rolled back and started working again. 

I also had this issue with 6.7.0.  I was unable to connect after upgrading, but it works fine after downgrading back to 6.6.6

  • Upvote 1

Share this post


Link to post
41 minutes ago, Peanutman85 said:

I also had this issue with 6.7.0.  I was unable to connect after upgrading, but it works fine after downgrading back to 6.6.6

A fellow man who understands. I will wait until 6.7.0 stable to test 

Share this post


Link to post

current version of unraid (rc2) and docker container, I can only access the unraid base ip, I can no longer access anything else on the local lan because of the missing routing information

Share this post


Link to post

For anyone who's having issues with openvpn on unraid 6.7 rc, switch it to run in bridge networking, remove the INTERFACE variable setting or set it to eth0 (default) and map the ports 943 and 9443 for tcp and 1194 for udp

  • Like 1

Share this post


Link to post

Trying to add open vpn as docker, and there is not a download/install button, just a doate button.  How do I install this docker?

Share this post


Link to post
2 hours ago, icemounty said:

Trying to add open vpn as docker, and there is not a download/install button, just a doate button.  How do I install this docker?

See you already got your answer on the CA thread. Everybody can just skip this.

Share this post


Link to post
On 2/1/2019 at 8:20 PM, aptalca said:

For anyone who's having issues with openvpn on unraid 6.7 rc, switch it to run in bridge networking, remove the INTERFACE variable setting or set it to eth0 (default) and map the ports 943 and 9443 for tcp and 1194 for udp

Thanks!  This solved my problems.  I left the INTERFACE variable alone (it was set to eth0 anyway) and changed the network type from Host to Bridge , saved the changes and openvpn-as started working perfectly again 🙂

  • Like 1

Share this post


Link to post
On 2/2/2019 at 3:20 AM, aptalca said:

For anyone who's having issues with openvpn on unraid 6.7 rc, switch it to run in bridge networking, remove the INTERFACE variable setting or set it to eth0 (default) and map the ports 943 and 9443 for tcp and 1194 for udp

Perfect.. worked after deleting the interface variable and switching to BRIDGE... 

  • Like 1

Share this post


Link to post

Hey, bit of a noob here, thanks for the great work!  I am curently running a Pi-Hole container with it's own IP address and its working great with all connected devices - locally and externally.  The openvpn-AS server is also working great when not altering the client's DNS server settings.  The issue I am querying is when I set custom DNS to Pi-Hole's internal IP address and connect from outside the network, I connect to the VPN, but i cannot then connect back out to the internet.  The only change I have made is under "VPN settings" and "Have clients use specific DNS servers", from which I enter the local IP of my PI-Hole server.

 

I am trying to connect with Android 8.1 and I am using OpenVPN for android app.  I had also set the DNS in the settings within the config on android but that makes no difference.  I can get logs if required.  Any idea in what direction to move would be appreciated!

 

Many thanks in advance!

Edited by Brawbag
spelling

Share this post


Link to post
On 1/30/2019 at 12:57 AM, gacpac said:

Actually, it's supposed to create a route automatically. Now in version 6.6.6 it's working perfectly

 

image.thumb.png.b7eced754ead5cbbf0a62b7d56baa5cc.png

 

And it has to show. If it doesn't show then the network is not created, meaning it won't connect.

Umm, that's a no.

 

In bridge mode, connection goes from whatever network unraid uses, to the docker network, to the container through mapped ports, and inside the container it goes to the tun device. The tun device is not exposed to the host. 

 

I assure you my unraid knows nothing about a tun device and I have no problems connecting to vpn inside the container.

 

Like I said before, you should test it instead of just hypothesizing.

Share this post


Link to post
Umm, that's a no.
 
In bridge mode, connection goes from whatever network unraid uses, to the docker network, to the container through mapped ports, and inside the container it goes to the tun device. The tun device is not exposed to the host. 
 
I assure you my unraid knows nothing about a tun device and I have no problems connecting to vpn inside the container.
 
Like I said before, you should test it instead of just hypothesizing.
Well I looked at other users and it seemed to eb an issue when the docker is connected to the host network, which creates a tun route. I tried on bridge mode and it works. Same as the other users

Sent from my Pixel 2 XL using Tapatalk

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now