All of lore.kernel.org
 help / color / mirror / Atom feed
* Port-forwarding Perfomance
@ 2005-02-24  1:33 Rudi Starcevic
  2005-02-23 10:56 ` Jose Maria Lopez Hernandez
  0 siblings, 1 reply; 10+ messages in thread
From: Rudi Starcevic @ 2005-02-24  1:33 UTC (permalink / raw)
  To: netfilter

Hi,

I have www port-forwarding setup and running OK.

However I wonder if they way I have configured it is not the most 
optimal for speed and performance.

I have a default policy of DROP with a total of about 30 rules.

These rules below do my www port-forwarding, can you see if there is a 
better way to do this ?

# ENABLE FORWARDING / NAT / MASQUERADING
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

# http Port-Forwarding setup
$IPTABLES -t nat -A PREROUTING -i $ETH0 -p tcp --dport 80 -d $MEDIA1_IP 
-j DNAT --to $MEDIA1_LO:80

Many thanks,
Kind regards
Rudi


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



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

end of thread, other threads:[~2005-03-08 11:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-24  1:33 Port-forwarding Perfomance Rudi Starcevic
2005-02-23 10:56 ` Jose Maria Lopez Hernandez
2005-02-24 14:29   ` Rudi Starcevic
2005-02-23 20:56     ` Maxime Ducharme
2005-02-23 21:10     ` Jason Opperisano
2005-02-24 16:09       ` Rudi Starcevic
2005-02-24  0:07         ` R. DuFresne
2005-02-25  0:15       ` Rudi Starcevic
2005-02-24 12:53         ` Daniel
2005-03-08 11:12         ` Andy Furniss

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.