DevOps Buzz
Search…
Bash / Shell
Bitbucket
Distros
Elasticsearch
General
Guidelines / Standards
microk8s
Prometheus
RabbitMQ
VirtualBox
Expose NAT server
Allow external connection to a server under a private network

Test the server

One of the best options is to use a SSH jump host server. For example, you can use serveo.net to test.
In your proxy server, run:
1
/usr/bin/ssh -R 35854:localhost:3128 serveo.net
Copied!
In your client, run:
1
export http_proxy="http://USER:[email protected]:35854"
2
export https_proxy="http://USER:[email protected]:35854"
3
export ftp_proxy="http://USER:[email protected]:35854"
4
export no_proxy="localhost,127.0.0.1,::1"
5
curl http://www.google.com
Copied!

Setup serveo.net as a service

Make sure systemd is installed:
1
apt update
2
apt install systemd
Copied!
Create the service file:
1
nano /etc/systemd/system/serveo-proxy.service
Copied!
With the following content:
1
[Unit]
2
Description=Serveo proxy tunnel
3
After=network-online.target
4
5
[Service]
6
User=root
7
ExecStart=/usr/bin/ssh -R 35854:localhost:3128 serveo.net
8
RestartSec=3
9
Restart=always
10
11
[Install]
12
WantedBy=multi-user.target
Copied!
Start and enable the service:
1
sudo systemctl daemon-reload
2
sudo systemctl enable serveo-proxy.service
3
sudo systemctl start serveo-proxy.service
Copied!