Hello, Add a rule to your incoming chain something like:
ipchains -A input -p tcp -s hostname.net -d you.local.ip 80 -m 100 to set a mark on all packets coming from some hostname to your local webserver ip. Then add an ipmasqadm rule something like: ipmasqadm mfw -A -m 100 -r ip.of.webserver port.of.webserver Andrew On Thu, 3 May 2001, Daniel de los Reyes wrote: > El Thu, May 03, 2001 at 11:45:16AM -0400, [EMAIL PROTECTED] dijo: > -| Using the 2.2 kernel you could use ipchains to mark the packets then use > -| ipmasqadm to forward based on the mark set. > > How would I do something like that? I mean marking the packages > depending on the host-name they come from? > > > -| > -| > -| Andrew > -| > -| On Thu, 3 May 2001, Daniel de los Reyes wrote: > -| > -| > I've put to work portforwarding with a 2.2 kernel and it works > -| > wonderfull. However I want to push it a bit farther and was wondering if > -| > this can be done: > -| > > -| > Using plain port forwarding what you get is calls to port Pa on host A > -| > get forwarded to port Pb on host B. > -| > Now what I need is, depending on the host name that makes demands to Pa > -| > on B the packages get forwarded to a different host/port > -| > > -| > I know there is specific hardware dedicated to this and lot more > -| > (Dispatcher) including load balance and such just wondering if I could > -| > get a Linux machine to do the same > -| > > -| > > -| > -- > -| > ______________________________ > -| > Daniel de los Reyes > -| > S2-Selling Soluciones > -| > Valencia Spain > -| > e-mail: [EMAIL PROTECTED] > -| > Powered by Debian GNU-Linux 2.2r2 > -| > ______________________________ > -| > > -| > > -| > -- > -| > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > -| > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -| > > -| > > -- > ______________________________ > Daniel de los Reyes > S2-Selling Soluciones > Valencia Spain > e-mail: [EMAIL PROTECTED] > Powered by Debian GNU-Linux 2.2r2 > ______________________________ >