openVPN with my h2s issue

You can try installing the tun package via putty:

cd /sbin

modprobe tun

Have you considered flashing wooshbuild 7. It supports ipvanish and everything is installed you just enter your username and password
 
Hi, here is what I have done to get OpenVPN working on my ZGemma H2S box.

Make sure you have a working active IPVanish VPN account (easily tested by using your computer) and the latest Wooshbuild image

If feeds are down message appears you need to re-install OpenVpn through terminal/telnet session by typing the following command (without the quotes)
"opkg install openvpn"
reboot box and then do the below:-

Only Two files required from the IPVanish download section (xxxx://xxx.ipvanish.com/software/configs/) and one password file needs to be created, so in total THREE files should be in the OpenVPN folder

1) Create a folder on your computer called "OpenVPN" and save the below files in there.
2) download the crt file "ca.ipvanish.com.crt" and a suitable working ovpn file "ipvanish-xx-xxxxx-xxx-xxx.ovpn"
3) rename the "ipvanish-xx-xxxxx-xxx-xxx.ovpn" to "client.conf" (without quotes).
4) Edit the conf file in notepad to include the login.txt file entry where "name auth-user-pass login.txt". Make sure you save with extension .conf
5) create a txt file with notepad to include your logon information as seen and entered below
"enter you username for IPVanish here only"
"enter your password for IPVanish here only"
(only username and password without quotes and on separate lines)
Save file as .txt
6) copy the Entire saved folder "OpenVPN (without quotes) with the three files only to your ZGemma box into the root/etc folder
7) Try connecting through zgemma

Thats all I did and worked a treat, hope this helps

Credit and shoutout to makido who help me out with a very simple PIA guide but very simliar to IPVanish guide listed here:-
http://www.techkings.org/threads/vpn-on-solo-4k-now-working.119219/
 
Ok latest update to the vpn saga

I removed the open vpn service and attempted to reinstall via putty.

opkg install openvpn

Received the following message,

FreeViewHD login: root
root@FreeViewHD:~# opkg install openvpn
Installing kernel-module-tun (4.10.6) on root.
Downloading http://feeds2.mynonpublic.com/6.0/h3/h3/kernel-module-tun_4.10.6-r0.8_h3.ipk.
Installing openvpn (2.4.3) on root.
Downloading http://feeds2.mynonpublic.com/6.0/h3/mips32el/openvpn_2.4.3-r0.1_mips32el.ipk.
Removing any system startup links for openvpn ...
Configuring kernel-module-tun.
Configuring openvpn.
Adding system startup for /etc/init.d/openvpn.
Starting openvpn: Client.
depmod: WARNING: could not open /lib/modules/4.0.1/modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules/4.0.1/modules.builtin: No such file or directory
modprobe: FATAL: Module tun not found in directory /lib/modules/4.0.1
root@FreeViewHD:~#

The problem seemed to relate to the tun module missing so attempted the following,

cd /sbin

modprobe tun

got the message below,

FreeViewHD login: root
Last login: Thu Jan 4 22:07:10 GMT 2018 on pts/1
root@FreeViewHD:~# cd /sbin
root@FreeViewHD:/sbin# modprobe tun
modprobe: FATAL: Module tun not found in directory /lib/modules/4.0.1

Think it might be time to try wooshbuild 7.0. Can anyone point me in the direction of where I can get this as well as a guide on how to flash the box?
 
Thanks for the link to WooshBuild. Forgive my ignorance but I have never flashed my box before. Is it possible to do this by FTP using FileZilla or do I need to do it with a USB stick?
Next silly question is how do I go about backing up my current setup in case I need to go back to it?
Last silly question, the guide in the link spoke a lot about sat feeds but I assume WooshBuild also works well with IPTV?
 
##### OpenVPN Zgemma H2S Wooshbuild V5 #####

Install OpenVPN
Menu>Setup >System>Network>OpenVPN <Install>

If you get the message like I did "sorry feeds are down for maintenance. please try again later"
Dont waste your time retrying.

Telnet on to your box (plenty of guides in here)
Login and run the command: opkg install openvpn

PIA / OpenVPN files and Configuration
Download: https://www.privateinternetaccess.com/openvpn/openvpn.zip

Extract and Save as Openvpn Config
Take a copy of the country you want to pop out of ie. <county>.conf
Open/Edit the copied file in Notepad++

tls-client
remote-cert-tls server
auth-user-pass <<-- edit this line only
comp-lzo

to read:
auth-user-pass pass.txt <<-- 1 space after pass

Save as ... Client.conf

Create a new .txt file called pass.txt with ONLY your VPN credentials on 2 lines (no additional spaces)

Username
Password

Create a folder on your desktop called openvpn
Within the folder you will need 4 files:
Client.conf
pass.txt
ca.rsa.2048.crt <-- your providers certs from the Openvpn Config
crl.rsa.2048.pem <---your providers certs from the Openvpn Config

FTP the files via your FTP Client ie Filezilla to etc/openvpn

Start OpenVPN
Menu>Setup >System>Network>OpenVPN>Start (or Auto Start)

To confirm success
Telnet or ssh on to your zgemma box and run: curl http://checkip.dyndns.com/
The result should be the IP of your selected VPN and not your routers external IP

Hope this help a few users in the near future.

This might be a stupid question but where do I get these from??

ca.rsa.2048.crt <-- your providers certs from the Openvpn Config
crl.rsa.2048.pem <---your providers certs from the Openvpn Config

Are they unique to me or do I use the ones from the zip in instructions?
 
This might be a stupid question but where do I get these from??

ca.rsa.2048.crt <-- your providers certs from the Openvpn Config
crl.rsa.2048.pem <---your providers certs from the Openvpn Config

Are they unique to me or do I use the ones from the zip in instructions?

So I answered my own stupid question.. I have downloaded the .opvn file they provide...

Next stupid.... what do I use to open it to get the certs mentioned out of it??
 
I've added Xpress VPN.

You just need the openvpn config files for Linux. their live chat will be able to link you to this

Choose the server you want the config for

Download the file and open it in notepad+

There is a line that says :

auth-user-pass

Add to that "password.txt" so:

auth-user-pass password.txt

save the file as client.conf

----------

Now you need your username and password [not the one you used to sign up, these are a random string of letters and numbers], you will see them on the page you downloaded your config files from. It allows you to copy them into the clipboard.

Open a notepad file paste your username above your password, so two lines:

Username
Password

Save this as password.txt
----------

Now FTP to your box and look in /etc

if there is no foder titled openvpn right click and create a folder with that name

then transfer your two files to that folder.

so in /etc/openvpn

you have

client.conf
password.txt

-----------

your vpn should now work.

i'm AFK for two days so cant be more thorough, but if you need any extra help i am more than happy to do so when i'm free. feel free to pm or post here
 
I've added Xpress VPN.

You just need the openvpn config files for Linux. their live chat will be able to link you to this

Choose the server you want the config for

Download the file and open it in notepad+

There is a line that says :

auth-user-pass

Add to that "password.txt" so:

auth-user-pass password.txt

save the file as client.conf

----------

Now you need your username and password [not the one you used to sign up, these are a random string of letters and numbers], you will see them on the page you downloaded your config files from. It allows you to copy them into the clipboard.

Open a notepad file paste your username above your password, so two lines:

Username
Password

Save this as password.txt
----------

Now FTP to your box and look in /etc

if there is no foder titled openvpn right click and create a folder with that name

then transfer your two files to that folder.

so in /etc/openvpn

you have

client.conf
password.txt

-----------

your vpn should now work.

i'm AFK for two days so cant be more thorough, but if you need any extra help i am more than happy to do so when i'm free. feel free to pm or post here
Thanks that worked brilliantly I don’t suppose there’s a way to save more than 1 server location that you know off?
 
No, you can prepare other configs and FTP them over swapping them out as you need, the password.txt file should work for all severs.

Would be nice if someone could script a plugin to handle these things though, in it.

Glad it worked for you mate
 
No, you can prepare other configs and FTP them over swapping them out as you need, the password.txt file should work for all severs.

Would be nice if someone could script a plugin to handle these things though, in it.

Glad it worked for you mate
This is what I did for digibit

So I have been playing with this today and have it half working. I downloaded the configs Digibit gave me, then unzip,t it.

On box I created a folder called digibit and dragged all the configs to that folder.

Now I used putty in typed
Code:
cd /digibit
this will put putty in the digibit folder

Now I used a simple command to rename all the .ovpn files to .conf
Code:
for x in *.ovpn; do mv "$x" "${x%.ovpn}.conf"; done

Now to add password.txt to each conf file with one command I used
Code:
sed -i -e "s/auth-user-pass/auth-user-pass password.txt/g" /digibit    /*.conf

Then created a password.txt in etc/openvpn and added my username and password

So now I have all the configs in /digibit I can just drag the server I want to etc/openvpn and start openvpn.

Unfortunately I,m not sure how to get the script to move one selected conf to etc/openvpn with using country at the top, but this works quite well.

On a side note I have seen a plugin that should allow you to switch configs that are on hdd/vpn but I haven't had chance to test it yet

You only need to renname the server location extension to .conf no need to rename to client. And do it with one command then add password.txt line with one command.

Then just ftp a new conf file whenever you want to change servers.

Also Google vpn changer it's a bit of a faff to set up but you have each server folder in hdd/vpn

Example hdd/vpn/Barcelona within the Barcelona folder you would have Barcelona.conf and password.txt
 
@dsayers2014 Ive been playing around with vpn config changer, made around 30 locations each with its un&pw text doc, a huge faff but it worked as it should making switching vpn locations easy. I had it working with both digitbit & with Nord, it was tedious creating+editing each location folder & dropping in un&pw doc but once done vpnconfigchanger plugin works a treat.
 
Last edited:
@dsayers2014 Ive been playing around with vpn config changer, made around 30 locations each with its un&pw text doc, a huge faff but it worked as it should making switching vpn locations easy. I had it working with both digitbit & with Nord, it was tedious creating+editing each location folder & dropping in un&pw doc but once done vpnconfigchanger plugin works a treat.

Just been playing with Nord and VPN adder today and made this even easier and it should work with most VPN,s

On the box I created a folder called vpn and draged all the configs to that folder

Now I used putty in typed

Code:
cd /vpn

This should put talnet in vpn folder

Now I sued one command to rename all .ovpn files to .conf

Code:
# Edit all conf files to have auth-user-pass/auth-user-pass password.conf
find . -name "*.conf" -exec sed -i "s/auth-user-pass/auth-user-pass password.conf/g" '{}' \;

Now I created password.conf with username and password and placed it in etc/openvpn and can drag any conf file to etc/openvpn.

For the VPN Changer I have also found a command to copy all conf files to same name folder

Make sure putty is still in vpn before running this command
Code:
# Move all files into sub folders
for file in *; do
  if [[ -f "$file" ]]; then
    mkdir "${file%.*}"
    mv "$file" "${file%.*}"
  fi
done

Then dragged the VPN folder to hdd.

You just need to add password.conf file to each folder then you can change country within VPN Changer. I wish I cold find a simple command to copy one file to multiple directories within a folder but I cant seem to find a such command.
 
Back
Top