create iptables rule per process/service

前端 未结 5 1906
挽巷
挽巷 2021-01-31 09:58

is it possible to use iptables in order to permit traffic initiated by a \"process\", ie using the process name? I would like for example to allow everything that is initiated b

5条回答
  •  悲&欢浪女
    2021-01-31 10:39

    It looks like the owner iptables module is that what you want. First, check if it's available in Your system:

    iptables -m owner --help
    

    You can read more here: http://www.frozentux.net/iptables-tutorial/iptables-tutorial.html#OWNERMATCH

提交回复
热议问题