09-10-2010 06:56 AM - edited 03-11-2019 11:38 AM
Having great trouble trying to get my online mail filtering service to sync with LDAP through the Cisco ASA 5505.
Please below for firewall entries.
access-list outside extended permit tcp host GFI1 host SMTP eq ldap
static (inside,outside) tcp SMTP ldap SERVER ldap netmask 255.255.255.255
The below error gets logged on the ASA.
Deny tcp src outside:208.70.89.81/42946 dst inside:SMTP/389 by access-group "outside" [0x0, 0x0]
Have I done something wrong or missing some config entries ?
The server is SBS2008 with LDS installed and configured.
Thank you.
S.
Solved! Go to Solution.
09-10-2010 07:27 AM
Hi Stephen,
Names are only used for hosts, so they don't accept a subnet mask. In the example you provided, the ASA will try to match the packet to 208.80.78.0.
If you want to specify full subnets, you can use object-groups:
object-group network GFI1
network-object 208.80.78.0 255.255.255.0
You'll also need to adjust your access-list to use the object-group like this:
access-list outside extended permit tcp object-group GFI1 host SMTP eq ldap
Hope that helps.
-Mike
09-10-2010 07:03 AM
Hi Stephen,
What IP address is configured assigned to the GFI1 name? You can check 'show run name | i GFI1' to see if it is configured for 208.70.89.81.
-Mike
09-10-2010 07:12 AM
Mike,
I've a number of GFIx names assigned to a number of their IP ranges and all are OK.
Thanks.
S.
09-10-2010 07:14 AM
Stephen,
But does the "outside" access list contain a rule that permits traffic sourced from 208.70.89.81 and destined to the host called SMTP on port 389? The log message you see indicates that the packet isn't matching any of the permit rules in the access list.
-Mike
09-10-2010 07:19 AM
The GFI name entries are subnets and not hosts, maybe this
is the cause.
E.g. GFI1 is 208.80.78.0 for example.
Would I need to simply add a "mask" entry or is this irrelevant ?
Thanks.
S.
09-10-2010 07:27 AM
Hi Stephen,
Names are only used for hosts, so they don't accept a subnet mask. In the example you provided, the ASA will try to match the packet to 208.80.78.0.
If you want to specify full subnets, you can use object-groups:
object-group network GFI1
network-object 208.80.78.0 255.255.255.0
You'll also need to adjust your access-list to use the object-group like this:
access-list outside extended permit tcp object-group GFI1 host SMTP eq ldap
Hope that helps.
-Mike
09-10-2010 08:50 AM
Mike,
This got it working.
Many many thanks.
S.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: