Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > Allow a Range of external SMTP Hosts

Reply
Thread Tools

Allow a Range of external SMTP Hosts

 
 
Ferret
Guest
Posts: n/a
 
      05-24-2005
Hi,

We have recently introduced an External Email Filtering Service and I
would like to Block all Inbound SMTP connection except for a list of
nominated hosts.

I have a Cisco 837 and at the moment all inbound port 25 Connections
are forwarded to our internal SMTP Server (exchange 5.5).

The Problem is that there are some spammer still around that are not
using DNS MX record, but the our public IP address of the Router.

Any suggestions would be appreciated

Thanks

 
Reply With Quote
 
 
 
 
Garrick
Guest
Posts: n/a
 
      05-24-2005
Try using access lists. If you need help configuring them, please post
a sanitized (no real IPs or passwords) version of your 'show run' and
I'm sure someone will be glad to give you some suggestions. Without
knowing how your current access lists (if any) are configured, I can't
give you too much more information than that.

Garrick

 
Reply With Quote
 
 
 
 
DaZZa
Guest
Posts: n/a
 
      05-24-2005
Ferret <> mumbled:
> Hi,
>
> We have recently introduced an External Email Filtering Service and I
> would like to Block all Inbound SMTP connection except for a list of
> nominated hosts.
>
> I have a Cisco 837 and at the moment all inbound port 25 Connections
> are forwarded to our internal SMTP Server (exchange 5.5).
>
> The Problem is that there are some spammer still around that are not
> using DNS MX record, but the our public IP address of the Router.
>
> Any suggestions would be appreciated


Apply an access list on your inbound interface.

Something like this should work

access-list 102 permit tcp <allowed_source_ip> host <destination_Ip> eq 25
access-list 102 permit tcp <allowed_source> host <destination_ip> eq 25
access-list 102 deny tcp any any eq 25
access-list 102 permit ip any any

You'll need to check into the command reference for the exact syntax -
I'm a little rusty - but then simply apply that to the inbound traffic
on your external interface by doing

interface <interface>
access-class 102 in

That should stop anything but the list of allowed hosts (you can put
more than two, but remember, the longer the list, the harder the router
has to work to process it) to connect to your destination host, and only
your destination host, on port 25 without blocking any other IP reaffic
at all.

DaZZa

--
A rule for life.
echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq |dc
Address in header is spamblocked. ROT13 the following for email replies

 
Reply With Quote
 
Ferret
Guest
Posts: n/a
 
      05-24-2005
HI thanks for the Post

I have tried the following

On the dialer Interface added
no ip access-group 111 in

and then added the access-list as follows

access-list 111 permit tcp host <external 1> host <internal Smtp>
eq 25
access-list 111 permit tcp host <external 2> host <internal Smtp>
eq 25
access-list 111 permit tcp host <external 3> host <internal Smtp>
eq 25
access-list 111 permit tcp host <external 4> host <internal Smtp>
eq 25
access-list 111 permit tcp host <external 5> host <internal Smtp>
eq 25
access-list 111 permit tcp host <external 6> host <internal Smtp>
eq 25
access-list 111 deny tcp any any eq 25

However I only receive Mail from the first listed host ?????

Any assistance would be appreciated..

 
Reply With Quote
 
Ferret
Guest
Posts: n/a
 
      05-24-2005
Ops I should have said
the dialer Interface
ip access-group 111 in

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure Pix 501 to allow traffic from range of external IP addresses jacobe Cisco 1 07-13-2009 10:02 PM
hosts can only ping other hosts after router has pinged them? spec Cisco 7 06-05-2006 08:06 AM
UNIX Script To Remove Hosts from Hosts file Bla Perl Misc 1 04-10-2005 04:14 PM
UNIX Script To Remove Hosts from Hosts file Bla Perl 0 04-08-2005 12:46 AM
blocking external hosts PIX Jeroen Cisco 1 11-19-2003 11:27 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57