Jump to content
TorGuard
  • 0
Torad

trouble with openvpn on raspberry pi

Rate this question

Question

Torad

I have tried following the guide below to  setup torguard with openvpn on my raspberrypi 3. However, when I go to test it my ip address remains unchanged. Also i do not have tun0 entry when i run ifconfig command. 

 

https://torguard.net/knowledgebase.php?action=displayarticle&id=174

 

Anyone know a solution to this? thanks

 

edit:

nevermind, figured out my problem

Share this post


Link to post
Share on other sites

Recommended Posts

  • 1
Honeybadger85

So this seems to have gotten me a bit further.
I had to add 'sudo' to the commands to get them working and had to modify step 5 a bit to add to the directory for copying files over, so what I ended up with was:

sudo rm -rf /etc/openvpn/*.ovpn
cd /etc/openvpn/
sudo wget https://torguard.net/downloads/OpenVPN-TCP-Linux.zip
sudo unzip OpenVPN-TCP-Linux.zip

sudo cp -a /etc/openvpn/OpenVPN-TCP/. /etc/openvpn/

sudo mv TorGuard.Canada.Toronto.ovpn TorGuard.Canada.Toronto.conf

 

I then got an error

[email protected]:/etc/openvpn $ sudo openvpn TorGuard.Canada.Toronto.conf
Options error: --up script fails with '/etc/openvpn/update-resolv-conf': Permission denied
Options error: Please correct this error.
Use --help for more information.

 

I opened the '/etc/openvpn/update-resolv-conf' file and it was empty. I'm not sure if there should be something in there.
I checked with 'nano user.txt' to make sure my user.txt file still had my login details and it still seems to be there. 

I still got the error, I then ran:

sudo sed -i '/auth-user-pass/cauth-user-pass user.txt' *.ovpn

To make sure it was associated with the ovpn files but still no luck. 

 

finally, just for s**ts and giggles I ran:

[email protected]:/etc/openvpn $ sudo openvpn TorGuard.conf
Options error: Unrecognized option or missing or extra parameter(s) in TorGuard.conf:16: block-outside-dns (2.4.0)
Use --help for more information.

...which gave me the same error from the post above. 

 

 

I'm really sorry for all the trouble this is causing :( 

Share this post


Link to post
Share on other sites
  • 0
Honeybadger85
 
 
 
On 5/7/2019 at 6:25 PM, Torad said:

nevermind, figured out my problem


I'm having the exact same issue, I feel I'm doing something wrong.

Any chance you could share your solution, please?

Share this post


Link to post
Share on other sites
  • 0
Support

Hello,

 

What issue are you facing?

Share this post


Link to post
Share on other sites
  • 0
Honeybadger85

Hi, 
Thank you for responding! 

I'm having the exact same issue as the poster above. 
I've installed Raspian and followed the instructions of this tutorial: https://torguard.net/knowledgebase.php?action=displayarticle&id=174

When I try to connect to the VPN, nothing happens, no confirmation from the terminal and ifconfig shows no record of tun0. 

I'm sure it's most likely something I haven't configured correctly. 

Side question: Are there any graphical interfaces like the TorGuard client that works on RaspberryPi? 

 

Share this post


Link to post
Share on other sites
  • 0
Support
8 hours ago, Honeybadger85 said:

Hi, 
Thank you for responding! 

I'm having the exact same issue as the poster above. 
I've installed Raspian and followed the instructions of this tutorial: https://torguard.net/knowledgebase.php?action=displayarticle&id=174

When I try to connect to the VPN, nothing happens, no confirmation from the terminal and ifconfig shows no record of tun0. 

I'm sure it's most likely something I haven't configured correctly. 

Side question: Are there any graphical interfaces like the TorGuard client that works on RaspberryPi? 

 

Hello,

The guide was updated, please retry it

Regards

Share this post


Link to post
Share on other sites
  • 0
Honeybadger85

Hi, 
I followed all the steps for the tutorial again.
Unfortunately, with the new instructions I simply get a "Command not found" error when running

sudo TorGuard.Canada.Toronto.conf


I don't see a *.conf file for any VPN configurations in /etc/openvpn/ just a generic TorGuard.conf file.

Share this post


Link to post
Share on other sites
  • 0
Support
1 hour ago, Honeybadger85 said:

Hi, 
I followed all the steps for the tutorial again.
Unfortunately, with the new instructions I simply get a "Command not found" error when running

sudo TorGuard.Canada.Toronto.conf


I don't see a *.conf file for any VPN configurations in /etc/openvpn/ just a generic TorGuard.conf file.

 

Apologies that should have been:

sudo openvpn TorGuard.Canada.Toronto.conf

 

I corrected that -  did you download and unzip the configs successfully? whats under /etc/openvpn

ls -la /etc/openvpn/

 

Share this post


Link to post
Share on other sites
  • 0
Honeybadger85

Thank you for updating! 

When I run: 

ls -la /etc/openvpn/

I get this result (attached screenshot) 

So I believe the configs downloaded and unzipped correctly. 


However, when I run: 
 

sudo openvpn TorGuard.Canada.Toronto.conf

or any other ovpn conf I get another error (attached screenshot) 

Share this post


Link to post
Share on other sites
  • 0
Support
31 minutes ago, Honeybadger85 said:

Thank you for updating! 

When I run: 

ls -la /etc/openvpn/

I get this result (attached screenshot) 

So I believe the configs downloaded and unzipped correctly. 


However, when I run: 
 

sudo openvpn TorGuard.Canada.Toronto.conf

or any other ovpn conf I get another error (attached screenshot) 

 

Sorry I'm not seeing any attachment, can you try to reattach those?

Share this post


Link to post
Share on other sites
  • 0
Honeybadger85

My apologies, the attachments didn't seem to work. 

1852247573_Screenshot2019-05-28at10_15.14copy.thumb.jpg.38d22d33235d68dfeb6d7f22f548f1c7.jpg1660134502_Screenshot2019-05-28at10_13_24.thumb.jpg.e898eaf75eacb7c3fdb0f8d3d1458a11.jpg

Share this post


Link to post
Share on other sites
  • 0
Support

Ok i see the problem - please do below:

1)

rm -rf /etc/openvpn/*.ovpn

2)

cd /etc/openvpn/

3)

wget https://torguard.net/downloads/OpenVPN-TCP-Linux.zip

4)

unzip OpenVPN-TCP-Linux.zip

5) 

cp -a /OpenVPN-TCP/. /etc/openvpn/

6)

mv TorGuard.Canada.Toronto.ovpn TorGuard.Canada.Toronto.conf

7)

sudo openvpn TorGuard.Canada.Toronto.conf

 

Share this post


Link to post
Share on other sites
  • 0
Support

Hello,

It looks like your still using the older configs, i would clear our the whole /etc/openvpn/ directory and redownload the new configs, set permission on the  update-resolv-conf to 777 and retest

 

Regards

Share this post


Link to post
Share on other sites
  • 0
HanSolo
On 5/28/2019 at 1:45 PM, Support said:

Hello,

It looks like your still using the older configs, i would clear our the whole /etc/openvpn/ directory and redownload the new configs, set permission on the  update-resolv-conf to 777 and retest

 

Regards

 

I'm having the exact same problem; tried all the same steps and nothing.   I'm using a fresh install of Raspbian "2019-04-08-Raspbian-stretch-lite", following the tutorial exactly, and having all of the same problems.

I note that the tutorial has been updated from a few weeks ago (from the original UDP version to the first TCP download to the new TCP-Linux version).  Is it possible this tutorial is incomplete and is still being corrected and updated?

 

Share this post


Link to post
Share on other sites
  • 0
mysteryburrito

.

Share this post


Link to post
Share on other sites
  • 0
mysteryburrito
On 5/28/2019 at 10:45 AM, Support said:

Hello,

It looks like your still using the older configs, i would clear our the whole /etc/openvpn/ directory and redownload the new configs, set permission on the  update-resolv-conf to 777 and retest

 

Regards

 

Hello,

Can you explain in details what commands I would need to run in order to do this?  I'm experiencing the same issues as HoneyBadger85.

Thanks.

Share this post


Link to post
Share on other sites
  • 0
Honeybadger85
1 hour ago, mysteryburrito said:

 

Hello,

Can you explain in details what commands I would need to run in order to do this?  I'm experiencing the same issues as HoneyBadger85.

Thanks.

 

 

For me, I used this: 
 

cd /etc/openvpn
sudo chmod 777 update-resolv_conf

 

Share this post


Link to post
Share on other sites
  • 0
Support
10 hours ago, HanSolo said:

 

I'm having the exact same problem; tried all the same steps and nothing.   I'm using a fresh install of Raspbian "2019-04-08-Raspbian-stretch-lite", following the tutorial exactly, and having all of the same problems.

I note that the tutorial has been updated from a few weeks ago (from the original UDP version to the first TCP download to the new TCP-Linux version).  Is it possible this tutorial is incomplete and is still being corrected and updated?

 

 

Can you post the output of the command:

ls -la /etc/openvpn/

What error messages did you recieve if any?

1 hour ago, mysteryburrito said:

 

Hello,

Can you explain in details what commands I would need to run in order to do this?  I'm experiencing the same issues as HoneyBadger85.

Thanks.

 

which commands are you having trouble with?

Share this post


Link to post
Share on other sites
  • 0
Honeybadger85

I'm also still having issues with the connection. 
I've cleared everything out, reinstalled openvpn. 

I get as far as 

sudo openvpn TorGuard.Canada.Toronto.conf

and I get this error

Options error: In [CMD-LINE]:1: Error opening configuration file: TorGuard.Canada.Toronto.conf
Use --help for more information.


I'm feeling quite defeated. I thought this was going to be a fairly straight forward setup. 

 

Share this post


Link to post
Share on other sites
  • 0
Support

Ok, please post the out of the below command:

 

ls -la /etc/openvpn/

 

Share this post


Link to post
Share on other sites
  • 0
Honeybadger85

I get this: 

[email protected]:~ $ ls -la /etc/openvpn/
total 464
drwxr-xr-x   5 root root   4096 May 28 22:55 .
drwxr-xr-x 118 root root   4096 May 28 22:50 ..
-rw-r--r--   1 root root   2875 May 27 00:56 ca.crt
drwxr-xr-x   2 root root   4096 Oct 14  2018 client
drwxr-xr-x   2 root root   4096 May 27 00:59 OpenVPN-TCP
-rw-r--r--   1 root root 180829 May 27 01:59 OpenVPN-TCP-Linux.zip
drwxr-xr-x   2 root root   4096 Oct 14  2018 server
-rw-r--r--   1 root root   3984 May 28 22:52 TorGuard.Australia.Melbourne.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.Australia.Sydney.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Austria.ovpn
-rw-r--r--   1 root root   4025 May 28 22:52 TorGuard.Belarus.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.Belgium.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Brazil.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Bulgaria.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Canada.Toronto.conf
-rw-r--r--   1 root root   4038 May 28 22:52 TorGuard.Canada.Vancouver.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Chile.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Costa Rica.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Cyprus.ovpn
-rw-r--r--   1 root root   4032 May 28 22:52 TorGuard.Czech.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Denmark.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.Egypt.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Finland.ovpn
-rw-r--r--   1 root root   4026 May 28 22:52 TorGuard.France.ovpn
-rw-r--r--   1 root root   4026 May 28 22:52 TorGuard.Germany.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Greece.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Hong.Kong.1.ovpn
-rw-r--r--   1 root root   4030 May 28 22:52 TorGuard.Hong.Kong.2.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Hungary.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Iceland.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.India.Bangalore.ovpn
-rw-r--r--   1 root root   4032 May 28 22:52 TorGuard.India.Chennai.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Ireland.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Israel.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Italy.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Japan.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Latvia.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Luxembourg.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Malaysia.ovpn
-rw-r--r--   1 root root   4026 May 28 22:52 TorGuard.Mexico.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Moldova.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Netherlands.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.New.Zealand.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Norway.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Poland.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.Portugal.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.Romania.ovpn
-rw-r--r--   1 root root   4030 May 28 22:52 TorGuard.Singapore.1.ovpn
-rw-r--r--   1 root root   4035 May 28 22:52 TorGuard.Singapore.2.ovpn
-rw-r--r--   1 root root   4026 May 28 22:52 TorGuard.Slovakia.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.South.Africa.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.South.Korea.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Spain.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Sweden.ovpn
-rw-r--r--   1 root root   4031 May 28 22:52 TorGuard.Switzerland.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Taiwan.ovpn
-rw-r--r--   1 root root   4030 May 28 22:52 TorGuard.Thailand.ovpn
-rw-r--r--   1 root root   4026 May 28 22:52 TorGuard.Tunisia.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Turkey.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.UK.London.ovpn
-rw-r--r--   1 root root   4037 May 28 22:52 TorGuard.USA-ATLANTA.ovpn
-rw-r--r--   1 root root   4042 May 28 22:52 TorGuard.USA-CHICAGO.ovpn
-rw-r--r--   1 root root   4039 May 28 22:52 TorGuard.USA-DALLAS.ovpn
-rw-r--r--   1 root root   4037 May 28 22:52 TorGuard.USA-LAS-VEGAS.ovpn
-rw-r--r--   1 root root   4036 May 28 22:52 TorGuard.USA-LOS.ANGELES.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.USA-MIAMI.ovpn
-rw-r--r--   1 root root   4037 May 28 22:52 TorGuard.USA-NEW-JERSEY.ovpn
-rw-r--r--   1 root root   4036 May 28 22:52 TorGuard.USA-NEW-YORK.ovpn
-rw-r--r--   1 root root   4038 May 28 22:52 TorGuard.USA-SAN-FRANCISCO.ovpn
-rw-r--r--   1 root root   4037 May 28 22:52 TorGuard.USA-SEATTLE.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Vietnam.ovpn
-rwxrwxrwx   1 root root      0 May 27 00:56 update-resolv-conf
-rw-------   1 root root     38 May 28 22:53 user.txt

 

Share this post


Link to post
Share on other sites
  • 0
Support
15 minutes ago, Honeybadger85 said:

I get this: 

[email protected]:~ $ ls -la /etc/openvpn/
total 464
drwxr-xr-x   5 root root   4096 May 28 22:55 .
drwxr-xr-x 118 root root   4096 May 28 22:50 ..
-rw-r--r--   1 root root   2875 May 27 00:56 ca.crt
drwxr-xr-x   2 root root   4096 Oct 14  2018 client
drwxr-xr-x   2 root root   4096 May 27 00:59 OpenVPN-TCP
-rw-r--r--   1 root root 180829 May 27 01:59 OpenVPN-TCP-Linux.zip
drwxr-xr-x   2 root root   4096 Oct 14  2018 server
-rw-r--r--   1 root root   3984 May 28 22:52 TorGuard.Australia.Melbourne.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.Australia.Sydney.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Austria.ovpn
-rw-r--r--   1 root root   4025 May 28 22:52 TorGuard.Belarus.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.Belgium.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Brazil.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Bulgaria.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Canada.Toronto.conf
-rw-r--r--   1 root root   4038 May 28 22:52 TorGuard.Canada.Vancouver.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Chile.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Costa Rica.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Cyprus.ovpn
-rw-r--r--   1 root root   4032 May 28 22:52 TorGuard.Czech.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Denmark.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.Egypt.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Finland.ovpn
-rw-r--r--   1 root root   4026 May 28 22:52 TorGuard.France.ovpn
-rw-r--r--   1 root root   4026 May 28 22:52 TorGuard.Germany.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Greece.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Hong.Kong.1.ovpn
-rw-r--r--   1 root root   4030 May 28 22:52 TorGuard.Hong.Kong.2.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Hungary.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Iceland.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.India.Bangalore.ovpn
-rw-r--r--   1 root root   4032 May 28 22:52 TorGuard.India.Chennai.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Ireland.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Israel.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Italy.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Japan.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Latvia.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Luxembourg.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Malaysia.ovpn
-rw-r--r--   1 root root   4026 May 28 22:52 TorGuard.Mexico.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Moldova.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Netherlands.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.New.Zealand.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Norway.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Poland.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.Portugal.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.Romania.ovpn
-rw-r--r--   1 root root   4030 May 28 22:52 TorGuard.Singapore.1.ovpn
-rw-r--r--   1 root root   4035 May 28 22:52 TorGuard.Singapore.2.ovpn
-rw-r--r--   1 root root   4026 May 28 22:52 TorGuard.Slovakia.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.South.Africa.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.South.Korea.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Spain.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Sweden.ovpn
-rw-r--r--   1 root root   4031 May 28 22:52 TorGuard.Switzerland.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.Taiwan.ovpn
-rw-r--r--   1 root root   4030 May 28 22:52 TorGuard.Thailand.ovpn
-rw-r--r--   1 root root   4026 May 28 22:52 TorGuard.Tunisia.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Turkey.ovpn
-rw-r--r--   1 root root   4028 May 28 22:52 TorGuard.UK.London.ovpn
-rw-r--r--   1 root root   4037 May 28 22:52 TorGuard.USA-ATLANTA.ovpn
-rw-r--r--   1 root root   4042 May 28 22:52 TorGuard.USA-CHICAGO.ovpn
-rw-r--r--   1 root root   4039 May 28 22:52 TorGuard.USA-DALLAS.ovpn
-rw-r--r--   1 root root   4037 May 28 22:52 TorGuard.USA-LAS-VEGAS.ovpn
-rw-r--r--   1 root root   4036 May 28 22:52 TorGuard.USA-LOS.ANGELES.ovpn
-rw-r--r--   1 root root   4027 May 28 22:52 TorGuard.USA-MIAMI.ovpn
-rw-r--r--   1 root root   4037 May 28 22:52 TorGuard.USA-NEW-JERSEY.ovpn
-rw-r--r--   1 root root   4036 May 28 22:52 TorGuard.USA-NEW-YORK.ovpn
-rw-r--r--   1 root root   4038 May 28 22:52 TorGuard.USA-SAN-FRANCISCO.ovpn
-rw-r--r--   1 root root   4037 May 28 22:52 TorGuard.USA-SEATTLE.ovpn
-rw-r--r--   1 root root   4029 May 28 22:52 TorGuard.Vietnam.ovpn
-rwxrwxrwx   1 root root      0 May 27 00:56 update-resolv-conf
-rw-------   1 root root     38 May 28 22:53 user.txt

 

 

Ok, add the following to the Toronto config retry run the TorGuard.Canada.Toronto.conf config and then check the log here, post the output, please

log-append /var/log/openvpn.log

 

Share this post


Link to post
Share on other sites
  • 0
mysteryburrito
On 6/1/2019 at 2:29 AM, Honeybadger85 said:

 

 

For me, I used this: 
 

cd /etc/openvpn
sudo chmod 777 update-resolv_conf

 

 

@Honeybadger85 awesome thanks so much for this! I just needed to change the underscore to a hypen in "update-resolv-conf" and was able to run the command.

Share this post


Link to post
Share on other sites
  • 0
mysteryburrito
On 5/28/2019 at 10:45 AM, Support said:

Hello,

It looks like your still using the older configs, i would clear our the whole /etc/openvpn/ directory and redownload the new configs, set permission on the  update-resolv-conf to 777 and retest

 

Regards

I've done this and when I run the sudo openvpn TorGuard.Canada.Toronto.conf command, I now get this error:

Sun Jun  2 16:54:21 2019 WARNING: Failed running command (--up/--down): could not execute external program
Sun Jun  2 16:54:21 2019 Exiting due to fatal error

Any ideas?

Share this post


Link to post
Share on other sites
  • 0
Support
8 hours ago, mysteryburrito said:

I've done this and when I run the sudo openvpn TorGuard.Canada.Toronto.conf command, I now get this error:

Sun Jun  2 16:54:21 2019 WARNING: Failed running command (--up/--down): could not execute external program
Sun Jun  2 16:54:21 2019 Exiting due to fatal error

Any ideas?

 

Please provide the contents of your config:

sudo cat  TorGuard.Canada.Toronto.conf

 

Share this post


Link to post
Share on other sites
  • 0
BinaryBlizzard

I just wanted to add to this because there were a few steps that were out of sync and manual auth required after updating all the OpenVPN files.

@Honeybadger85's suggestion was necessary for my setup as well as @mysteryburrito's correction (no underscores, only hyphens).

# remove all previous config
sudo rm -rf /etc/openvpn/*.ovpn

# download and unzip files to openvpn folder
cd /etc/openvpn/
sudo wget https://torguard.net/downloads/OpenVPN-TCP-Linux.zip
sudo unzip OpenVPN-TCP-Linux.zip
sudo cp -a ./OpenVPN-TCP/. /etc/openvpn/

# change permissions for openvpn script
sudo chmod 777 update-resolv-conf

# add torguard vpn username/password to existing user.txt file
sudo nano ./user.txt # add vpn connection username first line, password second line

# add auth-user-pass command to all *.ovpn files
echo 'auth-user-pass user.txt' | sudo tee -a $(ls -1 *.ovpn)

# kill any openvpn process and restart with random config
sudo killall -9 openvpn && cd /etc/openvpn && sudo openvpn --daemon --cd /etc/openvpn --config `ls -1 *.ovpn | sort -R | head -1`

# check your ip and crack open a beer
curl http://checkip.dyndns.org

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...

×
×
  • Create New...