Re: [suse-security] redirect
i was playing around with ipchains and ipmasqadm to forward all traffic coming on my port 80 to www.yahoo.com port 80... i did what is specified below
#!/bin/bash LS=your.external.firewall.ip HTTPD=your.rfc1918.internal.ip ipmasqadm portfw -a -P tcp -L $LS http -R $HTTPD http ipchains -I forward -p tcp -s $HTTPD http -j MASQ
but it didnt work. if i tried to connect to my machine's ip addr, i still ended up on my machine's httpd. what could i be doing wrong? On Fri, 28 Jul 2000, Chris Drauch wrote:
ksemat@wawa.eahd.or.ug wrote:
Hi all, I would like to http requests on port 80 to my firewall machine running ipchains to another machine on my local network with rfc1918 ip and for that machine to be able to respond and send replies back to where they came from. I am running SuSE linux 6.4 kernel 2.2.14 with ipchains and ipmasqadm.
#!/bin/bash LS=your.external.firewall.ip HTTPD=your.rfc1918.internal.ip ipmasqadm portfw -a -P tcp -L $LS http -R $HTTPD http ipchains -I forward -p tcp -s $HTTPD http -j MASQ
-- cdr - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu
Max Gribov wrote:
i was playing around with ipchains and ipmasqadm to forward all traffic coming on my port 80 to www.yahoo.com port 80... i did what is specified below
#!/bin/bash LS=your.external.firewall.ip HTTPD=your.rfc1918.internal.ip ipmasqadm portfw -a -P tcp -L $LS http -R $HTTPD http ipchains -I forward -p tcp -s $HTTPD http -j MASQ
but it didnt work. if i tried to connect to my machine's ip addr, i still ended up on my machine's httpd. what could i be doing wrong?
Please show us the output of # ipchains -L|grep http and # ipmasqadm portfw -l|grep http Maybe you should try to shutdown your httpd listening on port 80; at least it makes no sense to have it active if you redirect away. -cdr
participants (2)
-
Chris Drauch
-
Max Gribov