Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please be gentle with me as I am very new to Linux. Basically I have inherited a Linux web server that I will host my own web site. But while I am creating this I want to host a new site for a friend. The new site needs port 10000 open for webmin, so I looked on the net and found some useful threads, and added the following command line through putty.exe
# iptables --append INPUT --protocol TCP --source-port 10000 --jump ACCEPT (and repeated for OUTPUT and FOWARD). Then I used this url to test the port is open (http://www.yougetsignal.com/tools/open-ports/) and the result tells me port is not open.
When I entered the command line I recieved no errors.
Please be gentle with me as I am very new to Linux. Basically I have inherited a Linux web server that I will host my own web site. But while I am creating this I want to host a new site for a friend. The new site needs port 10000 open for webmin, so I looked on the net and found some useful threads, and added the following command line through putty.exe
# iptables --append INPUT --protocol TCP --source-port 10000 --jump ACCEPT (and repeated for OUTPUT and FOWARD). Then I used this url to test the port is open (http://www.yougetsignal.com/tools/open-ports/) and the result tells me port is not open.
When I entered the command line I recieved no errors.
Any ideas?
Neill.
You would only need the INPUT rule for a start.
Second, if there is a DROP rule before the rule you just added, it wont work. In some cases you have to use -I rather then --append or -A.
also, it is --dport you are after rather then --sport
anything that isnt allowd should be dropped and logged - this should be the last couple of lines.
if you have done the above, then troubleshooting is made easier because anything not allowed is blocked and loggged
Ummm....have you tried to just start the webmin service? You havent put your distribution but on RHEL/Centos you can start the service and it will open the port.
That last bit shows you are running a RH compatible system, so here's the relevant Deployment Manual section http://www.linuxtopia.org/online_boo...el5_ch-fw.html .
Just for confirmation, can you login as root and post the results of these cmds
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.