cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2109
Views
0
Helpful
3
Replies

Not able to access servers using public ip from internal segment

QPM277111
Level 1
Level 1

Hi,

Is it possible to access internal servers using public IP. The server and the client, Both are in inside DMZ.

The server has a static nat.The client uses global IP. ASA 5540 is been used

Regards,

Manish Gupta

1 Accepted Solution

Accepted Solutions

Jennifer Halim
Cisco Employee
Cisco Employee

Yes you can.

Assuming you have the following:

Inside network: 192.168.1.0/24

DMZ network (where the server is): 192.168.5.0/24

Server IP: 192.168.5.5 --> NATed to 200.1.1.5

From the above, I assume you already have the following configured:

static (dmz,outside) 200.1.1.5 192.168.5.5 netmask 255.255.255.255

static (inside,dmz) 192.168.1.0 192.168.1.0 netmask 255.255.255.0

Assuming that you would like to access the public ip of the server 200.1.1.5 from the inside network, you need to add the following:

static (dmz,inside) 200.1.1.5 192.168.5.5 netmask 255.255.255.255

no sysopt noproxyarp inside

If you have ACL assigned to the inside interface, you would need to allow traffic towards the public ip.

If the above assumption is incorrect, and you have your server in the inside network instead (with ip of 192.168.1.5), and would like to access it from the inside via its public ip, here is the commands:

same-security-traffic permit intra-interface

static (inside,inside) 200.1.1.5 192.168.1.5 netmask 255.255.255.255

global (inside) 1 interface    <-- assuming that you have "nat (inside) 1 0 0" statement.

If you have ACL assigned to the inside interface, you would need to  allow traffic towards the public ip as well.

Hope that helps.

View solution in original post

3 Replies 3

Jennifer Halim
Cisco Employee
Cisco Employee

Yes you can.

Assuming you have the following:

Inside network: 192.168.1.0/24

DMZ network (where the server is): 192.168.5.0/24

Server IP: 192.168.5.5 --> NATed to 200.1.1.5

From the above, I assume you already have the following configured:

static (dmz,outside) 200.1.1.5 192.168.5.5 netmask 255.255.255.255

static (inside,dmz) 192.168.1.0 192.168.1.0 netmask 255.255.255.0

Assuming that you would like to access the public ip of the server 200.1.1.5 from the inside network, you need to add the following:

static (dmz,inside) 200.1.1.5 192.168.5.5 netmask 255.255.255.255

no sysopt noproxyarp inside

If you have ACL assigned to the inside interface, you would need to allow traffic towards the public ip.

If the above assumption is incorrect, and you have your server in the inside network instead (with ip of 192.168.1.5), and would like to access it from the inside via its public ip, here is the commands:

same-security-traffic permit intra-interface

static (inside,inside) 200.1.1.5 192.168.1.5 netmask 255.255.255.255

global (inside) 1 interface    <-- assuming that you have "nat (inside) 1 0 0" statement.

If you have ACL assigned to the inside interface, you would need to  allow traffic towards the public ip as well.

Hope that helps.

The issue got resoved after i used a different public IP rather than the default global IP

Good to hear, and thanks for the update and rating.

Getting Started

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:

Review Cisco Networking products for a $25 gift card