How Do I Setup Port Forwarding in Linux?
Contents

How do I manually set port forwarding?

Set Up Port Forwarding

  1. Log in to the router as admin. …
  2. Locate the port forwarding options. …
  3. Type the port number or port range that you want to forward. …
  4. Choose a protocol, either TCP or UDP. …
  5. Type the static IP address you chose. …
  6. Enable the port forwarding rule with an Enable or On option.

11 сент. 2020 г.

How do I redirect a port in Linux?

To redirect the port:

  1. Redirect the port 80 to port 88 for TCP traffic: ~]# firewall-cmd –add-forward-port=port=80:proto=tcp:toport=88.
  2. Make the new settings persistent: ~]# firewall-cmd –runtime-to-permanent.
  3. Check that the port is redirected: ~]# firewall-cmd –list-all.
Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest