How to block all outgooing traffic and specific program?

Issues related to configuring your network
Post Reply
CNoob
Posts: 28
Joined: 2018/03/17 15:43:08

How to block all outgooing traffic and specific program?

Post by CNoob » 2018/03/17 15:50:35

i am new on Linux and have few questions.
How can i block all outgoing traffic to the internet? Only specific programs like Firefox should be able to go in the internet.

and....
is this possible with the gui firewall-config? Or with any other Tools?

Thank you...
Last edited by CNoob on 2018/03/21 11:36:28, edited 1 time in total.

CNoob
Posts: 28
Joined: 2018/03/17 15:43:08

How to prevent specific applications to access the internet?

Post by CNoob » 2018/03/18 13:43:02

How to prevent specific applications to access the internet?

CNoob
Posts: 28
Joined: 2018/03/17 15:43:08

Re: How to block all outgooing traffic and specific program?

Post by CNoob » 2018/03/18 13:44:13

i need something like the Douane firewall http://douaneapp.com/

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to block all outgooing traffic and specific program?

Post by TrevorH » 2018/03/18 14:23:49

Merged your duplicate topic, please don't post the same question in different places.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: How to block all outgooing traffic and specific program?

Post by jlehtone » 2018/03/19 18:03:21

It might be that you have to venture into SELinux:
http://blog.siphos.be/2015/08/filtering ... plication/

CNoob
Posts: 28
Joined: 2018/03/17 15:43:08

Re: How to block all outgooing traffic and specific program?

Post by CNoob » 2018/03/21 11:35:05

Thank you but it seem to complicated for me as Linux noob.. Is there no other way to block Traffic by program?

Why is this not working:

Code: Select all

iptables -A OUTPUT -m owner --cmd-owner "firefox-bin" -j ACCEPT
Do i need another Kernel?

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: How to block all outgooing traffic and specific program?

Post by jlehtone » 2018/03/21 15:59:33

A more interesting question is: Have you asked an XY problem?
http://xyproblem.info/

CNoob
Posts: 28
Joined: 2018/03/17 15:43:08

Re: How to block all outgooing traffic and specific program?

Post by CNoob » 2018/03/21 16:16:12

you are right.
Close this. this was the wrong way to solve my problem. I open a new post to explain my goal.

Thank you!

Post Reply