Code Monkey home page Code Monkey logo

ovpn-port-forward's Introduction

ovpn-port-forward

Purpose

I often find myself in the situation where I would like to forward a tcp or udp port to my device, but I am not in control of the wifi network I am currently connected to. Usually, the process for forwarding a port to your device involves reconfiguring the gateway of the network you're currently connected to. This becomes unfeasible if you're not in control of that network.

Sometimes I want to spin up a quick, short-lived minecraft server so that I can get online with my friends. Sometimes times I want to test an API callback to a web service running on my local machine. Sometimes I want to transfer a large file over the internet, and the best solution is to just host a temporary web server. These all require port forwarding.

When I'm at college, or at a hotel, or at a friend's house, I do not have control of the network I am currently connected to. This makes traditional port forwarding impossible, since I cannot configure the network gateway.

Solution

My solution is to rent a cheap server instance and host an OpenVPN server, then configure that server to forward traffic to a specific client. I've found that an AWS EC2 t2.micro instance running on the free tier is the cheapest option (it's free!), but I've also had this working on a DigitalOcean droplet using promotional credit.

Instructions

I've written up the full instructions in a separate document.

ovpn-port-forward's People

Contributors

lost1227 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

davidfrosty0001

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.