Click to See Complete Forum and Search --> : ipchains Help


picochu
12-14-2000, 10:03 AM
I have an ipchains script setup that blocks all unauthorized ports from the outside and inside. I am trying to run a server from the inside, but the port is being blocked. Can someone please tell me how to open a port so the server will function properly? Thanks.

c_guy
12-14-2000, 11:21 AM
Well that depends on what kind of server your looking to run... FTP, WEB, What?

depending on the server, you'll need to allow access to the specific port that the server listens on... use a command like this..

This must be either the 1st line in your ipchains script or switch the -A with -I (add vs insert).

ipchains -A input -j ACCEPT -i (external interface) -p tcp -d (local ip) (port number)

here you'll have to replace the external interface with yours, prob eth0, then the local ip with yours, and the port number the server listens on.

look in your /etc/services for a complete list of what servers use what ports...

good luck