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.

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.

Routing and Remote access

4. Right Click in “Routing and Remote Access” and click Properties.

5. Choose automatic to enable this service.

Enable routing and remote access

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.

Incoming search terms:

Written by Vishnu Valentino. rss twitter facebook

Founder of 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

3 Responsesto “How To Set Up Port Forwarding in Linux and Windows”

  1. bhushan says:

    awesome  man… thanks for that

  2. X says:

    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 says:

      #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.hacking-tutorial.com/download/spi-port-forward-redirection-for-windows-to-another-port-ip-address/

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA Image

*

Notify me of followup comments via e-mail. You can also subscribe without commenting.