LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to open port on Fedora Core (https://www.linuxquestions.org/questions/linux-networking-3/how-to-open-port-on-fedora-core-475588/)

motheeb 08-20-2006 07:52 AM

How to open port on Fedora Core
 
Hi,

This is my first post into your community, and I am quite new to Linux, here is my problem:

I have installed Tomcat on my Linux machine. After starting Tomcat and pointing a browser to localhost:8080 it works fine.

However when trying to access it from another machine by pointing a browser to {IP_Address}:8080 it does not work. There is no hardware that is blocking connections to 8080 (i.e. no router ..etc).

Also I have tried:

iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT

And still got the same result.

How can I open port 8080 for external use?



Thanks

macemoneta 08-20-2006 08:48 AM

Select the menu item System->Administration-Security Level and Firewall. From the dialog that opens, on the Firewall Options tab, click on Other Ports, then click the Add button. Enter the port number and click OK.

motheeb 08-20-2006 08:51 AM

Thanks for your reply, but I forgot to mention that I have no access to a GUI on my machine, so all I can use is a terminal window. Can you describe how I can carry out what youve described above using shell commands?


Thanks

reddazz 08-20-2006 09:14 AM

Run the command "system-config-security-level" and then use your keyboard to navigate to the firewall and enter the ports you wish to open.

motheeb 08-20-2006 09:22 AM

That didn't look like a shell command to me. I am runnig bash shell, and I got a command not found message.

Please Help. I have started Tomcat on port 80 instead and it worked. But I dont want it to run on port 80


Thanks

reddazz 08-20-2006 10:06 AM

Its a command but I spelt it wrong. The right command is system-config-securitylevel. As for the tomacat thing, start a new thread since its not related to the current discussion.

motheeb 08-21-2006 06:10 AM

Thanks for your reply,
Code:

system-config-securitylevel
still gave me a command not found message. This is on the bash shell for Fedora Core 5. Is there something that I need to install or a package that is not there?

Thanks

reddazz 08-21-2006 06:34 AM

Quote:

Originally Posted by motheeb
Thanks for your reply,
Code:

system-config-securitylevel
still gave me a command not found message. This is on the bash shell for Fedora Core 5. Is there something that I need to install or a package that is not there?

Thanks

I have a server running CentOS 4.x in text mode only and I can access that command. Try doing something like "yum install system-config-securitylevel-tui".


All times are GMT -5. The time now is 05:28 PM.