[SOLVED] Disable network on computer remotely without losing remote control (El Capitan)

Status
Not open for further replies.

mendler

Honorable
Oct 22, 2013
5
0
10,510
Hi,

I have a computer I'm accessing remotely via TeamViewer, a simplified VNC program.

I need to disable the internet momentarily to complete a task, but I want to maintain remote control during the interim period where the internet is disabled. I don't know if this is possible.

Can someone help in this matter? I know how to do this on a Windows 7 Operating system using the integrated firewall, but Mac provides less options and I don't want to block all connections until I know the teamviewer app is safe....something that allows me to selectively give internet connection to one program, but deny access to any other program.

Thanks in advance,

Matt
 
Solution
You may find that this program: http://www.murusfirewall.com/ helps you to have the degree of control over the OS X firewall that you do with Windows. Obviously, you'll want to experiment in a controlled environment before trying this in the field.
You may find that this program: http://www.murusfirewall.com/ helps you to have the degree of control over the OS X firewall that you do with Windows. Obviously, you'll want to experiment in a controlled environment before trying this in the field.
 
Solution
you could try an applescript of sorts. For example,

networksetup -setairportpower en0 off
delay 5
networksetup -setairportpower en0 on

basically, it turns off the wifi, then in 5 seconds, it turns it back on. TeamViewer will lose connection temporarily, but if it is working right, the computer should reconnect.
Also, you have to check whether your WiFi has an identifier of en0. Just go to system information (hold down alt when you click the apple logo in the top left). Then go to Wi-Fi which is under Network, and under Interfaces there will be "en" followed by some number. If it is the WiFi chipset, and it is not "en0", swap out the zero with whatever number you see
 
Status
Not open for further replies.