How to connect an OpenVPN via SSH tunnel in Egypt

Posted on 25. August 2025 Comments

This obviously should work in more countries (not just Egypt) that censor the internet / VPNs. You might have to do some of the steps (e.g. VPS setup) before you arrive.

  1. Set up a VPS server somewhere (e.g. DigitalOcean)
  2. Install OpenVPN (sudo apt install openvpn)
  3. Copy .ovpn file over to VPS
  4. openvpn --config /path/to/file.ovpn --daemon
  5. On your machine: ssh -D 8080 -f user@vps
  6. Set global proxy to localhost:8080
    • e.g. on MacOS: networksetup -setsocksfirewallproxy Wi-Fi localhost 8080

Now all your network traffic is gonna be routed through the VPS via an SSH Tunnel. So instead of using the VPN connection from the local machine, you can use it via the VPS.

Comments

  1. Hach, diese Anleitung! Ein SSH-Tunnel als Proxy zu nutzen, das ist so… klassisch Tech-Gerilla. Mal schauen, ob das wirklich alles so fliegt, wie beschrieben. Set global proxy to localhost:8080 – da wird einem ja direkt das Wasser nach dem Kopf geschlagen, oder? Wird mein Kaffee dann auch über den VPS ziehen? Klingt spannend, aber vielleicht doch etwas zu komplex für den heilen Mann. Mal schauen, ob das wirklich so einfach klappt wie gedacht.act two ia

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Diese Seite verwendet Akismet, um Spam zu reduzieren. Erfahre, wie deine Kommentardaten verarbeitet werden..