Is there a way to block certain programs from being able to connect to the internet in Debian (a firewall blocking outgoing connections), so for example, to block a windows program running in wine from being able to call home?
|
One of the easier ways would be to run the WINE program as a different user and set up netfilter to drop packets from that user. Eg, where "wineusername" is your Wine user and em1 is your network interface:
|
|||
|
|
|
You could use Linux containers to create an environment with no network interfaces. For example, if I create a configuration file like this:
And then start a shell like this:
I will find that within this shell there are no network devices available other than
Note that you must be root in order to run There is also apparently a |
|||
|
|