Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

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

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

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

FmtWeisszwerg
C/C++, Python programmer. I've been learning F#, C#, Clojure.
http://foma-zakki.cocolog-nifty.com/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away