From: Askar <askarali@gmail.com>
To: Vijay Kumar <vijay@calsoftinc.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Vijay - port 25 to be blocked
Date: Tue, 28 Dec 2004 22:42:33 +0500 [thread overview]
Message-ID: <a0f69e5041228094227df9b62@mail.gmail.com> (raw)
In-Reply-To: <1581342731182665558@unknownmsgid>
try this ,
#iptables -A FORWARD -i eth0 -o ppp0 --dport 25 -d !<ip addr of mail
server> -j
DROP
don't forget to replace -i eth0 with your LAN inteface and -o ppp0
with your external interface
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
>
>
>
>
--
(after bouncing head on desk for days trying to get mine working, I'll make
your life a little easier)
next parent reply other threads:[~2004-12-28 17:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1581342731182665558@unknownmsgid>
2004-12-28 17:42 ` Askar [this message]
[not found] <544398739307937211@unknownmsgid>
2004-12-28 19:19 ` Vijay - port 25 to be blocked ASHISH
[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=a0f69e5041228094227df9b62@mail.gmail.com \
--to=askarali@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox