how to close port 21

blueyoung

New member
Joined
May 29, 2010
Messages
2
hi there , i need to ask how to close port 21 , im using centos box.
i have change /etc/proftpd.conf and also have restart ftpd but port 21 is still open. thank you before for the answer. :)
 
You've got a firewall; it's probably built into your kernel. It's called netfilter.

You can't directly control netfilter, but if it's not installed already you can install iptables which is used to control netfilter.

If you're not sure how to manage iptables (be careful, you can lock yourself out), you can install one of the available firwalls that simply control iptables. The easiest one to use which is discussed on these forums is KISS; search for it on these forums.

Jeff
 
hi thanks for the reply.
i have installed KISS but it seems something is not rite, i got this when i try to run KISS

[root@vps rules.d]# kiss start
eth0: error fetching interface information: Device not found
Could not determine MAIN_IP. Firewall script aborted!

[root@vps rules.d]# ifconfig eth0
eth0: error fetching interface information: Device not found

[root@vps rules.d]# ifconfig venet0
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:6795350 errors:0 dropped:0 overruns:0 frame:0
TX packets:5761544 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:590208560 (562.8 MiB) TX bytes:1994824459 (1.8 GiB)

what might cause that ?
 
Perhaps KISS needs to be edited to change any occurrences of eth0 to venet0.

Jeff
 
Back
Top