Results 1 to 6 of 6

Thread: using iptables to track network activity of a specific program

  1. #1
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    using iptables to track network activity of a specific program

    With iptables it is possible to use --uid-owner to filter based on a particular user. Is there something that can filter on a specific application? Or would the only way to monitor an individual app be to launch it in a unique group and use --gid-owner to filter?
    Last edited by Lars Noodén; May 8th, 2013 at 08:29 AM.

  2. #2
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    2,354
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: using iptables to track network activity of a specific program

    Evidently, there used to be a way via "--cmd-owner name", but it got removed because it broke. I think you have to do as you suggested.

    References:
    http://ubuntuforums.org/showthread.php?t=1739672
    http://www.linuxquestions.org/questi...ess-pid-65893/
    https://bugs.launchpad.net/ubuntu/+s...es/+bug/800781
    There seems to be plenty of confusing stuff using search engine terms: iptables "--cmd-owner" removed
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: using iptables to track network activity of a specific program

    Thanks. Also, thinking about it further, if the program is launched under a unique group any child processes it might spawn overtly or covertly will (most likely) also fall under that group.

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    how to mark as solved?

    Now, how, with this new layout, is a thread marked "solved" ?

  5. #5
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: using iptables to track network activity of a specific program


  6. #6
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: using iptables to track network activity of a specific program

    Thanks. I saw instructions like those before but only now figured out that they only work when it is the first post in the thread that gets edited. All set now.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •