Posted: Wed Jun 05, 2024 0:33 Post subject: Remove remote access from WIFI
Hello all,
I have a vpn router (192.168.xx.1) + a linksys wrt1900acs running dd-wrt 49418 (192.168.xx.2) on a 192.168.xx.xx vlan for internet access and site wide VPN.
The Linksys provides all wifi, dhcp, wifi security, etc, for this internet vlan. The VPN router simply manages the VPN and nothing more. All is working fine EXCEPT for the fact I found out the other day that when accessing internet via my WIFI I am able to hit the config pages for both routers. Something I don't want happening.
I do not want access to EITHER routers' config page enabled via WIFI at all. I only want admin access to EITHER routers' config to be accessible thru my local wired LAN. I have tried to apply iptable FW rules to DD-WRT similar to these below, but all this does is remove access to the DD-WRT web config page for everywhere - i.e. it doesn't do what is needed.
So I am appealing to the good nature of any iptable guru's to give me a hand to be able to eliminate access to both routers config pages via WIFI - BUT leave the wired LAN access to the web config's of both routers INTACT.
The firmware bug you're citing is for Broadcom based routers not Marvell. Admittedly that dd-wrt feature doesn't work in v49418 for Marvell either. Even if going to a later version of DD-WRT that may, or may not, fix that particular function, dd-wrt is only half of the issue.
The other half is the fact that the VPN router does NOT have a web-gui disable of any kind so firewall rule(s) will have to be employed to keep that routers' GUI off of wireless. Unless I am missing something.
Now, as far as your upstream router that is not running DD-WRT, if it has no way of configuring specific IP access to webUI, then you would need to use firewall rules in DD-WRT to prevent access as well as turning off the wifi on that device, if so equipped. Good luck on that remaining, because if your ISP ever comes to work on anything, that will get re-enabled because the techs use their cell phones to access the ISP gear. Somewhere in the above linked thread pages is ebtables rules that I previously used that worked flawlessly, but you may need to specify destination IP address with either option... _________________ "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... RSS feed for DD-WRT releases (2025) RSS feed for DD-WRT releases (2024) RSS feed for DD-WRT releases (2023)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
It is not very helpful that you mask private IP addresses.
And certainly unnecessary as millions of others use the same private and non-public IP addresses.
This makes it difficult to give good recommendations.
If the routers are in the same subnet then you need “ebtables” because in that case you want to control traffic within a bridge and that is outside the capabilities of iptables. _________________ Quickstart guides:
TO BE CRYSTAL CLEAR:
I DO NOT want the web interface flat out disabled. I only want the web interface to be made unavailable thru WIFI, which on my network is provided solely by the Linksys router and is the 2.4mhz radio only. The other radio is disabled completely. The web interface MUST be available ONLY through the wired network and not simply disabled in total.
I did find the "ebtables" filter listing - much appreciated. I also noticed a section of thread that was attempting to define what interface designations were which. I find I am now wondering the same thing. Here is a snippet of the available interfaces;
I assume that my interface of interest for the rule sets are to be confined to the "wlan1" interface? Regarding the source and destination - what would those be exactly? The two routers are on the same subnet and are 192.168.xx.1 (vpn) and 192.168.xx.2 (linksys-dd-wrt) respectively.
Also, the pointer to the "2024 builds" page is labeled "/dd-wrtv2/downloads/betas/2024/". I do not want to run BETA firmware. Is there a page that lists latest STABLE 2024 builds for the Marvell wrt1900acs v2?
Well, we can now put to bed the whole idea of "update the firmware and part of the issue will be fixed". FW upgrade does not fix the issue with dd-wrt's web config showing up on WIFI.
Setting Adminstration > Management > Remote Access > "allow any remote ip" to DISABLE and then entering the IP of a wired LAN machine as the "Allowed remote IP". I can still connect to WIFI and by putting in the ip of the router the config page still pulls up just as always.
Also under Wireless 2.4ghz > advanced > setting "web UI access" to DISABLE does absolutely nothing.
Unless I am missing something obvious here this firmware update to 3.0-r56490 did NOTHING with respect to fixing any part of this issue. I will say that the router does seem a little snappier speed wise, but that's about it...
The original issues are still present.
I am curious to learn more about the usage of the source and destination IP's regarding the "ebtables" filters and how it applies here as well as clarification on the proper interface designation to use.
This one above doesn't appear to work for suppressing the vpn router config panel however. I noticed that with the firmware now upgraded to v3.0-r56490 the interface list has changed from the older version.
The new interface list;
Code:
ip link show
1: lo:
2: eth0:
3: eth1:
4: teql0:
11: br0:
12: wlan1:
Does the rule for the 192.168.xx.1 vpn router need to point at a different interface perhaps?
This one above doesn't appear to work for suppressing the vpn router config panel however. I noticed that with the firmware now upgraded to v3.0-r56490 the interface list has changed from the older version.
The new interface list;
Code:
ip link show
1: lo:
2: eth0:
3: eth1:
4: teql0:
11: br0:
12: wlan1:
Does the rule for the 192.168.xx.1 vpn router need to point at a different interface perhaps?
You wrote above that you use VLAN and in your interface list VLAN1 was listed and VLAN1 is normally the LAN.
If no VLANs are configured on the router then you have to use eth1 instead of VLAN1 (assuming this is also your LAN interface and the vpn router is conntected to a LAN Port)