How to access dd-wrt admin via OpenVPN?

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


Joined: 26 Apr 2019
Posts: 16

PostPosted: Tue May 28, 2019 19:46    Post subject: How to access dd-wrt admin via OpenVPN? Reply with quote
Please excuse a newbie question - perhaps this is something obvious...

I am running dd-wrt build 33555 on a wnr3500lv1 router.

I've set-up OpenVPN server on it and I can connect to my home network just fine. Almost all seems to work - I can access all devices on my home network by their local IPs... all except one: the router itself.

How do I access the ddwrt admin page, when connected to it via OpenVPN?
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12891
Location: Netherlands

PostPosted: Tue May 28, 2019 20:50    Post subject: Reply with quote
Normally you can reach the router by its lan address.
For a normal OVPN server setup you only need one firewall rule to NAT traffic out.
Are you using any other firewall rules?

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


Joined: 26 Apr 2019
Posts: 16

PostPosted: Wed May 29, 2019 13:03    Post subject: Reply with quote
Yes, I was hoping I could reach the router by its LAN IP, but it times out.

Here are my firewall rules, after the guide: https://www.howtogeek.com/64433/how-to-install-and-configure-openvpn-on-your-dd-wrt-router/ - about 4/5 down the page.

Code:
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 192.168.1.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT


I've updated the IP address to match my setup, but other than that, I have no idea what these rules do.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12891
Location: Netherlands

PostPosted: Wed May 29, 2019 13:50    Post subject: Reply with quote
Who puts those silly ideas into your heads. Sad
The only rule you need is missing.

Remove all those firewall rules.

Remove everything you probably put in the additional config!

See my signature at the bottom of this post for a guide how to set up an OVPN server

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


Joined: 26 Apr 2019
Posts: 16

PostPosted: Wed May 29, 2019 14:26    Post subject: Reply with quote
egc wrote:
Who puts those silly ideas into your heads. Sad
The only rule you need is missing.

Remove all those firewall rules.

Remove everything you probably put in the additional config!

See my signature at the bottom of this post for a guide how to set up an OVPN server


Thank you!

I followed your guide to the letter (almost), and I am now able to access everything on my home LAN, including the router.

Should have read the guide after your first post - my bad. Thanks again!
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12891
Location: Netherlands

PostPosted: Wed May 29, 2019 14:50    Post subject: Reply with quote
Glad I could help Very Happy
_________________
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