From: Chris Garringer <chris.garringer@tic.toshiba.com>
To: Netfilter List <netfilter@lists.netfilter.org>
Subject: Iptables on Redhat 7.3
Date: 20 Mar 2003 09:21:09 -0600 [thread overview]
Message-ID: <1048173669.1320.17.camel@bordercollie> (raw)
I am implementing iptables on 2 Redhat 7.3 boxes, one a WEB server and
one a FTP server. Both are running the latest Redhat kernel for
7.3,Linux version 2.4.18-27.7.xsmp. Both are dual processor boxes. I
setup iptables by adding rules to the INPUT chain (single NIC, no
routing) to accept the connections I wanted, and had a log rule at the
end to see what made it past the accepts. Once I was not getting any
logs I assumed I had written the rules to accept all connections I
wanted and put a DROP policy in effect for INPUT. For the WEB server it
worked, for a while. For the FTP server as soon as I changed the policy
iptables --list got REALLY slow. There are only 10-12 rules, iptables
--list took 10-15 seconds per line to list them. Also some connections
were refused, but not logged (the log rule is still there). Changing
the policy to accept fixed the problem. After a reboot the ftp server
is working with policy DROP, but after a reboot to update the WEB server
last night (with policy DROP) sendmail stopped working. There is
nothing in the logs from iptables about packets getting past the ACCEPT
rules for sendmail, but the connection is not made (sendmail 8.11.6).
Sendmail is in queue mode and should make only outgoing connections
which have no rules and an ACCEPT policy. When I change the INPUT
policy back to ACCEPT sendmail starts sending mail to the relay host.
What is going on here? Is changing the policy to DROP not a good way to
do this? This is frustrating as the logs seem to show everything OK,
but the policy change causes problems.
--
Chris D. Garringer
Toshiba International
LAN/WAN Supervisor
713-466-0277 x3756
Certified Solaris Administrator
Microsoft Certified Engineer (NT)
RedHat Certified Engineer
next reply other threads:[~2003-03-20 15:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-20 15:21 Chris Garringer [this message]
2003-03-20 17:32 ` Iptables on Redhat 7.3 Joel Newkirk
2003-03-20 17:37 ` Chris Garringer
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=1048173669.1320.17.camel@bordercollie \
--to=chris.garringer@tic.toshiba.com \
--cc=netfilter@lists.netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox