- 论坛徽章:
- 0
|
[root@localhost sbin]# ./iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT esp -- anywhere anywhere
ACCEPT ah -- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdns
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT tcp -- anywhere anywhere tcp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-ns
ACCEPT udp -- anywhere anywhere state NEW udp dpt:netbios-dgm
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:netbios-ssn
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:microsoft-ds
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:telnet
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
[root@localhost sbin]# netstat -ntpal
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address Stat
e PID/Program name
tcp 0 0 0.0.0.0:1005 0.0.0.0:* LISTEN 5063/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 5042/portmap
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 5288/xinetd
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 5288/xinetd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 5276/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 5309/sendmail: acce
tcp 0 166 192.168.130.129:23 192.168.130.1:2005 ESTABLISHED 5940/telnetd
tcp 0 0 192.168.130.129:23 192.168.130.1:2011 ESTABLISHED 5962/telnetd
tcp 0 0 192.168.130.129:23 192.168.130.1:2014 ESTABLISHED 5985/telnetd
tcp 0 0 :::8080 :::* LISTEN 12465/httpd
tcp 0 0 :::22 :::* LISTEN 5265/sshd
如何开放端口呢?
[ 本帖最后由 BlackSnail 于 2009-2-11 15:53 编辑 ] |
|