iptables question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good morning,

I have a question about a specific usage of iptables. I need to forward the
incoming web trafic to 2 machines. I know how to forward to one, I use this:
iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j DNAT
--to-destination 192.168.1.93:80

What I want to do is this:

MACHINE1 : IP1
MACHINE2 : IP2

all the trafic that comes to IP1 to the web port must go to the self IP1 and
to the IP2 to the web port.

Do you think this is possible ?

thanks in advance,

ESG
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux