popub

module
v0.0.0-...-a96c877 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2021 License: GPL-3.0

README

Popub

Publish a service from localhost onto your server.

Scenario

If you have a web service, a game service, an SSH service, a VNC service, or any TCP service at your home computer. Your home computer is behind NAT and don't have a public and static IP address, but you want your friends to connect to your service.

If you operate another computer or server, which has a public or static IP address, you can run Popub there, to relay the data between your home computer and your friends, so that your service is made public accessible.

Building

Download the source code, and the latest Go.

On your home computer, type:

cd popub-local
go build

On your server machine, type:

cd popub-relay
go build

Running

Assume you have a web service at localhost:80, you want to publish it as my.server.addr:8080, and you want to use my.server.addr:46687 to communicate between your home computer and your server machine.

On your home computer, type:

cd popub-local
./popub-local localhost:80 my.server.addr:46687 SomePassword

On your server machine, type:

cd popub-relay
./popub-relay :46687 :8080 SomePassword

Note: The password is for authorization only, your traffic is not encrypted.

Running as Systemd services

Refer to systemd/README.md for instructions on running as Systemd services.

License

This program is licensed under GPL version 3. See COPYING for details.

See Also

Also please check pofwd, which is a general purpose port forwarder. It is like socat, but handles concurrency.

Directories

Path Synopsis
Popub -- A port forwarding program Copyright (C) 2016 Star Brilliant <m13253@hotmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Popub -- A port forwarding program Copyright (C) 2016 Star Brilliant <m13253@hotmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Popub -- A port forwarding program Copyright (C) 2016 Star Brilliant <m13253@hotmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Popub -- A port forwarding program Copyright (C) 2016 Star Brilliant <m13253@hotmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL