What's new

How would you check or change the router's http or https webinterface port via telnet (only)?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

powersupply

Occasional Visitor
RT-AC68

Hi all
how do you see or change the router's http or https webinterface port via telnet (only)?

I have access to my router via telnet but not via webinterface anymore, the noted ports (I had changed :80 and :8443) don't work.
With the (changed) ports the browser will loop for a long time before timing out.
When I use random ports it immediately times out.
Strange.


I tried to scrape the threads here before bothering you guys, used

iptables -S FORWARD

-P FORWARD DROP
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -j OVPNSF
-A FORWARD ! -i br0 -o vlan2 -j other2wan
-A FORWARD -i br0 -o br0 -j ACCEPT
-A FORWARD -m state --state INVALID -j DROP
-A FORWARD -j NSFW
-A FORWARD -i br0 -j ACCEPT
-A FORWARD -m conntrack --ctstate DNAT -j ACCEPT
-A FORWARD -j OVPNCF
-A FORWARD -j VPNCF
-A FORWARD -j DROP

but cannot find any port number as you can see.

What would be the correct syntax to check the current webinterface port numbers or to change them please?
Thank you!
 
You can find the listening port(s) for various processes w/ the following command.

Code:
netstat -tupln

You can locate the httpd/httpds server(s) in the process table w/ the following command.

Code:
ps -w | grep [h]ttpd

Take note of the command line. It may or may not specify a port (-p option). You could kill them and restart it w/ a port of your choosing.

Code:
killall httpd && sleep 3
httpd -p 1111 ...
httpds -p 2222 ...
 
Thank you for your prompt and detailed reply.
Will try it out later, they are reconfiguring stuff, am cut off right now.
Looking forward to try your kind suggestions.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top