afanasev.p пишет:Вывод команд iptables -nvL --line-numbers && iptables -nvL --line-numbers -t nat && netstat -lnp был бы интереснее. Мб всё таки есть правила, разрешающие dhcp?
$iptables -nvL --line-numbers && iptables -nvL --line-numbers -t nat && netstat -lnp
Chain INPUT (policy DROP 81 packets, 11507 bytes)
num pkts bytes target prot opt in out source destination
1 1929 4020K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
2 155 10652 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
3 1 48 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
4 1 60 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
5 61 5550 ACCEPT udp -- * * 192.168.0.0/24 0.0.0.0/0 udp dpt:137 state NEW
6 28 6344 ACCEPT udp -- * * 192.168.0.0/24 0.0.0.0/0 udp dpt:138 state NEW
7 4 192 ACCEPT tcp -- * * 192.168.0.0/24 0.0.0.0/0 tcp dpt:139 state NEW
8 4 192 ACCEPT tcp -- * * 192.168.0.0/24 0.0.0.0/0 tcp dpt:445 state NEW
9 0 0 ACCEPT tcp -- * * 192.168.0.0/24 0.0.0.0/0 tcp dpt:901
10 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:20
11 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:21
12 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpts:64000:65535
Chain FORWARD (policy DROP 0 packets, 0 bytes)
num pkts bytes target prot opt in out source destination
1 1697 317K ACCEPT all -- eth1 eth0 192.168.0.0/24 0.0.0.0/0
2 1727 992K ACCEPT all -- eth0 eth1 0.0.0.0/0 192.168.0.0/24
Chain OUTPUT (policy ACCEPT 2257 packets, 4115K bytes)
num pkts bytes target prot opt in out source destination
Chain RH-Firewall-1-INPUT (0 references)
num pkts bytes target prot opt in out source destination
Chain PREROUTING (policy ACCEPT 186 packets, 10853 bytes)
num pkts bytes target prot opt in out source destination
1 1 48 REDIRECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:1022 redir ports 22
2 0 0 REDIRECT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 redir ports 1022
Chain POSTROUTING (policy ACCEPT 227 packets, 17146 bytes)
num pkts bytes target prot opt in out source destination
1 164 7923 SNAT all -- * eth0 192.168.0.0/24 0.0.0.0/0 to:82.144.201.71
Chain OUTPUT (policy ACCEPT 227 packets, 17146 bytes)
num pkts bytes target prot opt in out source destination
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN 2532/./hpiod
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN 2572/xinetd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 2757/smbd
tcp 0 0 0.0.0.0:45967 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2269/portmap
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2663/vsftpd
tcp 0 0 0.0.0.0:693 0.0.0.0:* LISTEN 2634/rpc.mountd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2550/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2559/cupsd
tcp 0 0 0.0.0.0:791 0.0.0.0:* LISTEN 2305/rpc.statd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2692/sendmail
tcp 0 0 0.0.0.0:665 0.0.0.0:* LISTEN 2605/rpc.rquotad
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 2757/smbd
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 2537/python
tcp 0 0 :::22 :::* LISTEN 2550/sshd
udp 0 0 0.0.0.0:2049 0.0.0.0:* -
udp 0 0 82.144.201.71:137 0.0.0.0:* 2760/nmbd
udp 0 0 192.168.0.101:137 0.0.0.0:* 2760/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 2760/nmbd
udp 0 0 82.144.201.71:138 0.0.0.0:* 2760/nmbd
udp 0 0 192.168.0.101:138 0.0.0.0:* 2760/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 2760/nmbd
udp 0 0 0.0.0.0:785 0.0.0.0:* 2305/rpc.statd
udp 0 0 0.0.0.0:788 0.0.0.0:* 2305/rpc.statd
udp 0 0 0.0.0.0:662 0.0.0.0:* 2605/rpc.rquotad
udp 0 0 0.0.0.0:43046 0.0.0.0:* 2805/avahi-daemon
udp 0 0 0.0.0.0:690 0.0.0.0:* 2634/rpc.mountd
udp 0 0 0.0.0.0:67 0.0.0.0:* 2674/dhcpd
udp 0 0 0.0.0.0:68 0.0.0.0:* 2066/dhclient
udp 0 0 0.0.0.0:50888 0.0.0.0:* -
udp 0 0 0.0.0.0:5353 0.0.0.0:* 2805/avahi-daemon
udp 0 0 0.0.0.0:111 0.0.0.0:* 2269/portmap
udp 0 0 0.0.0.0:631 0.0.0.0:* 2559/cupsd
udp 0 0 :::5353 :::* 2805/avahi-daemon
udp 0 0 :::45564 :::* 2805/avahi-daemon
raw 0 0 0.0.0.0:1 0.0.0.0:* 7 2674/dhcpd
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 5776 1787/iscsid @ISCSIADM_ABSTRACT_NAMESPACE
unix 2 [ ACC ] STREAM LISTENING 9055 2748/xfs /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 9531 2886/gdm-binary /tmp/.gdm_socket
unix 2 [ ACC ] STREAM LISTENING 9581 2920/Xorg /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 9681 2926/gam_server @/tmp/fam-root-
unix 2 [ ACC ] STREAM LISTENING 6272 2181/audispd /var/run/audispd_events
unix 2 [ ACC ] STREAM LISTENING 6784 2355/dbus-daemon /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 9001 2710/gpm /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 6854 2370/sdpd /var/run/sdp
unix 2 [ ACC ] STREAM LISTENING 6937 2427/pcscd /var/run/pcscd.comm
unix 2 [ ACC ] STREAM LISTENING 6962 2437/acpid /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 8371 2559/cupsd /var/run/cups/cups.sock
unix 2 [ ACC ] STREAM LISTENING 5760 1780/iscsiuio @ISCSID_UIP_ABSTRACT_NAMESPACE
unix 2 [ ACC ] STREAM LISTENING 9231 2805/avahi-daemon /var/run/avahi-daemon/socket
unix 2 [ ACC ] STREAM LISTENING 6988 2446/hald @/var/run/hald/dbus-mM3EH45GY4
unix 2 [ ACC ] STREAM LISTENING 6987 2446/hald @/var/run/hald/dbus-kv13tEtfNq