Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
各接続の時間を 10 分に制限することで、SMTP サーバーへの接続がハングしないようにしたいと考えています。これは、10 分後に接続が切断されることを意味します。
iptablesで可能ですか?
SMTP ポートがデフォルト (25) の場合は、次のようにします。
iptables -A OUTPUT -p tcp --dport 25 -m state --state RELATED,ESTABLISHED -m limit --limit 10/minute -j DROP