LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Port Forwarding w/2 Machines & 1 Switch (https://www.linuxquestions.org/questions/linux-networking-3/port-forwarding-w-2-machines-and-1-switch-151003/)

TastyWheat 02-26-2004 11:02 PM

Port Forwarding w/2 Machines & 1 Switch
 
Okay, I don't know much about the subject, hence I'm asking for help on this. I have a linux box and a windows box behind a 5-port workgroup switch. My linux box has it's own domain name, but my windows machine doesn't (I like to keep it less visible to the world). There are some services used where people need to access my windows machine, but they have to use my ip address. So they don't have to bother remembering my ip address for my windows machine, can I set up port forwarding on my linux machine to send the traffic to my windows machine?

To clarify:
Code:

                                Cable Modem
                                      |
                            --------------------
                            |  5-port Switch  |
                            --------------------
                                /            \
                  ---------------          ---------------
                  |  192.2.2.2  |          |  192.2.2.4  |
                  |  Windows  |          |    Linux    |
                  |    Box    |          |    Box    |
                  ---------------          ---------------

Can I redirect requests for 192.2.2.4:1234 over to 192.2.2.2:1234?

(Those aren't my real IP addresses btw)


All times are GMT -5. The time now is 04:23 AM.