Skip to main content
replaced http://apple.stackexchange.com/ with https://apple.stackexchange.com/
Source Link

Is there a way to run a program on OS X (e.g., from the command line) but without letting it see the network?

I can turn off and disconnect all networking, but then all my other processes will be disconnected, too. I'd like to keep my email, web browser, etc., able to use the network, but this one program isolated.

EDIT: I found this questionthis question which is similar, but it uses a static route when the destination host is known. I want to disable networking for all possible hosts, for this one process.

Is there a way to run a program on OS X (e.g., from the command line) but without letting it see the network?

I can turn off and disconnect all networking, but then all my other processes will be disconnected, too. I'd like to keep my email, web browser, etc., able to use the network, but this one program isolated.

EDIT: I found this question which is similar, but it uses a static route when the destination host is known. I want to disable networking for all possible hosts, for this one process.

Is there a way to run a program on OS X (e.g., from the command line) but without letting it see the network?

I can turn off and disconnect all networking, but then all my other processes will be disconnected, too. I'd like to keep my email, web browser, etc., able to use the network, but this one program isolated.

EDIT: I found this question which is similar, but it uses a static route when the destination host is known. I want to disable networking for all possible hosts, for this one process.

Source Link
Ken
  • 1.8k
  • 2
  • 10
  • 3

Run a program without networking?

Is there a way to run a program on OS X (e.g., from the command line) but without letting it see the network?

I can turn off and disconnect all networking, but then all my other processes will be disconnected, too. I'd like to keep my email, web browser, etc., able to use the network, but this one program isolated.

EDIT: I found this question which is similar, but it uses a static route when the destination host is known. I want to disable networking for all possible hosts, for this one process.