07-27-2011 11:40 AM - edited 03-11-2019 02:04 PM
Hi All
I have a AD server that needs to access to servers at a company out on the web. it an asa the protocol is ldap
AD server 10.12.1.56 / 24
External servers 206.123.45.122, 174.87.96.143
ASA configuration
access-list outside permit tcp host 206.123.45.122 host 10.12.1.56 eq 389
access-list outside permit tcp host 174.87.96.143 host 10.12.1.56 eq 380
Right here is where I get stuck I know I would create a network object but im not sure on how you use the syntax
Please help
Many thanks
07-27-2011 11:52 AM
Hi James,
Coul you tell me on which interface is the AD server connected, is it on the inside?? yu want to access the AD server from outside on ip 206.123.45.122 ?? Could you explain the requirement in a bit more detail??
thanks,
Varun
07-27-2011 11:55 AM
The AD server is on the inside, they are external addresses 2 other servers are on the outside
07-27-2011 12:08 PM
You would need the following configuration:
Lets assume that the public ip of the server is 1.1.1.1
object network AD_Server
host 10.12.1.56
object service ldap_380
service tcp destination eq 380
object service ldap_389
service tcp destination eq 389
object network Public_206.123.45.122
host 206.123.45.122
object network Public_174.87.96.143
host 174.87.96.143
object network Public_AD_server
host 1.1.1.1
nat (outside,inside) source static Public_206.123.45.122 Public_206.123.45.122 destination static Public_AD_server AD_Server service ldap_389 ldap_389
nat (outside,inside) source static Public_174.87.96.143 Public_174.87.96.143 destination static Public_AD_server
AD_Server service ldap_380 ldap_380
access-list is good, so no changes with it.
Hope this helps.
Thanks,
Varun
07-27-2011 10:57 PM
Varun
Thanks for that, However I dont understand why this has been added
object_service ldap 380 ????? I was only looking at 389
also Why do I need a public ad server (1.1.1.1) I already have the 2 external addresses and the ad aserver address of 10.12.1.56
thanks
07-27-2011 11:10 PM
Hi James,
May be I didnt understand your requirement completely, kidnly let me know if this is your requirement:
you have an AD server on the inside interface - 10.12.1.56
The AD server should be accessed on port 380 and 389.
The AD server would be accessed by external servers 206.123.45.122 and 174.87.96.143 on the above ports.
I thought of this because of the access-list that you have mentioned:
access-list outside permit tcp host 206.123.45.122 host 10.12.1.56 eq 389
access-list outside permit tcp host 174.87.96.143 host 10.12.1.56 eq 380
kindly let me know if this was not your requirement, i'll give you the correct config.
Thanks,
Varun
07-28-2011 01:07 AM
Hi Varun
Sorry ive just realised Ive messed up
I want to statically NAT 10.12.1.56 to the external address 194.57.54.129
Would I then need to change the access list changing the address 10.12.1.56 to 194.57.54.129
AD server should be accessed on port 389 that 380 is a type error
07-28-2011 01:26 AM
Hi James,
This makes it a bit clear for me, wehat you would need is :
object network AD_Server
host 10.12.1.56
object service ldap_380
service tcp destination eq 380
object network Public_AD
host 194.57.54.129
nat (oustide,inside) source static any any destination static Public_AD AD_Server service ldap_380 ldap_380
This statement means all the users on the internet woudl access your AD server on it public ip on port 380.
and the access-list would be:
access-list outside permit tcp any host 10.12.1.56 eq 380
In ASA 8.3, you would need to use the real ip of the server in the ACL instead of the Public IP, moreover you would need to create an object for the service as well. The syntax has changed in ASA 8.3
Hope this helps,
Thanks,
Varun
07-28-2011 01:34 AM
The 194.57.54.129 is a public address taken from our range which is needing to be used to statically nat to 10.12.1.56
so I need the statement to marry those 2 together.
I hope I have been clear on that, and IO havnt confused you lol
07-28-2011 01:56 AM
Yup, the commands that I have given you does the same thing. They are married off together, for outside world your AD server is 194.57.54.129 but for firewall it is 10.12.1.56. So the statements are correct.
Thanks,
Varun
07-28-2011 02:53 AM
Thanks Varun
I did
object network obj-10.1.12.56-ldap
host 10.1.12.56
object network obj-10.1.12.56-ldap
nat (inside,outside) static interface service tcp ldap ldap
access-list outside permit tcp any host 10.1.12.56 eq 389
07-28-2011 02:57 AM
No Problem you can try it and let me know how it goes??
Thanks,
Varun
07-28-2011 03:18 AM
Yup thats also good, both the statements work fine. THe only thing is I used manual Nat and you did it with Auto Nat. The only reason I prefer it because when the ASA searches for the nat statement, the manual Nat is hit first. Otherwise you can use any, with no issues.
Thanks,
Varun
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