Iptables, вызывающий ssh для остановки?

Также опасайтесь любого стороннего программного обеспечения, которое, возможно, было записано учитывая, что нет никаких пробелов.

0
задан 21 August 2012 в 19:53
4 ответа

Попытайтесь работать iptables -L -n (добавьте-n опцию). Определение имен может заставить iptables-L зависать.

2
ответ дан 4 December 2019 в 13:10

У Вас есть iptable правило позволить установленный трафик через?

iptables -A OUTPUT -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT

Я также видел эту проблему из-за расщепленного горизонта в сети, но это не походит на Вашу проблему из-за проблемы, уходящей при удалении iptable правил

0
ответ дан 4 December 2019 в 13:10

Вы блокируете ICMP полностью? Если так, Вы, возможно, создали черную дыру PMTU.

1
ответ дан 4 December 2019 в 13:10

This could be an MTU black-hole problem.

MTU is maximum transmission unit; how large a packet each side can handle. Ethernet defaults to 1500 bytes but that is by far not the only possibility.

short commands work because they're below both MTU sizes. Longer ones don't because they aren't.

If both ends of the connection are not using the same MTU, or if the network in the middle has a smaller MTU, your systems will need to figure this out somehow; the process is called Path MTU Discovery.

The way this happens is with ICMP messages. If you're blocking all ICMP, well, you're blocking useful stuff.

More info here: Why not block ICMP?

Also note that if the small-MTU network in the middle is layer 2 (e.g., the bridges you've configured), path MTU discovery won't work; the packets will just be dropped and show up as errors on the switch/bridge and/or on the ethernet interfaces.

0
ответ дан 4 December 2019 в 13:10

Теги

Похожие вопросы