Re: hostname forwarding

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

 



The host A and Host B share the same ip address.
In this case -s is no useful because resolving host a and host b return the same address, and the 1st match win.
You can use APACHE name virtual host to handle this correctly.

G.



Ummm, what is the -s parameter for then?
iptables -t nat -A PREROUTING -p tcp -s <hostname A> --dport 80 -j
REDIRECT --to-destination 192.168.1.1:80
iptables -t nat -A PREROUTING -p tcp -s <hostname B> --dport 80 -j
REDIRECT --to-destination 192.168.1.2:80

Or am I missing something?

Ray




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux