The guy that used the other vpn service did not have any issues.
OpenVPN with FrootVPN
-
- OMV 1.0
- gelöst
- Nibb31
-
-
The guy that used the other vpn service did not have any issues.
Which one? maybe his server wasn't pushing ipv6
-
Yes, most VPN providers don't support IPv6. FrootVPN is free though, which is why I'd like to get it working.
Anyway, after sysctl -w net.ipv6.conf.default.disable_ipv6=0, it was able to connect. It closed off the SSH session, which was using the WAN IP, which probably means that all traffic is now going through the VPN. The WebUI now lists a tun0 connection with a new IP. I can reconnect SSH through that IP.
So how I can get this to work permanently after every reboot?
-
You could usually put something in /etc/rc.local but it needs to authenticate. I would have to look into it, same as you. Need to find out how to have it auto authenticate.
-
In /etc/sysctl.conf
edit: OMV generates another one at sysctl.d/ folder with the opposite.
So you can edit in /etc/sysctl.d/99-openmediavault.conf but i am not to sure at which event OMV will regenerate the default one
-
You can work around the authentication by editing the ovpn configuration file as explained here:
https://forums.openvpn.net/topic11342.htmlSo I've edited the ovpn file to add the following lines
and created a [c]pass.txt[/c] file with two lines containing the login and password. This works. -
Yeah, I expected you could. Good work...
-
-
Put this:
net.ipv6.conf.default.disable_ipv6=0at the end of this file and save it: /etc/sysctl.conf
and the openvpn where you have it.
-
Ok, so to summarize and set this thread to Resolved so that it might be of some use to other folks, here is the solution to get FrootVPN service to work on OMV with OpenVPN.
1) Follow steps 1 and 2 provided by FrootVPN here: https://www.frootvpn.com/guides/linuxdebian-19.html
2) cp /etc/openvpn/frootvpn.ovpn /etc/openvpn/frootvpn.conf This is required to start openvpn as a service.
3) Edit/etc/openvpn/frootvpn.conf and change auth-user-pass to auth-user-pass pass.txt.
4) Create /etc/openvpn/pass.txt as a two-line pass.txt file containing the login and password for the FrootVPN service.
5) Edit /etc/sysctl.conf and add the line net.ipv6.conf.default.disable_ipv6=0.
6) Edit /etc/sysctl.d/99-openmediavault.conf and set net.ipv6.conf.default.disable_ipv6=1 to 0.
7) Reboot and start OpenVPN as a service with /etc/init.d/openvpn startTo verify that the VPN is running, the tun0 interface should appear in the OMV WebUI with the new VPN WAN IP.
Thanks tekkb and subzero!
-
will this method connect to frootvpn automatically whenever the machine restarts?
-
I just tried this and everything works. the service starts automatically on reboot but it doesnt automatically login to frootvpn
In addition to changing auth-user-pass to auth-user-pass pass.txt in the .conf file, I also changed that line in the ovpn file and it seems to auto connect me when the machine starts up. I believe this it OK to do?
-
I just followed these steps and it is also working fine for me!
One question though. I want to tunnel JDownloader through the VPN adapter. Is it possible that the user jdownloader can only use tun0? And if tun0 doesn't exist, it just shouldn't connect at all.
Thanks!
-
You can bind a user to a specific adapter as far as I know...:
http://lmgtfy.com/?q=bind+user+to+specific+ethernet+adapter
Greetings
David
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!