[Support] Linuxserver.io - OpenVPN AS


Recommended Posts

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
Link to comment
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'

 

Link to comment
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.

Link to comment

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)

 

Link to comment
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
Link to comment
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

Link to comment
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
Link to comment
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.

 

Link to comment
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.

Link to comment
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
Link to comment
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

Link to comment
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.

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment

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

Link to comment
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"

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.