Jump to content
TorGuard
  • 0
186542_1511348159

DD-WRT OpenVPN client setup with Dedicated IP

Rate this question

Question

Hi all,

I could really use your assistance and input with the setup of my DD-WRT router with a Dedicated IP. I have been struggling with this for a while now and about to throw in the towel.
Please forgive my newby-ness... my tech skills from bygone days of app development are quite rusty :) 

I'm running an older Netgear with DD-WRT v24-sp2 (03/25/13) as a gateway. I have another router without VPN.

I flashed the router myself and, with much assistance from TorGuard Support (you guys are awesome), I finally got the darned thing running a VPN. The only problem is that it was not using my Dedicated IP.

After much "internet education", I managed to work through some of the configuration. I now have internet access through it... BUT I have 3 persistent problems:

  1. it takes ages for the VPN to get established when the router reboots
  2. my real location and IP are visible... not the IP and location of the VPN
  3. connection keeps dropping and re-initiating (see log below)


I'm likely doing something very wrong, but for the life of me I can't figure out what it is.

Below are the screenshot of my OpenVPN Client setup, as well as an extract of my last log (I replaced my dedicated IP with [X.X.X.X].

If anyone could provide me some direction or feedback, I would be really be grateful!

State

Server: : Local Address: Remote Address: Client: RECONNECTING: connection-reset Local Address: Remote Address:

Log

20180602 11:20:21 Socket Buffers: R=[87380->131072] S=[16384->131072] 
20180602 11:20:21 I Attempting to establish TCP connection with [AF_INET]67.158.54.48:443 [nonblock] 
20180602 11:20:22 I TCP connection established with [AF_INET]67.158.54.48:443 
20180602 11:20:22 I TCPv4_CLIENT link local: [undef] 
20180602 11:20:22 I TCPv4_CLIENT link remote: [AF_INET]67.158.54.48:443 
20180602 11:20:22 TLS: Initial packet from [AF_INET]67.158.54.48:443 sid=78501a3c b15bd1dc 
20180602 11:20:23 N Connection reset restarting [0] 
20180602 11:20:23 I SIGUSR1[soft connection-reset] received process restarting 
20180602 11:20:23 Restart pause 5 second(s) 
20180602 11:20:28 W NOTE: the current --script-security setting may allow this configuration to call user-defined scripts 

dd-wrt_openvpn_config.png

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0
7 hours ago, 186542_1511348159 said:

Hi all,

I could really use your assistance and input with the setup of my DD-WRT router with a Dedicated IP. I have been struggling with this for a while now and about to throw in the towel.
Please forgive my newby-ness... my tech skills from bygone days of app development are quite rusty :) 

I'm running an older Netgear with DD-WRT v24-sp2 (03/25/13) as a gateway. I have another router without VPN.

I flashed the router myself and, with much assistance from TorGuard Support (you guys are awesome), I finally got the darned thing running a VPN. The only problem is that it was not using my Dedicated IP.

After much "internet education", I managed to work through some of the configuration. I now have internet access through it... BUT I have 3 persistent problems:

  1. it takes ages for the VPN to get established when the router reboots
  2. my real location and IP are visible... not the IP and location of the VPN
  3. connection keeps dropping and re-initiating (see log below)


I'm likely doing something very wrong, but for the life of me I can't figure out what it is.

Below are the screenshot of my OpenVPN Client setup, as well as an extract of my last log (I replaced my dedicated IP with [X.X.X.X].

If anyone could provide me some direction or feedback, I would be really be grateful!

State

Server: : Local Address: Remote Address: Client: RECONNECTING: connection-reset Local Address: Remote Address:

Log

20180602 11:20:21 Socket Buffers: R=[87380->131072] S=[16384->131072] 
20180602 11:20:21 I Attempting to establish TCP connection with [AF_INET]67.158.54.48:443 [nonblock] 
20180602 11:20:22 I TCP connection established with [AF_INET]67.158.54.48:443 
20180602 11:20:22 I TCPv4_CLIENT link local: [undef] 
20180602 11:20:22 I TCPv4_CLIENT link remote: [AF_INET]67.158.54.48:443 
20180602 11:20:22 TLS: Initial packet from [AF_INET]67.158.54.48:443 sid=78501a3c b15bd1dc 
20180602 11:20:23 N Connection reset restarting [0] 
20180602 11:20:23 I SIGUSR1[soft connection-reset] received process restarting 
20180602 11:20:23 Restart pause 5 second(s) 
20180602 11:20:28 W NOTE: the current --script-security setting may allow this configuration to call user-defined scripts 

dd-wrt_openvpn_config.png

 

Hello,

I see in the log you have port 443 set to connect with but in the client, it is 1194, are these settings all exactly what you are using?

Can you paste all you have under the additional config field as well please?

Thanks

Share this post


Link to post
Share on other sites
  • 0

I'm set up the same as you except:

Port is set for 443

Tunnel Protocol  is set for UDP (faster speed)

 

Additional Config :

persist-key
persist-tun
tls-client
remote-cert-tls server

sndbuf 524288
rcvbuf 524288
nice -20
auth-nocache
fast-io

It looks like you will also need  " auth-user-pass /tmp/password.txt "  for your older build.

Share this post


Link to post
Share on other sites
  • 0

Hi everyone,

Thanks for your replies :)

 

I am using port 443 (the screenshot grabbed just before I changed the value).
I also switched off the NAT and Firewall, as I had read that this could impact things... no improvement.

 

Additional Config
auth-user-pass /tmp/password.txt
persist-key
persist-tun
tls-client
remote-cert-tls server

 

I just now added the values john1 posted... result is no connection whatsoever to VPN :(
Switching to UDP also didn't work.

Share this post


Link to post
Share on other sites
  • 0

I don't what happened to the support staff on here. Maybe it would be better to open a ticket.

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, 186542_1511348159 said:

I was waiting around for an answer for a while... got busy and fed up...

I guess you're right... will have to open a ticket.

It's really a shame that this process is not more straightforward.

 

Hello,

Did you manage to open a ticket? setting up VPN's can be straightforward on routers but there are so many things that can go wrong - if you have a ticket let us know, providing some logs would be extremely helpful.

Regards

Share this post


Link to post
Share on other sites
  • 0

Opened a ticket and, as per your instructions, used the configuration setup here:

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

Thanks for responding so quickly.

The script worked great... the only glitch was that after saving the script I had to reboot the router several times and wait a long, long time until the router finally connected to VPN (almost 10 minutes).

Share this post


Link to post
Share on other sites
  • 0
On 04/08/2018 at 8:59 PM, 186542_1511348159 said:

Opened a ticket and, as per your instructions, used the configuration setup here:

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

Thanks for responding so quickly.

The script worked great... the only glitch was that after saving the script I had to reboot the router several times and wait a long, long time until the router finally connected to VPN (almost 10 minutes).

 

Did someone manage to get you sorted? do you have a ticket number?

Regards

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×