Changing a port forwarding setting in Redhat 9.0

Posted on 2006-05-07
Last Modified: 2012-08-14
I have a linux Redhat 9.0 box running as a firewall on predominantly Windows network. The company that setup the router used port 81 to be forwarded to the internal firewall IP address to allow for a webadmin gui to be used through internet explorer. A recent new banking software requires port 81 be forwarded through the firewall for their software to function properly so I need instruction on how to change the webmin software to use a different port other than 81 so that I can then allow port 81 to pass through the firewall for the software. Need this changed in the next day or so in order for banking issues to take place this week.
Question by:kingsville
    LVL 19

    Accepted Solution

    Changing the Webmin Port from the Command Line

    Another problem after installation may be that a firewall prevents access to the Webmin port from across a WAN link (if, for example, you are remotely maintaining your Webmin server). If this is the case, you will want to consult with the firewall administrator to find out whether port 10000 can be opened, or if not, what port you can use for your Webmin installation. Changing the port on which Webmin runs after installation is also a pretty simple process. Simply edit the file miniserv.conf in the /etc directory where your Webmin configuration files were installed (this is likely one of the following: /etc/webmin, /usr/local/webmin/etc, or /opt/webmin/etc). You'll find a port directive. Change this to whatever port you need Webmin to listen on, and then restart the Webmin web server.

    so change
    port 81

    port 10000

    which is the standard webmin port
    LVL 16

    Expert Comment

    You can set up the port that webmin listens to in Webmin Configuration -> Port and Address.

    But is the webmin running on port 81 or is the port 81 redirected to webmin?

    You can change the port forwarding settings in Linux Firewall module in webmin (if you have it installed). Otherwise you must change the iptables settings manually - a common place to do this is to edit /etc/sysconfig/iptables file.

    Author Comment

    I am a Linux newbie so please bear with me here - Logging into the firewall from internal address - I have the option of entering the internal IP address:81 or IP address:10000 - I get prompted to login in with root and required pw. The :81 page allows me to look at things like syswatch log files, look at port forwarding rules already in place, open ports, running services and allow for shutdown or restart through the GUI rather than command line. This is the page I need to go to another available port so that 81 can be used for banking software. I am thinking I need to do this through command line as I have nothing that I can see in the GUI for Webadmin Configuration under the :81 site. I will look in the :10000 site to see if it is there.
    LVL 19

    Expert Comment

    okay, put here the output of

    iptables -L -vn | grep 81

    and of

    iptables -L -vn -t nat | grep 81

    I suspect you have both: usermin and webmin since you tell us they are different. so also put here the output of

    ps -aux | grep min

    LVL 19

    Expert Comment

    any news?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now