LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   IPtables and RH8 with multiple IPs (https://www.linuxquestions.org/questions/red-hat-31/iptables-and-rh8-with-multiple-ips-88417/)

irclord 09-02-2003 10:28 AM

IPtables and RH8 with multiple IPs
 
Hi, I have a few queries, one of which is this main one. I have a broadband ADSL connection, and have been given a block of 8 ip addresses by my provider. assuming these ip numbers are 160 thru 167, that gives me 5 usable addresses, being 161 thru 165, with 166 being my router address. I am getting an internal routing card for my firewall/gateway, which I will of course set to the .166 ip number.
I also have a LAN on this side of the gateweay, with a number of systems on an internal IP range (say 192.168.0.1 thru 254). The gateway with the external card also has an internal NIC (with a LAN address of .1) and is therefore the gateway for all my LAN machines.
My problem is that I would like to set up a routing system using iptables (if thats correct) so that when incoming packets are submitted for any of the ips 161 thru 165, these are then forwarded to different machines on the LAN so, for instance, if a web client request is for .164, I would like that to be sent to internal machine number .3, and so on.
Is there an easy way to configure this, or is it beyond the realms of what can be done?
Thanks for your assistance :)


All times are GMT -5. The time now is 10:52 PM.