From: ASHISH <ashishis@gmail.com>
To: Vijay Kumar <vijay@calsoftinc.com>, netfilter@lists.netfilter.org
Subject: Re: Vijay - port 25 to be blocked
Date: Wed, 29 Dec 2004 00:49:58 +0530 [thread overview]
Message-ID: <558224e3041228111947e5b9de@mail.gmail.com> (raw)
In-Reply-To: <544398739307937211@unknownmsgid>
Infact the rule that you have written makes no sense as any packet in
input chain with dport as 25 is meant for your machine's SMTP server.
So if your rule is translated in plain english, it would loook like
"Deny access to all IP addresses other than <ip addr of mail server>
to the mail server running on my machine".
If you are writing this rule to your gateway, just write in it's
FORWARD chain. If you are writing this rule for you company's SMTP
server (if all mail in calsoft is forwarded to smtp.calsoftinc.com
and this server in turn forwards it to respective mail servers on net)
then put it in that machine's output chain.
On Tue, 28 Dec 2004 21:52:46 +0530, Vijay Kumar <vijay@calsoftinc.com> wrote:
> Hi,
>
> I want to allow my internal network to only connect to some specific email
> servers.
> Apart from these mail server I want to block port 25 and 110 from my
> internal network to anywhwere. I am doing the following :
>
> iptables -I INPUT -I eth0 --dport 25 -d !<ip addr of mail server> -j
> REJECT
>
> This does not seem to block the port 25 traffic. Where am I going wrong?
>
> Kindly help.
>
> Regards,
> Vijay Kumar
>
--
cheers
Ashish
KReSIT
IIT Bombay
next parent reply other threads:[~2004-12-28 19:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <544398739307937211@unknownmsgid>
2004-12-28 19:19 ` ASHISH [this message]
[not found] <1581342731182665558@unknownmsgid>
2004-12-28 17:42 ` Vijay - port 25 to be blocked Askar
[not found] <20041228170317.34EE82BBF8@tharbad>
2004-12-28 16:38 ` Eric Ellis
[not found] <E1CjK9G-0000Y9-00@mx.ya.com>
2004-12-28 16:23 ` Javier Sanchez
2004-12-28 16:22 Vijay Kumar
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=558224e3041228111947e5b9de@mail.gmail.com \
--to=ashishis@gmail.com \
--cc=netfilter@lists.netfilter.org \
--cc=vijay@calsoftinc.com \
/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.