Skip to content

Prabesh01/portmap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  • python 3.6 or above

Installation

Install portmap from PIP

pip install git+https://github.com/Prabesh01/portmap.git

Usage

$ portmap 5000
Any requests to 91.208.197.189:3456 will me mapped to port 5000 on this computer.

If you get command not found error, download portmapc.py, and run it:

$ python portmapc.py <port>

Self-hhost:

  • In server, install netmask and start it. Simply run these bash commands:
sudo python3 -m venv /opt/netmask-venv
sudo /opt/netmask-venv/bin/pip install netmask

sudo cat << 'EOF' | sudo tee /etc/systemd/system/netmask.service
[Unit]
Description=Netmask Server
After=network.target

[Service]
Type=simple
ExecStart=/opt/netmask-venv/bin/python3 -c "from netmask.server.main import NetmaskServer; server = NetmaskServer('0', False).start('0.0.0.0', '-', 1024)"
Restart=always
User=root

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable --now netmask
  • in client, fork this repo -> replace your server ip in portmapc.py -> pip install that repo.

About

Ready-to-use TCP network tunneling solution | free ngrok alternative

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages

  • Python 100.0%