/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! /* ALSO: Don't quote this header. It makes you look lame :-) */ Paul Hendryx wrote: > Is there a way to do the following: I am on a cable modem with 1 single ip. > Is there a way for me to setup ipmasq to send www.domain1.com (port 80 only) > to hostA on the internal network, and send www.domain2.com traffic (port 80 > only) to hostB on the internal network? Basicly, my problem is, I want to > send 1 domain to a Windows 2000 Server and send the other domain to a Linux > server. I have read the IPMASQ and havent found what Im looking for (almost > found it with traffic load balancing, but not quite). ipmasqadm can do this but you need multiple addresses on the same network. e.g. # ... setup both addresses on the masquerading interface ... ipmasqadm -a -P tcp -L $domain1 80 -R $hostA 80 ipmasqadm -a -P tcp -L $domain2 80 -R $hostB 80 where: $domain1 = ip address of www.domain1.com $domain2 = ip address of www.domain2.com $hostA = ip address of hostA $hostB = ip address of hostB note that the reply packets will all look like they came from the ip address of the default route. if you need the reply packets to look like they came from the original destination address, you'll need to turn on policy routing in the kernel and get iproute2. with it, you can specify policy routing rules that rewrite the source address of appropriate reply packets to the original destination address. raf _______________________________________________ Masq maillist - [EMAIL PROTECTED] Admin requests can be handled at http://www.indyramp.com/masq-list/ -- THIS INCLUDES UNSUBSCRIBING! or email to [EMAIL PROTECTED] PLEASE read the HOWTO and search the archives before posting. You can start your search at http://www.indyramp.com/masq/ Please keep general linux/unix/pc/internet questions off the list.
