[SOLVED] OpenVPN client setup with UltraCC, help needed

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


Joined: 30 Aug 2021
Posts: 6

PostPosted: Mon Aug 30, 2021 10:35    Post subject: [SOLVED] OpenVPN client setup with UltraCC, help needed Reply with quote
Router Model: Linksys WRT3200ACM
Firmware Version: DD-WRT v3.0-r44048 (08/02/20)
Kernel Version: Linux 4.9.231 #1979 SMP Sun Aug 2 03:35:09 +03 2020 armv7l

Trying to setup OpenVPN client to connect to a private VPN service attached to my SeedBox (http://ultra.cc).

I download an ovpn config file from my setup panel and use the setting, key, certs from there.

OpenVPN seems to connect, but in doing so all traffic is cut off.

When I SSH into the router I can ping outside IP's, like googles 8.8.8.8. I am not able to do so from CMD in windows.

My thinking is therefor that DD-WRT for some reason isn't letting traffic through to the VPN and just blocks it for some reason.

I've looked through the wiki (https://wiki.dd-wrt.com/wiki/index.php/OpenVPN#Troubleshooting), not really finding anything.

Running ifconfig shows that tun1 is up and running
[img]https://ibb.co/6X5DM6d[/img]

My setup is as follows, keeping it as simple as possible. Cypher and hash are same clien and serverside.
[img]https://ibb.co/hfT81hr[/img]

As the log states, after initial connection and handshake the client connects/disconnects in an endless loop. Making me think that it is serverside that the problems occur?

Code:
Clientlog:
20210831 11:13:30 W WARNING: Using --management on a TCP port WITHOUT passwords is STRONGLY discouraged and considered insecure
20210831 11:13:30 W WARNING: file '/tmp/openvpncl/client.key' is group or others accessible
20210831 11:13:30 W WARNING: file '/tmp/openvpncl/ta.key' is group or others accessible
20210831 11:13:30 I OpenVPN 2.4.9 arm-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Aug 2 2020
20210831 11:13:30 I library versions: OpenSSL 1.1.1g 21 Apr 2020 LZO 2.09
20210831 11:13:30 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:16
20210831 11:13:30 W WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
20210831 11:13:30 W NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
20210831 11:13:30 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
20210831 11:13:30 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
20210831 11:13:30 I TCP/UDP: Preserving recently used remote address: [AF_INET]*.*.*.*:1194
20210831 11:13:30 Socket Buffers: R=[180224->180224] S=[180224->180224]
20210831 11:13:30 I UDPv4 link local: (not bound)
20210831 11:13:30 I UDPv4 link remote: [AF_INET]*.*.*.*:1194
20210831 11:13:30 TLS: Initial packet from [AF_INET]*.*.*.*:1194 sid=90b08bfd 93944dbc
20210831 11:13:30 VERIFY OK: depth=1 CN=lw839.usbx.me
20210831 11:13:30 VERIFY OK: depth=0 CN=server
20210831 11:13:30 NOTE: --mute triggered...
20210831 11:13:30 1 variation(s) on previous 3 message(s) suppressed by --mute
20210831 11:13:30 I [server] Peer Connection Initiated with [AF_INET]*.*.*.*:1194
20210831 11:13:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:16
20210831 11:13:30 D MANAGEMENT: CMD 'state'
20210831 11:13:30 MANAGEMENT: Client disconnected
20210831 11:13:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:16
20210831 11:13:30 D MANAGEMENT: CMD 'state'
20210831 11:13:30 MANAGEMENT: Client disconnected
20210831 11:13:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:16
20210831 11:13:30 D MANAGEMENT: CMD 'state'
20210831 11:13:30 MANAGEMENT: Client disconnected
20210831 11:13:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:16
20210831 11:13:30 D MANAGEMENT: CMD 'status 2'
20210831 11:13:30 MANAGEMENT: Client disconnected
20210831 11:13:30 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:16
20210831 11:13:30 D MANAGEMENT: CMD 'log 500'


Last edited by OusTLEaNdAmo on Tue Aug 31, 2021 9:49; edited 6 times in total
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Mon Aug 30, 2021 11:10    Post subject: Reply with quote
To get the best out of DDWRT and the forum read the forum guidelines full of helpful pointers:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

What build and what router do you have (see the forum guidelines)

I will transfer this thread to a more appropriate forum (see forum guidelines)

For some general information see the OpenVPN documentation link in my signature at the bottom especially for you 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
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Mon Aug 30, 2021 11:22    Post subject: Reply with quote
As NAT is enabled I would focus on compression settings.
The usual suspects for connection but no traffic are NAT and compression Smile

UltaCC does that mean you have setup your own server?
If so disable compression on both sides, compression is a security risk and is soon to be deprecated.

Your cipher settings are also not optimal but a connection is taking place with AES-256-GCM which is the default of OpenVPN 2.5, if you control both sides use ChachaPoly

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


Joined: 30 Aug 2021
Posts: 6

PostPosted: Mon Aug 30, 2021 11:56    Post subject: Reply with quote
Thank you, and sorry for posting in the wrong forum. A lot of information to take in for a newbie.

I looked at the documentation in your signature, even before posting.

Running DD-WRT v. 30-r44715 on a Linksys 3200ACM

I tried your suggestion with changing compression and cipher, it does connect a lot faster, but still not letting any traffic through. I'll look deeper into that, guess I need to direct traffic through OVPN.

UltraCC is a seedbox service, where I can run openvpn through their pre-configured setup on my slot. So I have no serverside control.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Mon Aug 30, 2021 12:52    Post subject: Reply with quote
44715 is not exactly a recommended build (not that I think that that is the main problem)

See for the recommended builds and how to research the forum guidelines, the Linksys routers can be picky regarding wireless so research carefully or ask in the Marvel forum

Use "verb 5" on the client side to get more information.
*Do not place anything else in the Additional Config*

You have to track down whether there is no traffic at all or if traffic stops at the server use ping/traceroute.

As said Compression should be disabled on both sides but as you can not control it it is guessing.
A lot of older setups use Compression Adaptive
So for Compression try
Adaptive or No

_________________
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
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14208
Location: Texas, USA

PostPosted: Mon Aug 30, 2021 13:45    Post subject: Reply with quote
UltraCC or UltraVPN? Would've helped had you linked the provider's website.

https://ultra.cc/

https://ultravpn.com/

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Tue Aug 31, 2021 6:01    Post subject: Reply with quote
I saw you marked the thread as solved Smile

Glad you could make it work.

Can you share what solved it?
It can be important for others in the same situation and for us to learn from.

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


Joined: 30 Aug 2021
Posts: 6

PostPosted: Tue Aug 31, 2021 6:37    Post subject: Reply with quote
Well I didn't exactly solve it yet.

However I realized that I have not been thorough enough before posting a new topic. And since I can't close the thread it felt like the next best thing to do.

I also feel quite certain that the pointers you have already given will lead me to a successful setup.

And I will post back when I do have a solid solution.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Tue Aug 31, 2021 6:56    Post subject: Reply with quote
Thanks
_________________
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
OusTLEaNdAmo
DD-WRT Novice


Joined: 30 Aug 2021
Posts: 6

PostPosted: Tue Aug 31, 2021 9:36    Post subject: Reply with quote
I've updated the first post to better follow forum guidelines. And adding info after reading and fiddling.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Tue Aug 31, 2021 9:43    Post subject: Reply with quote
Enable NAT
_________________
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
OusTLEaNdAmo
DD-WRT Novice


Joined: 30 Aug 2021
Posts: 6

PostPosted: Tue Aug 31, 2021 9:50    Post subject: Reply with quote
OH GOD Shocked Rolling Eyes

Thank you
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Tue Aug 31, 2021 9:51    Post subject: Reply with quote
Some more observations: you are using an older build, I know that this is a linksys favourite, but I saw a user reporting in the 47282 build thread success for your router.
Not saying you should update though as that is not the problem you are facing now.

Furthermore Enable Verify Server Cert. in the GUI (also not your current problem but that is what it is complaining about)

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


Joined: 30 Aug 2021
Posts: 6

PostPosted: Tue Aug 31, 2021 10:05    Post subject: Reply with quote
Again, thank you

I was looking for a list of recommended versions, but couldn't find one. Was looking at another thread which was from august this year, where the build i flashed was recommended.

I think for now I'll stick with it, as everything seems to be working fine.

I activated verify server cert. but the loop is still there. But it's still working fine.

Now I gotta figure out how to route certain things around the VPN Very Happy

The fun never stops Laughing
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Tue Aug 31, 2021 10:20    Post subject: Reply with quote
Glad you solved it Smile

Indeed this is not a bad build so stick with it for the time being.

About the routing, that is a tricky one as it also depends on server settings.
On the client you can control if all traffic should go to the Server or only specific traffic.

For a site-to-site setup which is necessary if you want to connect to your server e.g. with your phone and via the server connect to your DDWRT client you need server side settings (explained in the OpenVPN server setup guide)

Have fun

For posterity:
1. A picture of the settings is very helpful (so I could spot the NAT)
2. Connection but no traffic is often a NAT or Compression problem

_________________
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