Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - OpenVPN AS

Featured Replies

2 hours ago, aptalca said:

Run it in bridge mode as shown on GitHub or docker hub page

it already is deploying with the option (INTERFACE=eth0):

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='openvpn-as' --net='host' --privileged=true -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e 'TCP_PORT_943'='943' -e 'TCP_PORT_9443'='9443' -e 'UDP_PORT_1194'='1194' -e 'INTERFACE'='eth0' -e 'PGID'='100' -e 'PUID'='99' -v '/mnt/user/appdata/openvpn-as':'/config':'rw' 'linuxserver/openvpn-as' 

e005927c1b69a868509c178eb48cd476ec0f98fa67ef0442a9d8daf62d03058b

 

 

 

 

I have somewhat narrowed down the problem. If I start openVPN prior to all my other docker services the OpenVPN server starts up without issue. I am not sure which one is causing the conflict however...

 

 

Screen Shot 2019-04-06 at 4.46.28 PM.png

Edited by Jhp612

  • Replies 2k
  • Views 462.7k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • SpaceInvaderOne
    SpaceInvaderOne

    I have made un updated video guide for setting up this great container. It covers setting up the container, port forwarding and setting up clients on Windows, macOS Linux (ubuntu Mate) and on cel

  • PSA. It seems openvpn pushed another broken bin, tagged 2.7.3 I get the same error with it as I did with the previously pulled 2.7.2   While they/us try to figure it out, you can change

  • Stupifier
    Stupifier

    Ok, I used to be able to connect to Host network with this before the update....that allowed me to be assigned an IP on my WiFi subnet, which then allowed me to access the UnRAID GUI interface.  

Posted Images

21 minutes ago, aptalca said:

Run it in bridge mode as shown on GitHub or docker hub page

 

2 minutes ago, Jhp612 said:

it already is deploying with the option:

2 minutes ago, Jhp612 said:

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='openvpn-as' --net='host'

 

2 hours ago, Squid said:

  

 

 

Hey Squid did I miss a response? From the doc's it shows that it is in bridge mode by default since January and you can also see the interface is set to eth0 unless I am missing something 

11 minutes ago, Jhp612 said:

bridge mode by default since January

Look at your screenshot.  It's not in bridge mode.

 

Personally, I don't use this container, and just jumped in when I saw your docker run command and screenshot both stated Host when @aptalca asked you to switch it to bridge.

Hi All, Having an issue with the recent linuxserver/openvpn-as repo build of Openvpn-as that I hope someone can shed some light. Running 6.7.0-rc-7 right now, haven't updated openVPN in ages (can't recall prior build but already did the network type = bridge and removal of "interface=eth0" modifications which all worked until I tried to change the network settings the clients could access) but decided to nuke the full install and start from scratch. 

 

As it stands now I'm able to install the docker, get into the GUI and add a new user although every time I attempt to stop/start the docker it appears the install reverts back to defaults. I mean my users details, as.conf settings and not sure what else all revert back to the defaults as if the file has been completely wiped. 

 

I've tried using the same app folder location and new app folder location but nothing appears to be retained. File permissions look correct (nobody/users) and the cache drive works for the other dockers just not this one. 

 

Any assistance is greatly appreciated. 

 

App run is as follows:

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='OpenVPN' --net='bridge' --log-opt max-size='10m' --log-opt max-file='3' --privileged=true -e TZ="America/New_York" -e HOST_OS="Unraid" -e 'PGID'='100' -e 'PUID'='99' -p '943:943/tcp' -p '9443:9443/tcp' -p '1194:1194/udp' -v '/mnt/user/Dockers/openvpn':'/config':'rw' 'linuxserver/openvpn-as' 
566e0951ece71323f6fa1a567f02a72ba1301036be09ca43ccd155914931f7b6

logs when the docker starts (up to EULA) are as follows:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...

-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-time: executing...

Current default time zone: 'America/New_York'
Local time is now: Sat Apr 6 22:45:22 EDT 2019.
Universal Time is now: Sun Apr 7 02:45:22 UTC 2019.

[cont-init.d] 20-time: exited 0.
[cont-init.d] 30-config: executing...
existing data found, reinstalling openvpn-as
backing up certs.db
backing up cluster.db
backing up config.db
backing up config_local.db
backing up log.db
backing up notification.db
backing up userprop.db
backing up as.conf
Selecting previously unselected package openvpn-as.
(Reading database ... 11947 files and directories currently installed.)
Preparing to unpack /openvpn/openvpn.deb ...
Unpacking openvpn-as (2.7.3-05bc07c0-Ubuntu16) ...
Setting up openvpn-as (2.7.3-05bc07c0-Ubuntu16) ...
Automatic configuration failed, see /usr/local/openvpn_as/init.log

You can configure manually using the /usr/local/openvpn_as/bin/ovpn-init tool.
Automatic configuration failed, see /usr/local/openvpn_as/init.log

You can configure manually using the /usr/local/openvpn_as/bin/ovpn-init tool.
Beginning with OpenVPN AS 2.6.0 compression is disabled by default and on upgrades as security patch.
restoring certs.db
restoring cluster.db
restoring config.db
restoring config_local.db
restoring log.db
restoring certs.db
restoring cluster.db
restoring config.db
restoring config_local.db
restoring log.db
restoring notification.db
restoring userprop.db
restoring as.conf
[cont-init.d] 30-config: exited 0.
[cont-init.d] 40-openvpn-init: executing...
Detected an existing OpenVPN-AS configuration.
Continuing will delete this configuration and restart from scratch.
Please enter 'DELETE' to delete existing configuration:
OpenVPN Access Server
Initial Configuration Tool
------------------------------------------------------
OpenVPN Access Server End User License Agreement (OpenVPN-AS EULA)

 

51 minutes ago, jaybird2203 said:

Hi All, Having an issue with the recent linuxserver/openvpn-as repo build of Openvpn-as that I hope someone can shed some light. Running 6.7.0-rc-7 right now, haven't updated openVPN in ages (can't recall prior build but already did the network type = bridge and removal of "interface=eth0" modifications which all worked until I tried to change the network settings the clients could access) but decided to nuke the full install and start from scratch. 

 

As it stands now I'm able to install the docker, get into the GUI and add a new user although every time I attempt to stop/start the docker it appears the install reverts back to defaults. I mean my users details, as.conf settings and not sure what else all revert back to the defaults as if the file has been completely wiped. 

 

I've tried using the same app folder location and new app folder location but nothing appears to be retained. File permissions look correct (nobody/users) and the cache drive works for the other dockers just not this one. 

 

Any assistance is greatly appreciated. 

 

App run is as follows:


root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='OpenVPN' --net='bridge' --log-opt max-size='10m' --log-opt max-file='3' --privileged=true -e TZ="America/New_York" -e HOST_OS="Unraid" -e 'PGID'='100' -e 'PUID'='99' -p '943:943/tcp' -p '9443:9443/tcp' -p '1194:1194/udp' -v '/mnt/user/Dockers/openvpn':'/config':'rw' 'linuxserver/openvpn-as' 
566e0951ece71323f6fa1a567f02a72ba1301036be09ca43ccd155914931f7b6

logs when the docker starts (up to EULA) are as follows:


[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing...

-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/


Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-time: executing...

Current default time zone: 'America/New_York'
Local time is now: Sat Apr 6 22:45:22 EDT 2019.
Universal Time is now: Sun Apr 7 02:45:22 UTC 2019.

[cont-init.d] 20-time: exited 0.
[cont-init.d] 30-config: executing...
existing data found, reinstalling openvpn-as
backing up certs.db
backing up cluster.db
backing up config.db
backing up config_local.db
backing up log.db
backing up notification.db
backing up userprop.db
backing up as.conf
Selecting previously unselected package openvpn-as.
(Reading database ... 11947 files and directories currently installed.)
Preparing to unpack /openvpn/openvpn.deb ...
Unpacking openvpn-as (2.7.3-05bc07c0-Ubuntu16) ...
Setting up openvpn-as (2.7.3-05bc07c0-Ubuntu16) ...
Automatic configuration failed, see /usr/local/openvpn_as/init.log

You can configure manually using the /usr/local/openvpn_as/bin/ovpn-init tool.
Automatic configuration failed, see /usr/local/openvpn_as/init.log

You can configure manually using the /usr/local/openvpn_as/bin/ovpn-init tool.
Beginning with OpenVPN AS 2.6.0 compression is disabled by default and on upgrades as security patch.
restoring certs.db
restoring cluster.db
restoring config.db
restoring config_local.db
restoring log.db
restoring certs.db
restoring cluster.db
restoring config.db
restoring config_local.db
restoring log.db
restoring notification.db
restoring userprop.db
restoring as.conf
[cont-init.d] 30-config: exited 0.
[cont-init.d] 40-openvpn-init: executing...
Detected an existing OpenVPN-AS configuration.
Continuing will delete this configuration and restart from scratch.
Please enter 'DELETE' to delete existing configuration:
OpenVPN Access Server
Initial Configuration Tool
------------------------------------------------------
OpenVPN Access Server End User License Agreement (OpenVPN-AS EULA)

 

It seems there is a bug for new installs. Looking into it.

 

EDIT: Yup, missed something for new installs. PR submitted, should be merged soon. After update, it will reset one more time but then it should be good.

Edited by aptalca

Will an update from 2.6.1-ls11 to the head version still reset all settings?

It seems there is a bug for new installs. Looking into it.
 
EDIT: Yup, missed something for new installs. PR submitted, should be merged soon. After update, it will reset one more time but then it should be good.
Appreciate the quick turn around. Can report that the details do remain after the upgrade so that portion was addressed.

Sent from my SM-T700 using Tapatalk

6 hours ago, jj_uk said:

Will an update from 2.6.1-ls11 to the head version still reset all settings?
 

If you have existing data, you're fine. Only on a brand new install with the latest version, data wasn't being stored properly. It's fixed now.

 

I basically focused so much on upgrades that I didn't notice a bug that affects new installs

Edited by aptalca

4 hours ago, aptalca said:

If you have existing data, you're fine. Only on a brand new install with the latest version, data wasn't being stored properly. It's fixed now.

 

I basically focused so much on upgrades that I didn't notice a bug that affects new installs

I try update from 2.6.1 all ok, but cant connect to WEB UI, try remove openvpn and install again, all ok, but no connect to WEB UI.

 

Command is: Command:root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='openvpn-as' --net='host' --privileged=true -e TZ="Europe/Warsaw" -e HOST_OS="Unraid" -e 'TCP_PORT_943'='943' -e 'TCP_PORT_9443'='9443' -e 'UDP_PORT_1194'='1194' -e 'INTERFACE'='bond0' -e 'PGID'='100' -e 'PUID'='99' -v '/mnt/user/appdata/openvpn-as':'/config':'rw' 'linuxserver/openvpn-as'

2d7236142effe43d3725c7944fa8b1a669f5edb4ced3600ffa101bd0812b1053

The command finished successfully!

 

Log files in app data is empty. I try host and bridge mod, again can't connect to WEB UI, what wrong. Plese help.

 

39 minutes ago, Kristijan said:

I try update from 2.6.1 all ok, but cant connect to WEB UI, try remove openvpn and install again, all ok, but no connect to WEB UI.

 

Command is: Command:root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='openvpn-as' --net='host' --privileged=true -e TZ="Europe/Warsaw" -e HOST_OS="Unraid" -e 'TCP_PORT_943'='943' -e 'TCP_PORT_9443'='9443' -e 'UDP_PORT_1194'='1194' -e 'INTERFACE'='bond0' -e 'PGID'='100' -e 'PUID'='99' -v '/mnt/user/appdata/openvpn-as':'/config':'rw' 'linuxserver/openvpn-as'

2d7236142effe43d3725c7944fa8b1a669f5edb4ced3600ffa101bd0812b1053

The command finished successfully!

 

Log files in app data is empty. I try host and bridge mod, again can't connect to WEB UI, what wrong. Plese help.

 

 

I think you can remove -e 'INTERFACE'='bond0' and run it as bridge now as per the readme.

42 minutes ago, CHBMB said:

 

I think you can remove -e 'INTERFACE'='bond0' and run it as bridge now as per the readme.

In readme I see this parameter.

 

 

2.PNG

@Kristijan Did you also read the bit that says With bridge networking, leave it as eth0 (or don't include at all)

Edited by CHBMB

6 minutes ago, CHBMB said:

@Kristijan Did you also read the bit that says With bridge networking, leave it as eth0 (or don't include at all)

Yes, I try but no sucess. Again not connect to WEB UI. Change to bridge and eth0.

 

 

3.PNG

30 minutes ago, CHBMB said:

@Kristijan Logs?

After 10 reinstall i access WEB UI now, but now when change to bridge, when connect to VPN, connection is sucessful, but I cant open nothing on remote side. What I do wrong? I put listen to eth0 interface, and UDP port 1194. On host this settings normally work.

 

After restart open vpn docker i have error in logs. Why this error hapend. Again I cant connect to WEB UI

 

 

4.png

Edited by Kristijan

18 minutes ago, Kristijan said:

After 10 reinstall i access WEB UI now, but now when change to bridge, when connect to VPN, connection is sucessful, but I cant open nothing on remote side. What I do wrong? I put listen to eth0 interface, and UDP port 1194. On host this settings normally work.

 

After restart open vpn docker i have error in logs. Why this error hapend. Again I cant connect to WEB UI

 

 

4.png

Delete your appdata folder and try again, looks corrupt, I don't use the container, but just pulled it here with

 

docker run -d --name='openvpn-as' \
--net='bridge' \
-e TZ="Europe/London" \
-e HOST_OS="Unraid" \
-e 'PGID'='100' \
-e 'PUID'='99' \
-p '943:943/tcp' \
-p '9443:9443/tcp' \
-p '1194:1194/udp' \
-v '/mnt/cache/appdata/openvpn-as':'/config':'rw' \
--cap-add=NET_ADMIN \
'linuxserver/openvpn-as'

and it started right up.

 

Here's my logs

 

and the webui

 

2019-04-07_22-45.thumb.png.569e01bbd97ae259097609422dcbe153.png

8 hours ago, CHBMB said:

Delete your appdata folder and try again, looks corrupt, I don't use the container, but just pulled it here with

 


docker run -d --name='openvpn-as' \
--net='bridge' \
-e TZ="Europe/London" \
-e HOST_OS="Unraid" \
-e 'PGID'='100' \
-e 'PUID'='99' \
-p '943:943/tcp' \
-p '9443:9443/tcp' \
-p '1194:1194/udp' \
-v '/mnt/cache/appdata/openvpn-as':'/config':'rw' \
--cap-add=NET_ADMIN \
'linuxserver/openvpn-as'

and it started right up.

 

Here's my logs

 

and the webui

 

2019-04-07_22-45.thumb.png.569e01bbd97ae259097609422dcbe153.png

Ok, tnx. Where i can put command. When installing a docker and choising parameters and click apply command run auto.

Ok, tnx. Where i can put command. When installing a docker and choising parameters and click apply command run auto.
The template does all the commands for you. I'm just posting it as it's easier than a screenshot.

Sent from my Mi A1 using Tapatalk

Just now, CHBMB said:

The template does all the commands for you. I'm just posting it as it's easier than a screenshot.

Sent from my Mi A1 using Tapatalk
 

Ok, but I can't edit as.conf No permissions when docker is started.

 

With version 2.6.1 i don't have this issue.

 

 

1.JPG

Ok, but I can't edit as.conf No permissions when docker is started.
 
With version 2.6.1 i don't have this issue.
 
 
1.JPG.f71744ad7e2dfe38096002a660b8e4e4.JPG
Why do you need to edit as.conf?

Sent from my Mi A1 using Tapatalk

3 minutes ago, CHBMB said:

Why do you need to edit as.conf?

Sent from my Mi A1 using Tapatalk
 

I must edit as.config and comment creating defaut admin user after docker update.

I must edit as.config and comment creating defaut admin user after docker update.
Try this from the terminal

docker exec -it openvpn-as bash
nano /config/etc/as.conf

Make your change then press ctrl & x and then type y to save and restart the container.

Sent from my Mi A1 using Tapatalk

Hi Guys,

 

So i had OpenVPN running smoothly until last nights update. (Have auto updating turned on).  When i tried to connect this morning it wouldn't connect.  Checked my openvpn-as appdata share and most of the contents were missing.  Not a big deal.  Just created from scratch and had the config back working about 10 mins later.

 

My problem is that now i can't connect on UDP (port 1194).  Port is still forwarded to the container it just won't connect.  I tried changing it to TCP (Port 9443, Opened it on my router) and it worked first time.  I just can't for the life of me figure out why this bugger won't connect on UDP any more.

 

Anyone else had a similar experience?

 

Below are my port mappings,  Using Bridged as my networking option.

 

172.17.0.10:1194/UDP-192.168.0.18:1194
172.17.0.10:943/TCP-192.168.0.18:943
172.17.0.10:9443/TCP-192.168.0.18:9443

3 hours ago, CHBMB said:

Try this from the terminal

docker exec -it openvpn-as bash
nano /config/etc/as.conf

Make your change then press ctrl & x and then type y to save and restart the container.

Sent from my Mi A1 using Tapatalk
 

No nano inside openvpn container.

 

He needs to edit it on unraid directly via "nano /mnt/user/appdata/openvpn-as/etc/as.conf"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.