we have a host A 192.168.1.2 is connected to the inside interface of the firewall and host B 10.10.10.35 is connected to the DMZ interface. We have published 10.10.10.35 as 1.1.1.1 on inside interface and our requirement is to access that server using the public ip address and private ip address.
Here is the sample configuration:
access-list abc extended permit ip host 10.10.10.35 any
access-list xyz extended permit ip host 10.10.10.35 any
static (DMZ,Inside) 10.10.10.35 access-list abc
static (DMZ,Inside) 1.1.1.1 access-list xyz
static (Inside,DMZ) 192.168.1.0 192.168.1.0 netmask 255.255.255.0