From: Sven Schuster <schuster.sven@gmx.de>
To: netfilter@lists.netfilter.org
Cc: david@atd.es
Subject: Re: mail relay
Date: Thu, 20 Mar 2003 17:00:36 +0100 [thread overview]
Message-ID: <3E79E5A4.50701@gmx.de> (raw)
In-Reply-To: OFF04453C4.ECF4132D-ONC1256CEF.00548382-C1256CEF.00543F77@LocalDomain
david@atd.es wrote:
>
> Hi everybody,
> I would like to know how can I filter the mail relay received in my
> port 25 with the firewall,.. I want only accept the packets from only
> one ip, my ISP.
> This is possible this rule with iptables ??
If your mailserver is on the firewall itself, you should give this one a
try (this is very
basic, one would usually add some more rules, set default policy to
drop, then even
this rule wouldn't be right anymore):
iptables -A INPUT -p tcp --dport 25 -s ! 1.2.3.4 -j REJECT --reject-with
tcp-reset
Sven
prev parent reply other threads:[~2003-03-20 16:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OFF04453C4.ECF4132D-ONC1256CEF.00548382-C1256CEF.00543F77@LocalDo main>
[not found] ` <OFF04453C4.ECF4132D-ONC1256CEF.00548382-C1256CEF.00543F77@LocalDomain>
2003-03-20 15:33 ` mail relay Andreas Czerniak
2003-03-20 15:39 ` Rob Sterenborg
2003-03-20 16:00 ` Sven Schuster [this message]
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=3E79E5A4.50701@gmx.de \
--to=schuster.sven@gmx.de \
--cc=david@atd.es \
--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