[Support] Linuxserver.io - OpenVPN AS


1950 posts in this topic Last Reply

Recommended Posts

Just installed, but am not able to get to webUI:

Error: Could not execute server start.

/var/run/s6/etc/cont-init.d/40-openvpn-init: line 15: /etc/init.d/openvpnas: No such file or directory
[cont-init.d] 40-openvpn-init: exited 0.
[cont-init.d] 50-interface: executing...
MOD Default {u'admin_ui.https.ip_address': u'all'} {u'admin_ui.https.ip_address': 'eth0'}
MOD Default {u'cs.https.ip_address': u'all'} {u'cs.https.ip_address': 'eth0'}
MOD Default {u'vpn.daemon.0.listen.ip_address': u'all'} {u'vpn.daemon.0.listen.ip_address': 'eth0'}
MOD Default {u'vpn.daemon.0.server.ip_address': u'all'} {u'vpn.daemon.0.server.ip_address': 'eth0'}
[cont-init.d] 50-interface: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

 

Any ideas?

Link to post
  • Replies 1.9k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

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

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

I see quite a few references in this thread to setting up DDNS. Just wondering it that's a requirement or an option? Can I just connect from WAN using my router's external IP. It's not static but almost never changes (maybe 3 or 4 times in the past 7 years). I have a domain hosted by namecheap and could setup another one, but seems like a lot of hassle and expense if I don't need to.

Link to post

Actually, right now it's hosted on another machine on the same LAN. As soon as I get a chance I'll be uploading it to namecheap though. Purchased one of their hosting packages on Black Friday ($0.88/year and a lot more reliable). It includes 3 domains but I think I'd have to pay to register a new domain (maybe?).

 

I know I can use self-signed certs so won't need to purchase a new ssl certificate but wasn't sure about connecting via IP.

Link to post

Followed the above video, didn't get cert SSL or dynamic DNS setup because I am just making sure it works first. With two 1000/500Mbps fiber connections between the host and client, only seeing about 2MB/s speeds in both directions. Processor on both systems is under 50%.

 

Any ideas? I expected at least 20-50MB/s on these connections.

Link to post

Installed and I have no access to web gui

 

[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/index.php/donations/

-------------------------------------

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/Los_Angeles'

Local time is now: Sat Dec 10 04:55:31 PST 2016.

Universal Time is now: Sat Dec 10 12:55:31 UTC 2016.

 

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

[cont-init.d] 30-config: executing...

[cont-init.d] 30-config: exited 0.

[cont-init.d] 40-openvpn-init: executing...

[cont-init.d] 40-openvpn-init: exited 0.

[cont-init.d] 50-interface: executing...

MOD Default {} {}

MOD Default {} {}

MOD Default {} {}

MOD Default {} {}

[cont-init.d] 50-interface: exited 0.

[cont-init.d] done.

[services.d] starting services

[services.d] done.

Link to post

Followed the above video, didn't get cert SSL or dynamic DNS setup because I am just making sure it works first. With two 1000/500Mbps fiber connections between the host and client, only seeing about 2MB/s speeds in both directions. Processor on both systems is under 50%.

 

Any ideas? I expected at least 20-50MB/s on these connections.

 

So many variables I don't know where to start looking to be honest.  Might be helpful to post your setup in text form for those that haven't watched the video/can't remember the video.

Link to post

Installed and I have no access to web gui

 

[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/index.php/donations/
-------------------------------------
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/Los_Angeles'
Local time is now: Sat Dec 10 04:55:31 PST 2016.
Universal Time is now: Sat Dec 10 12:55:31 UTC 2016.

[cont-init.d] 20-time: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 40-openvpn-init: executing...
[cont-init.d] 40-openvpn-init: exited 0.
[cont-init.d] 50-interface: executing...
MOD Default {} {}
MOD Default {} {}
MOD Default {} {}
MOD Default {} {}
[cont-init.d] 50-interface: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

 

Post your docker run command.  Instructions in my sig.

Link to post

Followed the above video, didn't get cert SSL or dynamic DNS setup because I am just making sure it works first. With two 1000/500Mbps fiber connections between the host and client, only seeing about 2MB/s speeds in both directions. Processor on both systems is under 50%.

 

Any ideas? I expected at least 20-50MB/s on these connections.

 

So many variables I don't know where to start looking to be honest.  Might be helpful to post your setup in text form for those that haven't watched the video/can't remember the video.

 

I changed nothing, everything is default but adding a user and changing the IP.

 

- Installed the docker via community apps

- set the docker directory to my SSD cache drive (10GB size). Set the openvpn directory to that same folder.

- I signed into openvpn webui via admin and set my IP address under "server network settings".

- Set up a user, gave him the .msi for OpenVPN Connect, and he connected

- That's it, speeds are super slow.

 

I've been told you don't want to VPN host on common local networks (192.168.0.1), but no way that's causing the speed problem? I have opened port 1194 in my router, though port checkers claim 1194 is still closed. If I remove the port rule from my router, he can't connect so it's definitely opening it. Router is a Netgear R7000, followed the exact steps showed on their website. He's using a custom built pfsense router with about a billion settings, so no idea what it could be doing. Tempted to try removing both routers and doing a direction connection between two computers, but I doubt it's a router problem. Had this exact same problem 3 years ago when using a built-in router VPN as well, but we figured it was due to the router's slow processor. Next logical step I can think of is to use the intregrated openVPN feature in my Netgear R7000 router and see if it's better/worse/the same....

 

EDIT1: Perhaps an ISP is throttling openVPN but I don't see how to enable SSH 80 or SSL 443? https://airvpn.org/topic/14971-am-i-crazy-or-is-my-isp-throttling-openvpn/

 

EDIT2: Further reading, here's a guy claiming this only happens when transferring from SMB to windows (what we're doing): https://forum.pfsense.org/index.php?topic=51341.0 - "SO_SNDBUF and SO_RCVBUF socket options in Samba.  The recommended settings of 8192 cause a significant performance hit when transferring files over a VPN.  Changing the settings to 65536 cured the problem completely.". How do I do this?

Link to post

Followed the above video, didn't get cert SSL or dynamic DNS setup because I am just making sure it works first. With two 1000/500Mbps fiber connections between the host and client, only seeing about 2MB/s speeds in both directions. Processor on both systems is under 50%.

 

Any ideas? I expected at least 20-50MB/s on these connections.

 

So many variables I don't know where to start looking to be honest.  Might be helpful to post your setup in text form for those that haven't watched the video/can't remember the video.

 

I changed nothing, everything is default but adding a user and changing the IP.

 

- Installed the docker via community apps

- set the docker directory to my SSD cache drive (10GB size). Set the openvpn directory to that same folder.

- I signed into openvpn webui via admin and set my IP address under "server network settings".

- Set up a user, gave him the .msi for OpenVPN Connect, and he connected

- That's it, speeds are super slow.

 

I've been told you don't want to VPN host on common local networks (192.168.0.1), but no way that's causing the speed problem? I have opened port 1194 in my router, though port checkers claim 1194 is still closed. If I remove the port rule from my router, he can't connect so it's definitely opening it. Router is a Netgear R7000, followed the exact steps showed on their website. He's using a custom built pfsense router with about a billion settings, so no idea what it could be doing. Tempted to try removing both routers and doing a direction connection between two computers, but I doubt it's a router problem. Had this exact same problem 3 years ago when using a built-in router VPN as well, but we figured it was due to the router's slow processor. Next logical step I can think of is to use the intregrated openVPN feature in my Netgear R7000 router and see if it's better/worse/the same....

 

EDIT1: Perhaps an ISP is throttling openVPN but I don't see how to enable SSH 80 or SSL 443? https://airvpn.org/topic/14971-am-i-crazy-or-is-my-isp-throttling-openvpn/

 

EDIT2: Further reading, here's a guy claiming this only happens when transferring from SMB to windows (what we're doing): https://forum.pfsense.org/index.php?topic=51341.0 - "SO_SNDBUF and SO_RCVBUF socket options in Samba.  The recommended settings of 8192 cause a significant performance hit when transferring files over a VPN.  Changing the settings to 65536 cured the problem completely.". How do I do this?

 

EDIT2 is interesting.  I have no idea how to change it though I'm afraid.

 

And I don't want to ruin you day completely but saw something last night you should probably be aware of.

 

https://www.bleepingcomputer.com/news/security/cert-warns-users-to-stop-using-two-netgear-router-models-due-to-security-flaw/

Link to post

Followed the above video, didn't get cert SSL or dynamic DNS setup because I am just making sure it works first. With two 1000/500Mbps fiber connections between the host and client, only seeing about 2MB/s speeds in both directions. Processor on both systems is under 50%.

 

Any ideas? I expected at least 20-50MB/s on these connections.

 

So many variables I don't know where to start looking to be honest.  Might be helpful to post your setup in text form for those that haven't watched the video/can't remember the video.

 

I changed nothing, everything is default but adding a user and changing the IP.

 

- Installed the docker via community apps

- set the docker directory to my SSD cache drive (10GB size). Set the openvpn directory to that same folder.

- I signed into openvpn webui via admin and set my IP address under "server network settings".

- Set up a user, gave him the .msi for OpenVPN Connect, and he connected

- That's it, speeds are super slow.

 

I've been told you don't want to VPN host on common local networks (192.168.0.1), but no way that's causing the speed problem? I have opened port 1194 in my router, though port checkers claim 1194 is still closed. If I remove the port rule from my router, he can't connect so it's definitely opening it. Router is a Netgear R7000, followed the exact steps showed on their website. He's using a custom built pfsense router with about a billion settings, so no idea what it could be doing. Tempted to try removing both routers and doing a direction connection between two computers, but I doubt it's a router problem. Had this exact same problem 3 years ago when using a built-in router VPN as well, but we figured it was due to the router's slow processor. Next logical step I can think of is to use the intregrated openVPN feature in my Netgear R7000 router and see if it's better/worse/the same....

 

EDIT1: Perhaps an ISP is throttling openVPN but I don't see how to enable SSH 80 or SSL 443? https://airvpn.org/topic/14971-am-i-crazy-or-is-my-isp-throttling-openvpn/

 

EDIT2: Further reading, here's a guy claiming this only happens when transferring from SMB to windows (what we're doing): https://forum.pfsense.org/index.php?topic=51341.0 - "SO_SNDBUF and SO_RCVBUF socket options in Samba.  The recommended settings of 8192 cause a significant performance hit when transferring files over a VPN.  Changing the settings to 65536 cured the problem completely.". How do I do this?

 

EDIT2 is interesting.  I have no idea how to change it though I'm afraid.

 

And I don't want to ruin you day completely but saw something last night you should probably be aware of.

 

https://www.bleepingcomputer.com/news/security/cert-warns-users-to-stop-using-two-netgear-router-models-due-to-security-flaw/

 

I see lots of tweaks people suggest but I can't figure how to get them to work. I don't understand how to edit client and server configs.  The client config is intregrated in the .msi file you download, and the server config is vastly different format than any other openvpn config I see...

 

For example, to increase MTU size would this be right?:

{

  "Default": {    "admin_ui.https.ip_address": "all",    "admin_ui.https.port": "943",    "tun-mtu": "48000",    "auth.ldap.0.name": "My LDAP servers",

 

These are the tweaks im trying to apply... https://community.openvpn.net/openvpn/wiki/Gigabit_Networks_Linux

Link to post

Well can anyone confirm they are getting significantly more than 2MB/s with this app?

 

Yes, I've compiled the DVB builds over this and copied them to my phone over it.  I can't do a speedtest at the moment as my mobile reception is atrocious at home.  Hopefully someone else can provide this info.

Link to post

Installed and I have no access to web gui

 

[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/index.php/donations/
-------------------------------------
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/Los_Angeles'
Local time is now: Sat Dec 10 04:55:31 PST 2016.
Universal Time is now: Sat Dec 10 12:55:31 UTC 2016.

[cont-init.d] 20-time: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 40-openvpn-init: executing...
[cont-init.d] 40-openvpn-init: exited 0.
[cont-init.d] 50-interface: executing...
MOD Default {} {}
MOD Default {} {}
MOD Default {} {}
MOD Default {} {}
[cont-init.d] 50-interface: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

 

Post your docker run command.  Instructions in my sig.

 

 

Ihope this is enough

 

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 "PGID"="100" -e "PUID"="99" -v "/mnt/user/FERNAS01/Docker/openvpn-as":"/config":rw linuxserver/openvpn-as

1472ff7bab14912b08772cbcd8ad35061f592915d99d420ac0aa9a53863c0e29

 

The command finished successfully!

Link to post

Well can anyone confirm they are getting significantly more than 2MB/s with this app?

 

 

Have you tried the OpenVPN Forum? Just an idea. Bound to be a lot more users there and a better chance that someone has experience with this issue.

 

Yes, I tried there. I am giving up as this has already consumed two full days for me. I tried to connect to him today and it's not even working now. Nothing has changed and he has a static IP. Doesn't make any sense that I have all these issues when I followed the video exactly.

 

It sucks because I recently moved and a large part was so I could get gigabit internet to sync my friend and I's unRAID servers. There's no way we're sending TBs of data over 2MB/s. I feel like there should be a much easier way to connect two local networks.

Link to post
  • trurl pinned and unpinned this topic

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.