Schlagwort-Archive: osx

SSH Socks Proxy

  1. Machmal muss ich auf die Schnelle auf einen Service in meinem Heim Netzwerk zugreifen ohne grossen Aufwand, wie z.B Port Forwarding zu konfigurieren. Dafür eignet sich am besten ein Socks Proxy via SSH Tunnel.


  • SSH Server im internen Netzwerk
  • ssh Client


  • schnelle unkomplizierte Konfiguration
  • verschlüsselte Verbindung auch für unsichere Protokolle (http, ftp etc.)
  • Port Forwarding kann “umgangen” werden



Ich zeige die Vorgehensweise auf OSX 10.9. Der SSH Server ist OpenSSH auf einer Synology Diskstation.

SSH Tunnel vom Client zum Server öffnen


Dies öffnet eine SSH Session zu und erstellt einen SOCKS Proxy auf Port 8000.

OSX Konfigurieren

  1. Unter den Netzwerkeinstellungen links die aktive Verbindung auswählen und Weitere Optionen … wählen
  2. Unter Proxies SOCKS Proxy anwählen, als IP eintragen und Port 8000



OSX automatische statische Routen für L2TP/IPSec VPN Tunnel

Um nach dem Aufbau eines L2TP/IPSec Tunnels mittels OSX eingebauter VPN Software automatisch eine statische Route hinzuzufügen bietet Apple folgendes Szenario:

File /etc/ppp/ip-up erstellen mit folgendem Inhalt:

SUBNET ersetzen mit dem Subnet, welches durch den VPN Tunnel geroutet werden soll (z.B

Nun die Rechte des Scripts anpassen (als Root):

Dieses File wird nun jedes Mal ausgeführt, wenn ein VPN Tunnel aufgebaut wird.

Die Route wird automatisch wieder gelöscht, sobald der VPN Tunnel getrennt wird.

Mac OSX 10.7 Clear Phantom NFS Mount

Hinweis auf:


This is a hint about phantom NFS shares that may linger on your system long after you stopped accessing the share, and that may cause slowdowns and errors with various disk utilities. The information here applies to Lion, and may differ in earlier and later versions.

I used to have a NAS device that I named “dns323,” and which was visible in the Finder as an NFS share. (The unit used a Linux-formatted disk.) In the past few months, whenever I used the excellent Yasu system maintenance utility, it would report an error message, saying that the file “dns323” wasn’t found. I eventually realized that this problem started when I stopped using that NAS device. I also noticed that Find Any File was starting very slowly; and when I used Find Any File to see if it could find any trace of “dns323,” it listed the file in its results list, but said that the item had disappeared.

I eventually realized that there was a directory named “dns323” in my user folder, but that directory wasn’t visible in the Finder, even if I made invisible files visible. The directory name was visible in Terminal, but if I tried to cd into it, I got a message saying “Connection refused.” None of the standard Unix commands for deleting a directory had any effect; I typically got a message saying “Resource busy” when I tried.

Eventually, with the help of the experts on the forum on this site, I found that “dns323” was listed in the table of mounts that appeared in Terminal when I entered typed the df command. The dns323 item was listed as “map -static” which, as I understand from other posts, means that it’s a mount that isn’t actually mounted, but which the system has ready for mounting when needed.

After a lot of other effort, I finally discovered what was creating this phantom mount. There was a .plist file in this folder: /var/db/dslocal/nodes/Default/mounts. The .plist file contained a name that was something like (I’m writing that from memory); the name began with the IP address that the share had when I used it.

I didn’t try deleting or moving this plist file while running OS X normally, but I think (on the basis of other postings in other forums about similar files) I could have used sudo rm <filename> to delete it. Instead I booted into single-user mode and moved the file to another location where I could restore it if needed (although I didn’t need it). I then booted normally again, opened Terminal and entered rmdir ~/dns323, which was successful.

After this, Find Any File started working at top speed again, and Yasu stopped reporting an error. If file utilities and directory listings seem sluggish on your system, then it may be worth looking for files that create phantom shares in the directory listed above.