How to allow WAN GUI access ONLY (i.e. no LAN web GUI)?

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
millerbee
DD-WRT Novice


Joined: 18 Apr 2018
Posts: 2

PostPosted: Wed Apr 18, 2018 14:31    Post subject: How to allow WAN GUI access ONLY (i.e. no LAN web GUI)? Reply with quote
I'm adding a new DD-WRT router to my *internal network* with wifi radios disabled. The goal is to isolate all traffic on the new subnet to be Internet-bound only.

I want to disable web admin GUI access from the LAN side and only allow GUI access from the WAN side. I've got the WAN side opened up via the appropriate admin options but now I want to close down the LAN side.
Sponsor
Coolidge
DD-WRT Novice


Joined: 07 Oct 2017
Posts: 33

PostPosted: Wed Apr 18, 2018 20:02    Post subject: Reply with quote
Did You try unchecking both "Administration/Web access/http and https" chekboxes but leaving "Administration/Remote access" enabled?
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6446
Location: UK, London, just across the river..

PostPosted: Wed Apr 18, 2018 20:40    Post subject: Reply with quote
hmmm i hope you know what you are doing... and there will be a good set of firewall rules to protect, when you open GUI on a Wan side....
do expect a lot of attacks if you expose GUI on WAN side
make sure you change default ports for telnet and ssh and do key lock it with receipted key

by default the local microserver listens on port 80 so, closing down port 80 on local side will restrict any access to it...

add this to firewall script
iptables -I INPUT -i br0 -p tcp --dport 80 -j REJECT

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
millerbee
DD-WRT Novice


Joined: 18 Apr 2018
Posts: 2

PostPosted: Thu Apr 19, 2018 4:00    Post subject: Reply with quote
Target network topology is:

ISP -> DD-WRT router 1 (no open inbound ports) -> LAN -> DD-WRT router 2 (the one being set up) -> new isolated subnet

Only the LAN will have access to the WAN side of the second DD-WRT router. WLAN on router 1 can only head out to the Internet and has no access to the LAN. Only two machines exist on the LAN, both of which are strictly controlled. Unless you know something I don't, there shouldn't be any particular danger of attacks against the second router?

Thanks for the iptables rule. Exactly what I was hoping for.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Thu Apr 19, 2018 9:04    Post subject: Reply with quote
One step further then the rule from @Alozaros is rejecting everything but the necessary DNS and DHCP and ICMP by adding the following:

Code:
iptables -I INPUT         -i br0 -j $REJECT
iptables -I INPUT -p tcp  -i br0 -j $REJECT_TCP
iptables -I INPUT -p icmp -i br0 -j ACCEPT
iptables -I INPUT -p udp  -i br0 --dport 67 -j ACCEPT
iptables -I INPUT -p tcp  -i br0 --dport 53  -j ACCEPT
iptables -I INPUT -p udp  -i br0 --dport 53 -j ACCEPT

_________________
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 -> General Questions 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 can attach files in this forum
You can download files in this forum