02-05-2013 11:20 AM - edited 03-11-2019 05:56 PM
Hi all,
I have setup my asa 5512 so I can access a web server from outside to inside, bout it is not working.
I have attach my config, Can someone take a look at it?
Thanks
SD
Solved! Go to Solution.
02-05-2013 11:57 AM
Hi,
You will need to use Static NAT for each server as using Dynamic NAT/PAT doesnt really enable remote hosts to connect to the local hosts on your network. This is because the NAT is Dynamic and naturally to host some service it needs to be Static.
So if you actually have a Public IP address for each server then you can apply the following (and which was also in my original reply) to configure Static NAT for each server
object network STATIC
host x.x.x.x
nat (Inside,Outside) static y.y.y.y dns
Where
Repeat the above configuration with the correct "object network" names and the correct IP addresses and it should be fine.
Then just open the services to the servers on the OUTSIDE-IN ACL as mentioned in the first reply also.
access-list OUTSIDE-IN permit
- Jouni
02-05-2013 11:33 AM
Hi,
The configuration seems a bit off to me.
I'll suggest a different type of configuration. This would require you to remove all the existing NAT configuration listed in your configuration file in the post.
Please confirm that the following things are true
If the above is true try the following configuration (If not please specify what needs to be changed)
Remote existing NAT/ACL configurations
no nat (Inside,Outside) source dynamic any interface
no nat (Inside,Outside) source static cdtpreprod cdtpreprod.cleard.com service clients clients
no access-group global_access global
no access-list global_access extended permit ip any any
no access-group outside_access_in in interface Outside
no access-list outside_access_in extended permit ip any any
Dynamic NAT
object-group network DEFAULT-PAT-SOURCE
network-object 192.168.3.0 255.255.255.0
network-object 192.168.2.0 255.255.255.0
nat (any,Outside) after-auto source dynamic DEFAULT-PAT-SOURCE interface
Static NAT
object network STATIC
host 192.168.3.52
nat (Inside,Outside) static 173.246.64.150 dns
access-list OUTSIDE-IN permit tcp any object STATIC eq 8080
access-group OUTSIDE-IN in interface Outside
Additionally I would suggest removing the "permit ip any any" from the "Outside" interface ACL since it permits all traffic and you dont want that. Atleast in a production environment.
- Jouni
02-05-2013 11:47 AM
Jouni,
I have 9 server inside not dmz that have all the same service ports like 443,442,5989
i have 9 external ip, I want to use one external ip for each internal server.
should i use static nat or dynamic nat?
SD
02-05-2013 11:57 AM
Hi,
You will need to use Static NAT for each server as using Dynamic NAT/PAT doesnt really enable remote hosts to connect to the local hosts on your network. This is because the NAT is Dynamic and naturally to host some service it needs to be Static.
So if you actually have a Public IP address for each server then you can apply the following (and which was also in my original reply) to configure Static NAT for each server
object network STATIC
host x.x.x.x
nat (Inside,Outside) static y.y.y.y dns
Where
Repeat the above configuration with the correct "object network" names and the correct IP addresses and it should be fine.
Then just open the services to the servers on the OUTSIDE-IN ACL as mentioned in the first reply also.
access-list OUTSIDE-IN permit
- Jouni
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