From: "Karina Gómez Salgado" <kgs@acabtu.com.mx>
To: netfilter@lists.samba.org
Subject: Slow performance - Trouble with IPtables rules
Date: Wed, 03 Jul 2002 13:41:09 -0500 [thread overview]
Message-ID: <3D234545.D34413B9@acabtu.com.mx> (raw)
Hi,
I'm trying to setting up a Linux Computer as my LAN gateway to
Internet. Later, i will use this computer like a squid-proxy, but by
now, it should only forward packets in and out of my LAN without
masquerading (i will use my class C segment), and that's it.
I took the rc.firewalls rules as a base for create gateway and it works,
but even if i only have one computer connected to the gateway the
internet access is a little slow . The internet access in the linux pc
is fast but in the other one(s) connected is not that fast, when i try
to check a web page it takes a moment to process and later when it
displays the website, and the images can take long time to show.
The rules i'm using are these:
--------------------------------
#!/bin/sh
#
echo -e "\n Loading Firewalling Rules \n"
IPTABLES=/sbin/iptables
UNIVERSE="0.0.0.0/0"
INTIF="eth1"
EXTIF="eth0"
echo " Enabling forwarding.. "
echo "1" > /proc/sys/net/ipv4/ip_forward
echo " Clearing existing rules... "
$IPTABLES -P INPUT DROP
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT DROP
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -F -t nat
$IPTABLES -X
$IPTABLES -Z
$IPTABLES -A INPUT -s $UNIVERSE -d $UNIVERSE -j ACCEPT -v
$IPTABLES -A OUTPUT -s $UNIVERSE -d $UNIVERSE -j ACCEPT -v
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -j ACCEPT -v
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT -v
This settings are enough ? Do i need somethig more ?
I'll appreciate a lot any help,
Karina
next reply other threads:[~2002-07-03 18:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-03 18:41 Karina Gómez Salgado [this message]
2002-07-03 19:00 ` Slow performance - Trouble with IPtables rules Ramin Alidousti
2002-07-03 21:49 ` Karina Gómez Salgado
2002-07-03 19:00 ` Antony Stone
2002-07-03 22:01 ` Karina Gómez Salgado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D234545.D34413B9@acabtu.com.mx \
--to=kgs@acabtu.com.mx \
--cc=netfilter@lists.samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.