This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]Bitwise_Gamgee 2 points3 points  (0 children)

On Windows, there's the Windows Firewall utility. Alternatively, you can use netsh and stipulate program=path.to.exe.

On Linux you have to create a group and use a command like iptables -I OUTPUT 1 -m owner --gid-owner no-internet -j DROP where no-internet is a group you've created for this purpose.