[SOLVED] Oracle Cloud Free VPN Server - DDWRT client

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
MatteoDubai
DD-WRT Novice


Joined: 17 Feb 2021
Posts: 34

PostPosted: Sat Jan 15, 2022 12:51    Post subject: [SOLVED] Oracle Cloud Free VPN Server - DDWRT client Reply with quote
Hello

I followed this very useful video https://www.youtube.com/watch?v=E-CLtExRzX8&ab_channel=IdeaSpot and I set up a free VPN server on Oracle Cloud, it works perfectly by connecting with my Windows machine.

I would like to set up the client on the DDWRT router, but I can't find a way to check with parameters are used and were to find the CA key.

Has someone did something similar?
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12835
Location: Netherlands

PostPosted: Sat Jan 15, 2022 16:28    Post subject: Reply with quote
You can use the windows config (.ovpn) file as blue print to setup the DDWRT OpenVPN client via the GUI.

For general information see the OpenVPN Client setup guide links in my signature at the bottom of this post.

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


Joined: 17 Feb 2021
Posts: 34

PostPosted: Sat Jan 15, 2022 16:39    Post subject: Reply with quote
Thank you for the quick reply.

In the webpage for the Oracle OpenVPN, there is no way to download the ovpn file, so I am not sure how to proceed, moreover I see that the CA cert is required, but I don't know how to get it, I did not create it in the configuration of the VM/VPN.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12835
Location: Netherlands

PostPosted: Sat Jan 15, 2022 16:46    Post subject: Reply with quote
I thought you have a Windows client running?

The windows client has a config file (.ovpn)

If you right click on the ovpn icon under settings you see the path of this config file usually:
C:\users\myusername\OpenVPN\config

The keys are either inline in the config file or separate files in the same directory

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


Joined: 17 Feb 2021
Posts: 34

PostPosted: Mon Jan 17, 2022 6:41    Post subject: Reply with quote
I succeeded in the end, thank you!

I could download the OVPN file from the user menu of the Oracle Cloud (it is quite hidden) and then I followed this guide: https://openvpn.net/vpn-server-resources/using-dd-wrt-with-openvpn-access-server/

All works.

How can I set that some pc uses the regular provided and not the VPN for browsing on all traffic?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12835
Location: Netherlands

PostPosted: Mon Jan 17, 2022 6:58    Post subject: Reply with quote
It is in the OpenVPN client setup guide links in my earlier post.

Look under Policy based routing (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
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12835
Location: Netherlands

PostPosted: Mon Jan 17, 2022 18:03    Post subject: Reply with quote
I set one up myself was fun todo 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
MatteoDubai
DD-WRT Novice


Joined: 17 Feb 2021
Posts: 34

PostPosted: Wed Jan 19, 2022 18:28    Post subject: Reply with quote
It depends on the definition of fun Very Happy
I am getting old to do these things... ha ha.

I still have one question:

I am thinking of creating 2 Wifi: 1 with VPN access and 1 without VPN access.

How can I redirect the traffic based on the wifi I am connected to?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12835
Location: Netherlands

PostPosted: Wed Jan 19, 2022 19:44    Post subject: Reply with quote
I am actually doing that myself Smile

First you have to create an unbridged VAP (Virtual Access point)

I have created wl0.1 (but the name depends on router model sometimes it is wlan0.1 or xx.1.1)

You just add that interface in the PBR field like:
Code:
iif wl0.1


Described in the OpenVPN Client setup guide

Prerequisite: use at least build 48128!

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


Joined: 17 Feb 2021
Posts: 34

PostPosted: Fri Jan 28, 2022 13:38    Post subject: Reply with quote
You are the best, thank you... solved Smile

Last edited by MatteoDubai on Fri Jan 28, 2022 14:20; edited 1 time in total
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12835
Location: Netherlands

PostPosted: Fri Jan 28, 2022 14:07    Post subject: Reply with quote
The interface has to be unbridged to work.

Alternatively just use the IPaddress/netmask, my main router is 192.168.4.1/24, wl0.1 is on 192.168.14.1/24

I can (instead of iif wl0.1) add 192.168.14.0/24 in the PBR field

I will add in the guide that the interface has to be unbridged (obvious for me but of course not for everybody)

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


Joined: 17 Feb 2021
Posts: 34

PostPosted: Fri Jan 28, 2022 14:21    Post subject: Reply with quote
I stand corrected, the laptop works fine, but if I try to connect the phone, it does not work. I receive the IP, but I am told that there is no internet connection, like the DNS are not working, this is strange, because from the laptop it works perfectly.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12835
Location: Netherlands

PostPosted: Fri Jan 28, 2022 14:42    Post subject: Reply with quote
Do not set the Forced DNS redirection on the unbridged interface that can interfere with the Split DNS of the VPN
_________________
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
MatteoDubai
DD-WRT Novice


Joined: 17 Feb 2021
Posts: 34

PostPosted: Fri Jan 28, 2022 14:53    Post subject: Reply with quote
I followed it, but now via the Wifi VPN I can browse, but when I am connected via ethernet or via the other wifi there is no connection and it does not browse the net.

I did not change anything else... should every AP be unbridged?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12835
Location: Netherlands

PostPosted: Fri Jan 28, 2022 18:51    Post subject: Reply with quote
No not every interface should be unbridged.

You have been tinkering a lot sometimes the best option is to reset to defaults and start fresh.

Take note you are also controlling the server, do you push DNS servers?, do you push default routes etc.?

Have you set up regular DNS the right way, there are a lot of variables in play here?

There is a document about VPN and DNS which you might need: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=331017

What you are doing requires intermediate to advanced networking skills.

I have it working (with an unbridged wlan1.1 on PBR on my R7800) with my Oracle cloud setup, but I am pushing default routes and DNS servers etc. and have some networking skills Smile

if the iif is not working (it needs the interface to be available and some routers do restart a lot and the interface might not be available when the routing kicks in) you can always use the subnet of the VAP

Have fun 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
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
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