Skip to content
This script forwards a number of configured local ports to local or remote socket servers.
Python
Branch: master
Clone or download
vinodpandey Merge pull request #3 from giraysam/master
update: comment line for config file
Latest commit 31a6ade Mar 29, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore update Mar 30, 2013
README.md removed unnecessary content Feb 20, 2017
port-forward.config update: comment line for config file Mar 6, 2017
port-forward.py update: comment line for config file Mar 6, 2017

README.md

Python Port Forward

This script forwards a number of configured local ports to local or remote socket servers.

Usage:

git clone git@github.com:vinodpandey/python-port-forward.git
cd python-port-forward
# update port-forward.config file
# default port forward is localhost:80 > localhost:8080 (80 localhost 8080)
sudo python port-forward.py

# with default port-forward.config, access: http://localhost/ -> this should now show content from http://localhost:8080/
# you can run a test python http server using below command to check the default configuration
# python -m SimpleHTTPServer 8080

Configuration:

Add to the config file port-forward.config lines with contents as follows:

<local incoming port> <dest hostname> <dest port>

Starting/stopping

Start the application at command line with 'sudo python port-forward.py' and stop the application by keying in <ctrl-c>.

Errors

Error messages are stored in file 'error.log'.
You can’t perform that action at this time.