$ cd /home/Lu/

Keep-learning Lu

04 Dec 2020

Redirect Ports on Rapid.Space VPS

Configuring Network Address Translation (NAT) is a useful way to network virtual machines in a desktop environment (particularly, when using wireless networking). A NAT network will allow your guests to fully access the network, allow networking between your host and guests, but prevent the guests from being directly visible on the physical network.

From Documentation/Networking/NAT

Every Rapid.Space machine(VPS) has 2 interfaces connected to the internet: ens3 and ens4.

  • ens3 can be described as an ethernet interface in the machine. Without further configuration, it is connected to the internet, which uses a IPv4 address.
  • ens4 is the interface connected to IPv6, requiring some interface configuration to activate the IPv6 address on the machine.

We can share some ports from ens3, so the machine can be reached via the certain ports, such as 22 for ssh, 443 for HTTPS, 80 for HTTP .

By the way, nc command is interesting.

Here is a sketch from my colleague, Thomas

RS-Redirect-port-page-1.png

comments powered by Disqus