TCP: нет, ортогонально оно к TCP/UDP. наоборот, при попытке обратиться по tcp, сразу возвращает ошибку.
а его никто не запрещает. вот как оно у меня выглядит:
Код:
root@gw4:~ # iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp dpt:ident reject-with tcp-reset
REJECT tcp -- anywhere anywhere tcp dpt:ident reject-with tcp-reset
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
Chain FORWARD (policy DROP)
target prot opt source destination
CONNMARK all -- anywhere anywhere ipp2p v0.8.2-pomng --ipp2p CONNMARK xset 0x1e/0xffffffff
<тут много пробросов портов вовнутрь; 53-й не пробрасывается ибо не надо его внутри без маскарада>
DROP all -- anywhere anywhere state INVALID,NEW
DROP all -- anywhere anywhere state INVALID,NEW
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere state NEW
DROP tcp -- anywhere anywhere multiport dports epmap,netbios-ns:netbios-ssn,microsoft-ds
DROP udp -- anywhere anywhere multiport dports epmap,netbios-ns:netbios-ssn,microsoft-ds
MINIUPNPD all -- anywhere anywhere
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
Chain MINIUPNPD (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere vvdm tcp dpt:6754
ACCEPT udp -- anywhere vvdm udp dpt:6881
собственно, как можно судить по INPUT-у, тут больше разрешается, чем запрещается.