Linux Netfilter discussions
 help / color / mirror / Atom feed
* HTTP Port-forwarding
@ 2005-03-01  1:09 Rudi Starcevic
  2005-03-01  3:18 ` Jason Opperisano
  0 siblings, 1 reply; 2+ messages in thread
From: Rudi Starcevic @ 2005-03-01  1:09 UTC (permalink / raw)
  To: netfilter

Hi,

I have these rules below to enable:

a) http port-forwarding in requests
b) masquerading rules for http replies.

It does seem to work OK but is very slow. After hours of looking I think
the problem as to why it is so slow may be in my Iptables rules.

Can you see a double up or something that may cause a problem ?
Or would you say it all looks fine and my problem is elsewhere ?

Thank you ..

$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP
$IPTABLES -P FORWARD DROP

# http requests:
# Port-Forwarding setup
$IPTABLES -t nat -A PREROUTING -i $ETH0 -p tcp --dport 80 -d 
66.xxx.xx.100 -j DNAT --to 192.168.0.10:80

# http replies:
# ENABLE NAT
echo "1" > /proc/sys/net/ipv4/ip_forward

# NAT Forwarding Setup
$IPTABLES --table nat --append POSTROUTING --out-interface $ETH0 -j 
MASQUERADE
$IPTABLES -A FORWARD -i $ETH1 -j ACCEPT
$IPTABLES -A FORWARD -i $ETH0 -j ACCEPT
$IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27/02/2005



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: HTTP Port-forwarding
  2005-03-01  1:09 HTTP Port-forwarding Rudi Starcevic
@ 2005-03-01  3:18 ` Jason Opperisano
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Opperisano @ 2005-03-01  3:18 UTC (permalink / raw)
  To: netfilter

On Mon, 2005-02-28 at 20:09, Rudi Starcevic wrote:
> Hi,
> 
> I have these rules below to enable:
> 
> a) http port-forwarding in requests
> b) masquerading rules for http replies.
> 
> It does seem to work OK but is very slow. After hours of looking I think
> the problem as to why it is so slow may be in my Iptables rules.
> 
> Can you see a double up or something that may cause a problem ?
> Or would you say it all looks fine and my problem is elsewhere ?
> 
> Thank you ..
> 
> $IPTABLES -P INPUT DROP
> $IPTABLES -P OUTPUT DROP
> $IPTABLES -P FORWARD DROP
> 
> # http requests:
> # Port-Forwarding setup
> $IPTABLES -t nat -A PREROUTING -i $ETH0 -p tcp --dport 80 -d 
> 66.xxx.xx.100 -j DNAT --to 192.168.0.10:80
> 
> # http replies:
> # ENABLE NAT
> echo "1" > /proc/sys/net/ipv4/ip_forward
> 
> # NAT Forwarding Setup
> $IPTABLES --table nat --append POSTROUTING --out-interface $ETH0 -j 
> MASQUERADE
> $IPTABLES -A FORWARD -i $ETH1 -j ACCEPT
> $IPTABLES -A FORWARD -i $ETH0 -j ACCEPT
> $IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

you're basically not running a firewall at all--i would look elsewhere. 
the usual suspects:

* DNS resolution timing out
* Network interface speed/duplex mismatches

-j

--
"Another day, another box of stolen pens."
	--The Simpsons



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-01  3:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-01  1:09 HTTP Port-forwarding Rudi Starcevic
2005-03-01  3:18 ` Jason Opperisano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox