OpenVPN server address too long for DD-WRT config field

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


Joined: 09 May 2022
Posts: 16

PostPosted: Fri Aug 05, 2022 16:01    Post subject: OpenVPN server address too long for DD-WRT config field Reply with quote
I have a Linksys WRT3200 ACM with DD-WRT v3.0-r48432 std (03/01/22) installed.

I also have my own OpenVPN server in Digital Ocean (DO) to which I connect from the router and it works just fine. However DO IP address is in some black lists and many services (e.g. my online banking) refuse to work with it. So I decided to spin up another VPN server in AWS. The server (Amazon actually calls it AWS Client VPN endpoint) is up and running and I can connect to it using an OpenVPN Windows client from my laptop.

However AWS VPN server's address they provide looks like xxx.cvpn-endpoint-<some_letters_and_numbers>.prod.clientvpn.ca-central-1.amazonaws.com and this whole string simply does not fit into the corresponding field of DD-WRT web config.

Question: where does DD-WRT store this kind of settings? I suspect it is some config file and if I connect to the router via SSH, I can simply edit it and insert a longer string.

P.S. As an alternative solution, I tried setting up a redirect to the long AWS address from a short domain name that I own, and for some reason I could not connect like that even using the OpenVPN Win client. I see in its logs that the redirect does happen, it is talking to some IP that belongs to Amazon but it times out. Not sure if AWS does not like being redirected to or what.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Fri Aug 05, 2022 16:10    Post subject: Reply with quote
The field can take 64 characters are you saying the name is more than 64 characters Shocked

The nvram variable is openvpncl_remoteip
Code:
nvram set openvpncl_remoteip="my.very.longandstupid.address"


But why not use the IP address?

_________________
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
dmitrytoda
DD-WRT Novice


Joined: 09 May 2022
Posts: 16

PostPosted: Fri Aug 05, 2022 16:47    Post subject: Reply with quote
Yep AWS always gives you super long domain names. And I cannot use the IP because it is different every time. I could get a static one from AWS but that costs extra money.

Anyways, your command helped, thank you! however the router still does not connect so I will open another topic for that 🙈
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Fri Aug 05, 2022 17:05    Post subject: Reply with quote
I use an Oracle cloud server (free) fixed IP address (but no guarantees) Smile

I will contemplate allowing 96 characters Smile

Please open another thread, post screenhot of OpenVPN settings page (including anything in Additional config), OpenVPN Status page (whole page) and output of:
grep -i openvpn /var/log/messages
cat /tmp/openvpncl/openvpn.conf

OpenVPN documentation is a sticky in this forum, have a look at the OpenVPN client setup guide

_________________
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
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