WebGUI - Remote Access always listen on port 80. Please Help

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
ale-pacha
DD-WRT Novice


Joined: 30 Aug 2020
Posts: 3

PostPosted: Sun Aug 30, 2020 17:40    Post subject: WebGUI - Remote Access always listen on port 80. Please Help Reply with quote
Hello People.

I used DD-WRT since many years, and also ran a couple of simple scritps, but most of the times I used to set all my configurations thru WebGUI and that was enought.
Anyway, I define myself as a newbie.

INFO:
Hardware:
Linksys E900 Router.

Firmware:
DD-WRT v3.0-r40559 mega (08/06/19)


Configuration:

Firewall: Disabled -to avoid causing extra issues, in others word to avoid being dropped by any firewall rule-

uPNP Service: Disabled -just to make sure it doesn't generate a conflict with portfoward feature-

DynDNS Client: Enabled -using freedns.afraid.org client. but thid will not generate a conflict-

WAN: Using a RF local provider with a old fashioned "Alvarion" modem. Model: ALVR-CPE-IDU-1D2V. 1 WAN Port + 2 ATA lines.
It runs OK, Does the thing. And my ISP provides me a clean service, just plugging a computer/router in RJ45 Jack.
No PPPoE dialing required. Seems like a PPPoA connection. Anyway...it works fine.
They often weekly / monthly change my dynamic IP address, using the same Mac Address, thru a MAC Address filtering...I guess.
In case I connect a different device I get a new random IP. Thats the reason I set a DynDNS client sometimes.
---

ExtraInfo:
I connected a computer directly to my modem provider and I was able to access my webserver. So I assume ports 80 and 8080 are not blocked.
I also performed some testings using a 4G connection on my cellphone, to make sure to avoid passing thru the router -like any external incomming connection-
I even set my webserver on port 81 to perform some tests.


What I'm trying to configure: A nice Wish...

#Step A - Set Remote Access WebGUI on port 8080. To set WAN port 80 free.
I Tried to set this thru WebGui but it doesn't make sense.
It always get stuck listening on WAN port 80. Even setting another port for Remote Access.

Disabling web Access thru the WebGUI...I disabled this feature and I was forced to regain access thru telnet/ssh using putty, then setting NVRAM variables.

nvram set httpd_enable=1
nvram set http_enable=1
nvram set http_lanport=80
nvram set httpsd_enable=1
nvram set https_enable=1
nvram set http_wanport=8080

nvram commit

reboot

*I also tried performing a httpd command, to start it up before doing a reboot. but same happends. It listen on port 80 once again.

LAN PORT = 80 *OK
WAN PORT = 80 *NOT OK. It seems "nvram set http_wanport=8080" command doesn't work.


#Step B - I need to set WAN port 80 free, to config a PortFoward from WAN Port 80 to LAN IP ADDRESS 10.0.0.234 80.
Or any other local IP address, its just for examples purposal.

I guess I could set this portmap trhu the website after setting WAN ACCESS in 8080 after solving my issue.


The funny thing it's...
I did this many times using old versions of DD-WRT and it worked fine, just setting parameter thru the management website.

So...

Questions:

#1 Did someone experienced a similar issue?. At least on this Build?.

#2 Maybe it would be an error into this specific BUILD DD-WRT v3.0-r40559 mega (08/06/19) .
Maybe it's just me.
In that case...Could anyone suggest a previous build working fine?.

#3 Otherwise...How could I force those settings STEP A + STEP B using iptables.

Please consider I have not much knowledge about iptables...
But I understand the syntaxis, and the way it works -Decline vs Allow configurations- and the importance of define the rules on top to set a major herarchy.

I need first...to make sure how to search/find/show rules to avoid screw it up. -Commands- ... and YeaH!...I'm a chicken.

Then...I assume I have to ADD some rules, Replace others, and also Delete previous defined rules.

Thats what I assume I have to change on my Iptables ruleset.
#1 Allow to listen on LAN interface in port 80.
#2 Allow to listen on WAN interface in port 8080.
#3 A PreRouting rule to foward incomming traffic from WAN 8080 to Router_IP_Address in port 80.
#4 To perform a Portforwarding from WAN interface in port 80 to WebServer_IP_Address in port 80. -A fix IP address-

At this stage...
I don't know how to proceed in a straight order.

What goes first?...Add Rules? Update/Replace Them? Delete them?.

In case someone take some time to be my menthor, I will appreciate so much his/her effort.

By the way I will do all my settings in a clean installation, just to make sure to avoid extra issues.

Thanks and have a nice day, and pleasse take care people..COVID Sucks!.
Alejandro here!
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6858
Location: Romerike, Norway

PostPosted: Sun Aug 30, 2020 20:05    Post subject: Reply with quote
Try a newer build.

ftp://ftp.dd-wrt.com/betas/2020/08-28-2020-r44251/broadcom_K3X/dd-wrt.v24-44251_NEWD-2_K3.x_mega-e900.bin
ale-pacha
DD-WRT Novice


Joined: 30 Aug 2020
Posts: 3

PostPosted: Mon Sep 07, 2020 7:15    Post subject: Reply with quote
Per Yngve Berg wrote:
Try a newer build.

ftp://ftp.dd-wrt.com/betas/2020/08-28-2020-r44251/broadcom_K3X/dd-wrt.v24-44251_NEWD-2_K3.x_mega-e900.bin




Awesome!. And Thanks for your help.I just did it a couple of hours before reading your reply.

Anyway, I was in the right way.
I started all the setup process once again, using this version = DD-WRT v3.0-r42557 mega (02/28/20)

This time I was able to set GUI listening in LAN port 80 as expected.
Then I disabled InfoSite feature, just in case. To make sure to avoid any kind of WAN port conflicts.
Finally, I set WAN port 8000 for GUI, and it works fine.



This is myconfig at SETUP >> DDNS Service
DDNS Service: freedns.afraid.org
Username: My_Username
Password: My_Password
Hostname: My_subdomain.FreeDNS-Domain.com,MY_TOKEN_0123_to_44_Chars
Use external IP check No

This is what I get:
Where (My_subdomain.FreeDNS-Domain.com) = My DYNDNS hostname. (WWW.XXX.YYY.ZZZ) = My WAN IP Address.

Mon Sep 7 08:08:19 2020: INADYN: Started 'INADYN Advanced version 1.96-ADV' - dynamic DNS updater.
Mon Sep 7 08:08:19 2020: I:INADYN: IP address for alias 'My_subdomain.FreeDNS-Domain.com' needs update to 'WWW.XXX.YYY.ZZZ'
Mon Sep 7 08:08:24 2020: INADYN:IP: Error '0x16' resolving host name 'freedns.afraid.org'
Mon Sep 7 08:08:24 2020: W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)
Mon Sep 7 08:18:31 2020: INADYN:IP: Error '0x16' resolving host name 'freedns.afraid.org'
Mon Sep 7 08:18:31 2020: W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 1)

I tried to find something related to these errors, but I get nothing about
INADYN:IP: Error '0x16' resolving host name 'freedns.afraid.org'
or
RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)


Even, if I change the "Use external IP Check" to YES, I get this:
Where (My_subdomain.FreeDNS-Domain.com) = My DYNDNS hostname. (WWW.XXX.YYY.ZZZ) = My WAN IP Address.

Mon Sep 7 09:25:33 2020: INADYN: Started 'INADYN Advanced version 1.96-ADV' - dynamic DNS updater.
Mon Sep 7 09:25:38 2020: INADYN:IP: Error '0x16' resolving host name 'checkip.dyndns.org'
Mon Sep 7 09:25:38 2020: W: DYNDNS: Error 'RC_IP_INVALID_REMOTE_ADDR' (0x12) when talking to IP server
Mon Sep 7 09:25:38 2020: W:'RC_IP_INVALID_REMOTE_ADDR' (0x12) updating the IPs. (it 0)


I got my token ID from a "CronD script" at freedns.afraid.org, there was a brief description about "how to get your TOKEN ID".
I only set an "A" record in freedns.afraid.org, I think that's enought...Right?

I Followed this help: https://freedns.afraid.org/guide/dd-wrt/


To be honest, I could try to add this setting thru CronD...and use wget instead.
But I just wanted to set this feature using GUI parameters, to make sure anyone with admin privilegies could be allowed to perform any changes someday.


So...

I can`t determine if I just missed some step while setting up DNS Record on freedns.afraid.org,
or...
I'm doing something wrong into DDNS Settings parameters.



By the way, I could solve this by installing a DyNDNS client into any computer.

Thank you so much!.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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