LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I setup Self Port Forwarding on Fedora 13 x64 (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-setup-self-port-forwarding-on-fedora-13-x64-835850/)

omega151x 10-02-2010 06:24 PM

How do I setup Self Port Forwarding on Fedora 13 x64
 


How do I setup Self Port Forwarding on Fedora 13 x64 :confused:

How Port Forwarding Works

Port forwarding allows access to a local area network by a remote user through forwarding ports that provide ftp access and web server access. The operating systems use a kernel or ipfirewall to carry out the port forwarding process.

There are several different ways that port forwarding is accomplished.

* Self Forwarding:
---------------
Self forwarding is port forwarding that is accomplished on a local area network that has multiple computers connected to the network. Since all of the computers share the same IP address, the port forwarding must be conducted within each computer on its own system. If the local area network router has a network access translator then the computers that are connected to the router must also do port forwarding within their own system.

* Unix System Port Forwarding:
---------------------------
Port forwarding can be accomplished with Unix systems however the port can only be accessed by the root administrator. This is a less common method of port forwarding due to the fact that using a root administrator poses risks to the system because the users will often take a detour to a higher port number to gain faster access to the server.

* Double Port Forwarding:
----------------------
Double port forwarding involves the use of multiple routers that join computers on a local area network. As a result, the ports on one router are forwarded to another router that acts as a gateway. The gateway router then forwards to a host on the local area network (LAN).

* Reverse Port Forwarding:
-----------------------
This type of port forwarding involves the communication of several components which include the session server, session client, and session port. When the user establishes a connection the session server will connect to one of the session ports that are to be forwarded which will in turn, forward the port to the session client. Reverse port forwarding is used when access is required to a port that is protected behind a firewall.

While port forwarding is convenient, there are a few things to be aware of when using this type of technology. If you use port forwarding only one port can be used at a time and the machine that is receiving the port forwarding can only view the information as coming from the router instead of the original machine. Additionally, port forwarding can open up network access to other machines that may be able to find the port forwarding by gaining unauthorized access.


I know how to setup port forwarding in my router along with Dyndns.org free ED, but my local area network has multiple computers connected to the network on my router. All of the computers share the same external (public) dynamic IP address; when I setup port forwarding only my Web Server can access the internet, so how do I setup Self Port Forwarding on Fedora 13 x64 :confused:


Some of the Ports I want to forward
=======================
FTP TCP - 20,21
SSH TCP/UDP - 22
TelNet TCP - 23
SMTP TCP - 25
HTTP TCP - 80
HTTPs TCP - 443


Example: If I have 4 PCs with internal IP address
=================
192.xxx.xxx.1 <--------------------- My Router

192.xxx.xxx.2
192.xxx.xxx.3 <--------------- My Web Server static internal IP addresses set for NIC
192.xxx.xxx.4
192.xxx.xxx.5

http://www.whatismyip.com/
78.xxx.xxx.118 <------------------------- My external (public) dynamic IP address


How do I setup Self Port Forwarding on Fedora 13 x64 :confused:


Thanks in advanced
:D

HasC 10-02-2010 07:34 PM

I'm not sure if I understood your text... :scratch:

What do you want to accomplish? You want your internal web server to be reachable from the Internet? That's port forwarding/DNAT. You want all your LAN hosts to be able to reach the Internet? That's masquerading/SNAT

omega151x 10-03-2010 03:57 PM

I want to allow all PCs to connect to the internet while I enable port forward in my router for my Web Server; I know you can only Port Forward to one IP.

When I setup port forwarding with the ports listed below for my Web Server in my Router + Dyndns.org free; only my Web Server can access the internet.
---------------------------------
FTP TCP - 20,21
SSH TCP/UDP - 22
TelNet TCP - 23
SMTP TCP - 25
HTTP TCP - 80
HTTPs TCP - 443

I read somewhere you can setup Self Port Forwarding:
Self forwarding is port forwarding that is accomplished on a local area network that has multiple computers connected to the network. Since all of the computers share the same IP address, the port forwarding must be conducted within each computer on its own system.

I have seen port forwarding apps but I don't know how they work if your using a Router(note: this is for a home web server setup).

rkski 10-03-2010 04:09 PM

As the previous poster mentioned, what you want is masquerading.

omega151x 10-03-2010 06:21 PM

Thanks HasC & rkski for setting me on the right track; :newbie: I guest the site I got that info from about Self Port Forwarding was wrong.


All times are GMT -5. The time now is 01:57 AM.