01-23-2012 11:15 PM - edited 03-07-2019 04:30 AM
Hey all,
i need help writing an acl to block smtp for hosts from 10.1.1.20 - 10.1.1.252?
thanks
01-23-2012 11:35 PM
Hi Scott,
Where do you want block the smtp?
do you want block from outside?
or inside the LAN?
Do you have seperate vlan for the following range 10.1.1.20 - 10.1.1.252?
Please let us know the details so that we can guide you with configuration part.
Please rate all the helpfull posts.
Regards,
Naidu.
01-24-2012 04:44 AM
i would like to block outbound interfaces, nope they are on the same vlan.
to give you some background i have a client who is using an old Netgear router and wants to change over to an 1801 adsl router, they have a rule to block SMTP on the outbound services from 10.1.1.20 - 10.1.1.252
01-24-2012 05:11 AM
so you want clients from 10.1.1.20 - 10.1.1.252 should not access the smtp server right?
If the above is correct then you can define the acl like below and apply to the specific vlan interface.
below are the examples only.
ip access exte smtp-block
deny tcp 10.1.1.0 0.0.0.255 host smtp-server-ip eq smtp
int vlan10
ip address 10.1.1.1
ip access-group smtp-block in
Please rate all the helpfull posts.
Regards,
Naidu.
Please rate all the helpfull posts.
Regards,
Naidu.
01-24-2012 05:42 AM
thanks for that but i need to allow clients from 10.1.1.1 - 10.1.1.19 to access smtp
01-24-2012 05:58 AM
Then you need some more rules
ip access exte smtp-block
permit tcp 10.1.1.0 0.0.0.15 host smtp-server-ip eq smtp
permit tcp host 10.1.1.16 host smtp-server-ip eq smtp
permit tcp host 10.1.1.17 host smtp-server-ip eq smtp
permit tcp host 10.1.1.18 host smtp-server-ip eq smtp
permit tcp host 10.1.1.19 host smtp-server-ip eq smtp
deny tcp 10.1.1.0 0.0.0.255 host smtp-server-ip eq smtp
permit ip any any
01-24-2012 10:20 PM
The above suggestion is ok but you need to allow 10.1.1.15 also because the 10.1.1.15 will not covered under /28 subnet, so below is the one you can follow.
ip access exte smtp-block
permit tcp 10.1.1.0 0.0.0.15 host smtp-server-ip eq smtp
permit tcp host 10.1.1.15 host smtp-server-ip eq smtp
permit tcp host 10.1.1.16 host smtp-server-ip eq smtp
permit tcp host 10.1.1.17 host smtp-server-ip eq smtp
permit tcp host 10.1.1.18 host smtp-server-ip eq smtp
permit tcp host 10.1.1.19 host smtp-server-ip eq smtp
deny tcp 10.1.1.0 0.0.0.255 host smtp-server-ip eq smtp
permit ip any any
Please rate all the helpfull posts.
Regards,
Naidu.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide