LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP, webmin, and TCP/IP ports (https://www.linuxquestions.org/questions/linux-networking-3/dhcp-webmin-and-tcp-ip-ports-103538/)

mattrobbins 10-13-2003 04:40 PM

DHCP, webmin, and TCP/IP ports
 
I'm running Redhat Linux 9 on a system behind a Linksys 4-port DSL router. Furthermore, I'm on dynamic IP rather than static from my ISP, so my router gets a new IP address via the DHCP server at random intervals from my ISP.

So far I've gotten Apache webserver and SSH working fine with this scenario by installing ddclient and registering at dyndns.org. Every time my ISP changes the DHCP certificate on my router ddclient notices the change and registers the change with dyndns.org. When requests on port 80 or 22 hit my router they get physically routed to my linux box. My life would've been easier if I'd gone the static IP route, but I got a pervese amount of enjoyment from getting this to work ;)

My current problem is with webmin. What is the path/file for webmin configuration? I want to change the hostname and port that webmin listens on, but I have been unable to find it. I've poked around in /etc/webmin and there's a config file there, but none of the fields pertain to what I want to change, same for /var/webmin

Another thing, webmin by default listens on port 10000, and my DSL router only allows a port range between 0 and 9999 for forwarding. I want to change the port for webmin, but I don't want it to interfere with any other networking services. Can anyone point me in the right direction to read about what ports are for what services with TCP/IP?

Thanks,
Matt Robbins

Muddy 10-13-2003 04:45 PM

yes, the file is actually in /etc see the file called services, it lists all ports and what is supposed to run on them.

also..

when logging into webmin click on webmin configuration and then ports/address and change the port there.

mattrobbins 10-13-2003 04:50 PM

Thanks, Muddy.

Now when I find the config files for webmin I'll be set...

-Matt

Muddy 10-13-2003 08:37 PM

have you logged into webmin ever?

if not then go to https://localhost:1000

mattrobbins 10-13-2003 10:42 PM

Yeah, actually I had, and for some reason it would refuse the connection.

However, I did get it to work tonight though I don't understand why what I did works.

I was dorking around basically, I went into the UPnP forwarding tab on my Linksys DSL router admin page and tried entering the configuration for port 10000 there. On the Port Range Forwarding page whenever I'd enter the data and click on apply my entry would disapear, but on the UPnP page the entry stayed.

After that, I tried starting an https session to mattrobbins.dyndns.org (fully qualified host name for my DSL router) on port 10000, and everything came up kosher.

However, it still refuses the connection if I try to connect via IP address, whether I try on my linux system or windows system on the internal network. On both systems when I use the fully qualified host name for my DSL router (which is now forwarding port 10000) my system properly gives me a webmin session.

Now, going back to the situation up top, let's say I couldn't get into webmin via https and could only log into my system via SSH, is there a list of files for webmin cross referencing them with their purpose?

Thanks,
Matt

P.S.: Anyone know why my Linksys DSL router BEFSR41 v2 is blanking out my manual entry for port 10000 on the Port Range Forwarding page but keeps the manual entry on the UPnP (Universal Plug n Play) Forwarding page? On the PRF page it keeps the entries for port 22 and 80, but blanks out an entry for 10000 whenever I enter it. Is this a bug or is it intended to do this?

Muddy 10-14-2003 03:16 AM

are you on the box that webmin is on or are you trying to access it from another box on your network?


All times are GMT -5. The time now is 01:54 AM.