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

can iptables distinguish difference between domains?



good day list!


we have limited public IPs and we're trying to run as
many web servers behind 1 public IP as we can.

now re iptables capability. can it distinguish the
difference between destinations like, e.g.,
deb1.debian.org and deb2.debian.org even if both
domains resolve to the same public ip address?

that is, will the ff 2 iptables directives be able to
correctly send deb1 requests to the first private box,
and deb2 requests, to the other private box?

# iptables -t nat -I PREROUTING -i eth_ext -p tcp
--dport 80 -d deb1.debian.org -j DNAT --to 172.16.1.1

# iptables -t nat -I PREROUTING -i eth_ext -p tcp
--dport 80 -d deb2.debian.org -j DNAT --to 172.16.1.2


many thanks!
sh


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Reply to: