• 25,450
  • +1,014
  • 2,796
How To Set Up Port Forwarding in Linux and Windows

How To Set Up Port Forwarding in Linux and Windows

Bookmark

Port forwarding usually used when we want our computer act like a router. Our computer receive the packet that come inside and then forward it into another destination. Today we will learn How To Set Up Port Forwarding in Linux and Windows

Linux

Change the value in your /proc/sys/net/ipv4/ip_forward from 0 to 1. Or you can do by following the step below:

echo '1' > /proc/sys/net/ipv4/ip_forward

 

Windows XP, Vista, 7

In Windows, the default value for port forwarding is disabled, you should enable it and then start the service. Below is the step by step to enable port forwarding in Windows.

1. Click Run(read here to know the shortcut for RUN),

2. Type services.msc and then click OK,

3. In services windows, scroll down and find "Routing and Remote Access" services. You will find out that this service is disabled by default, you should enable it.

How To Set Up Port Forwarding in Linux and Windows

4. Right Click in "Routing and Remote Access" and click Properties.

5. Choose automatic to enable this service.

How To Set Up Port Forwarding in Linux and Windows

6. When finished, you need to start the service or you can right click and then choose start.

 

Hope this posts is useful for you.

Share this article if you found this post was useful:

Blogger at hacking-tutorial.com. Love PHP, offensive security and web. Contact him at me[-at-]vishnuvalentino.com

See all posts by || Visit Website : http://www.vishnuvalentino.com

  • awesome  man… thanks for that

  • X

    It seems like that this is only for Remote Access.
    What if I want to forward 443 to a irc bouncer?

    Back to searching…

    • v4L

      #X
      you can configure your router to forward packet that come to port 443 to 6667
      http://www.dd-wrt.com/wiki/index.php/Port_Forwarding
      or use this program
      http://www./download/spi-port-forward-redirection-for-windows-to-another-port-ip-address/

  • Gilox

    Hi vishnu,

    first of all i read so many of your tutorials. Its very useful and good explained, want to say thanks for your effort by the way.

    I have one query about port forwarding used in Kali Linux. Does it works with UMTS connection?
    1. I have configured my external ip with No-IP, to keep the current IP.
    2. I typed in command: echo 1 > /proc/sys/net/ipv4/ip_forward

    Is this enough or does I need more.
    Thanks in advance

    • Jade Pearson

      If this is in regards to Ratting i would like to know this solution aswell

  • shaz

    thank you sir for your effort