我的是公网的IP。。
[root@mail ~]# iptables -L -n
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 8
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:587
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:110
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:995
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:143
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:993
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@mail ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 561/sshd
tcp 0 0 127.0.0.1:24 0.0.0.0:* LISTEN 774/dovecot
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 897/master
tcp 0 0 127.0.0.1:4190 0.0.0.0:* LISTEN 774/dovecot
tcp 0 0 127.0.0.1:7777 0.0.0.0:* LISTEN 1003/python
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 774/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 774/dovecot
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 536/slapd
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 2401/amavisd (maste
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 897/master
tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN 2401/amavisd (maste
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 747/mysqld
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 897/master
tcp 0 0 127.0.0.1:9998 0.0.0.0:* LISTEN 2401/amavisd (maste
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 774/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 774/dovecot
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 933/httpd
tcp 0 0 :::22 :::* LISTEN 561/sshd
tcp 0 0 :::25 :::* LISTEN 897/master
tcp 0 0 :::993 :::* LISTEN 774/dovecot
tcp 0 0 :::995 :::* LISTEN 774/dovecot
tcp 0 0 :::389 :::* LISTEN 536/slapd
tcp 0 0 :::587 :::* LISTEN 897/master
tcp 0 0 :::110 :::* LISTEN 774/dovecot
tcp 0 0 :::143 :::* LISTEN 774/dovecot
[root@mail ~]#