LoginSignup
6
7

More than 5 years have passed since last update.

特定のプロセスでパケットの受信はするが送信はブロックする方法

Posted at

iptables にプロセス ID を指定してパケットを破棄させます。

iptables -A OUTPUT -p tcp -m owner --pid-owner PROCESS_ID -j DROP

PROCESS_ID には pgrep hoge とかで取得したプロセス ID を指定。

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7