02-19-2020 09:51 AM
Hello,
I have a DMZ setup for our new SFTP server. I'm trying to make it where only specific outside IPs can get into this sever. Do I need to create a NAT rule or ACL on our ASA5512?
Thank you,
Solved! Go to Solution.
02-19-2020 12:04 PM
object network dmz-host-real
host 192.168.100.1
!
object network dmz-host-mapped
host 67.54.23.11
!
object-group network OUTSIDE_IP
network-object host 55.55.55.55
network-object host 22.22.22.22
!
nat (dmz,outside) source static dmz-host-mapped
!
access-list dmz_in extended permit tcp object-group OUTSIDE_IP object dmz-host-real eq ssh
access-group in interface dmz
above configuration change the name according to your needs.
02-19-2020 10:01 AM - edited 02-19-2020 10:02 AM
you need nat rules and ACL both. now you only want specific ip addresses in that case here is the example
!
object network dmz-host-real
host 192.168.100.1
!
object network dmz-host-mapped
host 67.54.23.11
!
nat (dmz,outside) source static dmz-host-mapped
!
access-list dmz_in exten permit tcp host 55.55.55.55 object dmz-host-real eq 22
access-group in interface dmz
!
For example 55.55.55.55. is your specific outside public address which need access to SFTP server.
02-19-2020 10:57 AM
02-19-2020 11:09 AM - edited 02-19-2020 11:12 AM
yes you can do this.
!
object network dmz-host-real
host 192.168.100.1
!
object network dmz-host-mapped
host 67.54.23.11
!
object-group network OUTSIDE_IP
network-object host 55.55.55.55
network-object host 22.22.22.22
!
nat (dmz,outside) source static dmz-host-mapped
!
access-list dmz_in extended permit tcp object-group OUTSIDE_IP object dmz-host-real eq ssh
access-group in interface dmz
!
02-19-2020 11:18 AM
02-19-2020 12:04 PM
object network dmz-host-real
host 192.168.100.1
!
object network dmz-host-mapped
host 67.54.23.11
!
object-group network OUTSIDE_IP
network-object host 55.55.55.55
network-object host 22.22.22.22
!
nat (dmz,outside) source static dmz-host-mapped
!
access-list dmz_in extended permit tcp object-group OUTSIDE_IP object dmz-host-real eq ssh
access-group in interface dmz
above configuration change the name according to your needs.
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