1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ifpw Process ID

Discussion in 'Firewalls' started by kalman84, Oct 27, 2010.

  1. kalman84

    kalman84 New Member

    Messages:
    5
    Likes Received:
    0
    Hello,

    I'm quite new to IPFW. I'd only like to know if it's possible to apply rules on the basis of the process ID (not user). I mean, how can I filter for example Skype packets?

    I saw the "user ID" option but a "process ID" seems to not exist.

    Thanks in advance for your availability.
     
  2. phoenix

    phoenix Moderator Staff Member Moderator

    Messages:
    3,407
    Likes Received:
    1
    Create a "skype" user, and run Skype as that user (via wrapper script using su() or [pman]sudo[/pman])?
     
  3. kalman84

    kalman84 New Member

    Messages:
    5
    Likes Received:
    0
    Thank you!

    But I should create at least as many users as the number of Netrwork interfaces and then running each program as the user that corresponds to the selected interface.
    Ok I know I'm not going to have like 100 different interfaces... but anyways is a quite... raw approach (forgive me the term, i think it's a very good idea I'm only looking for something more scalable).

    Thanks a lot!
     
  4. DutchDaemon

    DutchDaemon Administrator Staff Member Administrator Moderator

    Messages:
    10,661
    Likes Received:
    22
    Does IPFW handle group IDs as well?
     
  5. phoenix

    phoenix Moderator Staff Member Moderator

    Messages:
    3,407
    Likes Received:
    1
    Yes, it does. UID and GID. Good call.