How to manually uninstall IP tunneling on MacOSX

Description:

  1. Start a Terminal Window (Application -> Utilities)
  2. Become root
  3. Run
    /System/Library/StartupItems/ag_iptd/ag_iptd stop
    It will kill the ag_iptd process and unload the driver from the kernel.

    If that fails kill the ag_iptd process manually and unload the driver:
    ps auxww | grep ag_iptd       # To find the process id
    kill the-processs-id # Replace with the process id
    kextunload /System/Library/Extensions/tap.kext
  4. To remove files and directories that has to do with the IP Tunneling Driver do:
    rm -rf /System/Library/Extensions/tap.kext
    rm -rf /System/Library/StartupItems/ag_iptd
    rm -rf /usr/local/libexec/ag_iptd