tcp
udp
| Common Ports |
| FTP |
21 |
| SSH |
22 |
| Telnet |
23 |
| SMTP |
25 |
| Web |
80 |
| Pop 3 |
110 |
| IMAP |
143 |
| Other Applications |
| Remote Desktop |
3389 |
| PC Anywhere |
5631 |
================================================== =
Ϳ .
iptables
csf
apf
00
================================================== =
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
iptables -I INPUT -p tcp --dport 80-j DROP
iptables 80
================================================== =
IPtables csf apf :
:
:
netstat -npa | grep :252
252
TCP 252 :
:
iptables -A INPUT -p tcp dport 252 -j ACCEPT
UDP
:
iptables -A INPUT -p udp sport 252 -j ACCEPT
:
:
:
service iptables restart
============================================