LinuxMCE Forums

General => Users => Topic started by: hobbes487 on September 25, 2007, 07:12:19 am

Title: Port Forwarding
Post by: hobbes487 on September 25, 2007, 07:12:19 am
Can someone please explain to me how to forward ports to other computers on my network?  I want to be able to access my NAS admin site from outside the network so I set it up to accept port 85.  I am able to access it by going to 192.168.80.235:85 so I know that part works.  Now I went to the firewall settings on the pluto admin site and did the following:

protocol: tcp
source port: 85 to 85
Destination port: 85
Destination IP: 192.168.80.235 (ip of NAS)
Rule Type: port_forward
Limit to IP: [blank]

With these settings I can't access the NAS from outside the network by going to www.myaddress.com:85.  I also tried reloading the router and that didn't work.

Any ideas?


PS:  I am also having trouble with the ports needed for torrentflux installed on the core, but I want to get the NAS ports working first.
Title: Re: Port Forwarding
Post by: jriofrio on September 28, 2007, 05:41:48 pm
Hello hobbes487..

I just want to explain why it does not work the way you set it up...

You have a router at your home, which it has 2 connections, an internal with the 192.xxx.xxx.xxx that is your privite network address and an external IP address which i do not know.

Intenet<---public IP address--->router<-----private IP---->Home PC

Well, when you are outside of your network, you can not see the Private Network (because you use a NAT), the IP address you can see will be you outside IP address (which i will call it public). Only the public IP address is publish and therfore you can see it.

The private IP address is not publish, so you can not see it.

In order to access your router, you need to create A VPN (or telnet) to you Public IP address.

Read about  VPN (virtual private network) connection and you will know what to do.

Good luck
Juan

NOTE: IP address 192.168.xxx.xxx (among other ones) are not public, are reserve to be use for private networks.

Title: Re: Port Forwarding
Post by: colinjones on September 28, 2007, 05:50:07 pm
You don't need a VPN, that's overkill. All you need to do is setup a double NAT (PAT actually) which is the port forwarding being talked about here.

Your Internet broadband router needs the first one forwarding the public IP address on port 85 to port 85 on the IP address of your LMCE external NIC. Then set up a second forward from Pluto to do the same again to the internal LAN - sounds like you have already done this. So you just need to make a 5 min change on your broadband router.
Title: Re: Port Forwarding
Post by: totallymaxed on September 28, 2007, 06:16:04 pm
Can someone please explain to me how to forward ports to other computers on my network?  I want to be able to access my NAS admin site from outside the network so I set it up to accept port 85.  I am able to access it by going to 192.168.80.235:85 so I know that part works.  Now I went to the firewall settings on the pluto admin site and did the following:

protocol: tcp
source port: 85 to 85
Destination port: 85
Destination IP: 192.168.80.235 (ip of NAS)
Rule Type: port_forward
Limit to IP: [blank]

With these settings I can't access the NAS from outside the network by going to www.myaddress.com:85.  I also tried reloading the router and that didn't work.

Any ideas?


PS:  I am also having trouble with the ports needed for torrentflux installed on the core, but I want to get the NAS ports working first.


Hi the missing part is that you need to allow port 85 through the firewall on your externally facing router. That should do the trick.
Title: Re: Port Forwarding
Post by: teedge77 on September 28, 2007, 06:21:15 pm
its exactly like colin and totallymaxed said...it needs to go like this


www.myaddress.com goes to-->external wan ip on broadband router-->external ip on linuxmce-->internal ip on linuxmce-->ends at webadmin


make sure port 85 is open through your router and the linuxmce firewall if its on.

please correct me if this is wrong or doesnt display it accurately.