[SOLVED] Can't reach my home network public IP using OpenVPN

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
ig007
DD-WRT Novice


Joined: 28 Jul 2021
Posts: 16

PostPosted: Wed Jul 28, 2021 20:05    Post subject: [SOLVED] Can't reach my home network public IP using OpenVPN Reply with quote
Hi guys! I am new here and to DD WRT in general, so would appreciate your help and patience.

I have R6700v3 flashed to DD WRT latest build 47090. I enabled and set up OpenVPN client to connect to Surfshark VPN service. I also enabled and setup OpenVPN server on DD WRT so that I could connect to network remotely.
Here is the problem: when I try connect from outside to my network public IP I get server timeout message and it won't connect and my public IP won't respond to ping. My DD WRT is plugged into ISP router and that one has correct 1194 UDP port open for forwarding. I am able to connect to OpenVPN server when I am on my another non DD WRT/non VPN router, which is also connected to ISP router. I also discovered, whenever I disable Open VPN client on DD WRT, boom, I am able to connect to my network via OpenVPN from outside. It seems that either it is a conflict between server and client on DD WRT or something else. Please help to solve this puzzle!


Last edited by ig007 on Thu Jul 29, 2021 11:35; edited 2 times in total
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Wed Jul 28, 2021 20:28    Post subject: Reply with quote
Latest build can mean a lot so please be more specific.

The answers to all your questions are in the manuals Smile

Those are stickies in this forum and links also in my signature at the bottom.

Spoiler alert: use PBR

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087


Last edited by egc on Thu Jul 29, 2021 6:52; edited 1 time in total
ig007
DD-WRT Novice


Joined: 28 Jul 2021
Posts: 16

PostPosted: Wed Jul 28, 2021 20:29    Post subject: Reply with quote
egc wrote:
Latest build can meaning a lot so please be more specific.

The answers to all your questions are in the manuals Smile

Those are stickies in this forum and links also in my signature at the bottom.

Spoiler alert: use PBR


build version is 47090. Updated in original message too.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Wed Jul 28, 2021 20:33    Post subject: Reply with quote
Excellent, now head over to the server setup guide.
Your setting are not optimal especially the data ciphers but for you the answer to your question is in the paragraph about running a client and server on the same router Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
ig007
DD-WRT Novice


Joined: 28 Jul 2021
Posts: 16

PostPosted: Wed Jul 28, 2021 20:37    Post subject: Reply with quote
egc wrote:
Excellent, now head over to the server setup guide.
Your setting are not optimal especially the data ciphers but for you the answer to your question is in the paragraph about running a client and server on the same router Smile


Thank you! I just opened those pages and there is a lot to digest. Will manage that later today.

Any suggestions for optimal settings are welcome Smile
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Wed Jul 28, 2021 21:07    Post subject: Reply with quote
All in the guide but yes it is a lot Smile
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
ig007
DD-WRT Novice


Joined: 28 Jul 2021
Posts: 16

PostPosted: Wed Jul 28, 2021 21:39    Post subject: Reply with quote
egc wrote:
All in the guide but yes it is a lot Smile


Found what I can optimize for server config and did apply PBR related settings as in guide. Worked like a charm! Thank you!!! Smile

The only thing I am not happy about is the speed of connection. I am getting like ~300kb/s when copying file from server to my phone over 5G. I am getting ~35MBs D/U speed when connecting to outside via that DD WRT router with VPN client enabled. Seems like not a match. Is there a way to improve that?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Thu Jul 29, 2021 7:03    Post subject: Reply with quote
Speed problems are always difficult.

When connecting with your phone to the VPN server and you are downloading to your phone we are talking about the basic upload speed of your internet connection so first of all what is the internet speed you have?
Of course the phone itself has to be able to have a decent download speed when on LTE so you have to check that too.

The router itself can do about 40 Mb/s running VPN of course if wifi is active and your VPN client on the router it will be a lot less but still better than what you see now (provided you have a decent upload connection)

Optimal settings are ChachaPoly for first data cipher but that will not make a huge difference.

Things to try when using UDP (which can be the fastests) make sure MTU setting on both side are 1400 (I saw you used 1500) see the MTU section in the troubleshooting guide.

If that does not help you can try TCP

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
ig007
DD-WRT Novice


Joined: 28 Jul 2021
Posts: 16

PostPosted: Thu Jul 29, 2021 11:35    Post subject: Reply with quote
egc wrote:
Speed problems are always difficult.

When connecting with your phone to the VPN server and you are downloading to your phone we are talking about the basic upload speed of your internet connection so first of all what is the internet speed you have?
Of course the phone itself has to be able to have a decent download speed when on LTE so you have to check that too.

The router itself can do about 40 Mb/s running VPN of course if wifi is active and your VPN client on the router it will be a lot less but still better than what you see now (provided you have a decent upload connection)

Optimal settings are ChachaPoly for first data cipher but that will not make a huge difference.

Things to try when using UDP (which can be the fastests) make sure MTU setting on both side are 1400 (I saw you used 1500) see the MTU section in the troubleshooting guide.

If that does not help you can try TCP


On 5Ge network without VPN app I am getting 217Mb/s download and 20Mb/s upload. Naked internet speed on my home network without VPN client or server is D:300 U:340Mb/s. Then with VPN client enabled I get internet D:35 U:35Mb/s on my dd wrt router. And then as mentioned, when connecting from outside on 5Ge with speeds mentioned above, I only get D 300-600kb/s.

MTU number has been changed, as well as data ciphers on server. Not sure what can be done else. Will try TCP..
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum