cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1429
Views
0
Helpful
8
Replies

access to my webserver inside from outside ASA 9.x

Hi!,I configured the access to my web server inside from the outside, but in spite of doing NAT the ACL seems no to be apply on outisde, when I put the IP public on browser from internet , I see how browser change public IP to private webserver IP but it doesn´t show the webpage because it says that the server does not respond, do any knows what could be happend? , if I inactive th ACL the result its the same that´s why i think it is not being apply on outside i have the following :

 

Object network server-Web

       host 192.168.0.5

       nat (inside,outside) static interface service tcp www www

 

access-list outside_access_in extended permit ip any any 

access-list outside_access_in extended permit tcp any object server-Web eq www

 

access-group outside_access_in in interface outside

 

8 Replies 8

balaji.bandi
Hall of Fame
Hall of Fame

Try below nat rule if this is Static 1 to 1 IP NAT

 

nat (inside,outside) static x.x.x.x service tcp http http   <-- x.x.x.x is public IP

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thanks for the response.

I did what you recommend but ASA show the following error :

 

Error: Address  (IP Public) overlaps with outside interface address

Error: Nat policy is not downloaded

 

I have asked question before, do you use same outside interface IP for this service to NAT or you have Dedicated IP address.

 

if you have only 1 IP address outside follow below guide :

 

https://www.packet6.com/configuring-nat-for-a-public-server-using-same-outside-interface/

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

I already test as the link indicates but it still not working, the weird her is that with or without access-list the result is the same : "server is not responding" , as if the acl were not having affect...

Can you share the logs of ASA while you accessing the web server from outside to inside.

 

also please confirm is the web server running and tested internally ?

 

post the output of telnet x.x.x.x 80 ( x is the internal IP from internal lan config web server running) ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

when a I "logging enable" and  "sh log " it doesn´t show me any related with tcp  http traffic to internal webserver , but I did capture and show me the following:

 

Capture out interface outside match tcp any any eq 80

sh capture out

35: 03:39:17.678477       X.X.X.X.80 > IP_public_internet_service.37086: . ack 3490185580 win 256 <nop,nop,timestamp 159088307 440233631,nop,nop,sack sack 1 {3490185579:3490185580} >

  36: 03:39:25.521930       IP_public_internet_service.37106 > X.X.X.X.80: S 768367601:768367601(0) win 17520 <mss 1412,nop,wscale 8,sackOK,timestamp 440286435 0>

  37: 03:39:25.522510       X.X.X.X.80 > IP_public_internet_service.37106: S 2359779937:2359779937(0) ack 768367602 win 8192 <mss 1380,nop,wscale 8,sackOK,timestamp 159089091 440286435>

  38: 03:39:25.529544       IP_public_internet_service.37086 > X.X.X.X.80: P 3490185580:3490185997(417) ack 2442974898 win 65 <nop,nop,timestamp 440286443 159088307>

  39: 03:39:25.555086       X.X.X.X.80 > IP_public_internet_service.37086: P 2442974898:2442975723(825) ack 3490185997 win 254 <nop,nop,timestamp 159089094 440286443>

  40: 03:39:25.586349       IP_public_internet_service.37106 > X.X.X.X.80: . ack 2359779938 win 68 <nop,nop,timestamp 440286500 159089091>

  41: 03:39:25.661998       IP_public_internet_service.37086 > X.X.X.X.80: . ack 2442975723 win 68 <nop,nop,timestamp 440286573 159089094>

 

 

Capture out interface outside match tcp any any eq 80

Sh capture in

 

13: 03:38:32.512165       IP_public_internet_service.37086 > 192.168.0.5.80: S 1283918643:1283918643(0) win 17520 <mss 1380,nop,wscale 8,sackOK,timestamp 440233427 0>

  14: 03:38:32.512455       192.168.0.5.80 > IP_public_internet_service.37086: S 2082273139:2082273139(0) ack 1283918644 win 8192 <mss 1460,nop,wscale 8,sackOK,timestamp 159083791 440233427>

  15: 03:38:32.514057       IP_public_internet_service.37087 > 192.168.0.5.80: S 165090743:165090743(0) win 17520 <mss 1380,nop,wscale 8,sackOK,timestamp 440233430 0>

  16: 03:38:32.514316       192.168.0.5.80 > IP_public_internet_service.37087: S 516623608:516623608(0) ack 165090744 win 8192 <mss 1460,nop,wscale 8,sackOK,timestamp 159083791 440233430>

  17: 03:38:32.575913       IP_public_internet_service.37086 > 192.168.0.5.80: . ack 2082273140 win 68 <nop,nop,timestamp 440233492 159083791>

  18: 03:38:32.577927       IP_public_internet_service.37087 > 192.168.0.5.80: . ack 516623609 win 68 <nop,nop,timestamp 440233494 159083791>

  19: 03:38:32.582443       IP_public_internet_service.37086 > 192.168.0.5.80: P 1283918644:1283919080(436) ack 2082273140 win 68 <nop,nop,timestamp 440233499 159083791>

  20: 03:38:32.611082       192.168.0.5.80 > IP_public_internet_service.37086: P 2082273140:2082273965(825) ack 1283919080 win 256 <nop,nop,timestamp 159083800 440233499>

  21: 03:38:32.718941       IP_public_internet_service.37086 > 192.168.0.5.80: . ack 2082273965 win 65 <nop,nop,timestamp 440233631 159083800>

 

 

**Internally or locally it works , webserver is tested and running

**I added the same configuration but for telnet  access and this works fine!, i can access the webserver for telnet by the Public IP.

Looks you have packet in and out going ok....do you have any other devices in between. also 192.168.0.5 - is this part of out bound NAT ?

 

if possible post full configuration.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

here my  "sh run "  :

 

ASA Version 9.6(1)

!

hostname FirewallPB

domain-name RRRRRR

enable password RRRRRR encrypted

passwd RRRRRR  encrypted

names

ip local pool PoolPBusers 10.0.0.20-10.0.0.254 mask 255.255.255.0

 

!

interface GigabitEthernet1/1

 mac-address 0000.0000.0000

 nameif outside

 security-level 0

 ip address dhcp setroute

!

interface GigabitEthernet1/2

 nameif inside

 security-level 100

 ip address 192.168.0.1 255.255.255.0

!

interface GigabitEthernet1/3

 nameif backup_outside

 security-level 0

 ip address 192.168.1.66 255.255.255.0

!

interface GigabitEthernet1/4

 shutdown

 no nameif

 no security-level

 no ip address

!

interface GigabitEthernet1/5

 shutdown

 no nameif

 no security-level

 no ip address

!

interface GigabitEthernet1/6

 shutdown

 no nameif

 no security-level

 no ip address

!

interface GigabitEthernet1/7

 shutdown

 no nameif

 no security-level

 no ip address

!

interface GigabitEthernet1/8

 shutdown

 no nameif

 no security-level

 no ip address

!

interface Management1/1

 management-only

 no nameif

 no security-level

 no ip address

!

ftp mode passive

clock timezone CST -6

clock summer-time CDT recurring 1 Sun Apr 2:00 last Sun Oct 2:00

dns domain-lookup outside

dns domain-lookup inside

dns server-group DefaultDNS

 name-server 192.168.0.5 inside

 domain-name RRRRRR

same-security-traffic permit inter-interface

same-security-traffic permit intra-interface

object network obj_any

 subnet 0.0.0.0 0.0.0.0

object network NETWORK_OBJ_192.168.0.0_24

 subnet 192.168.0.0 255.255.255.0

object network NETWORK_VPN

 subnet 172.168.0.0 255.255.255.0

object network INSIDE

 subnet 192.168.0.0 255.255.255.0

object network NETWORK_VPN2

 subnet 10.0.0.0 255.255.255.0

object network INSIDE2

 subnet 192.168.0.0 255.255.255.0

object network server-Web

 host 192.168.0.5

object network server443-Web

 host 192.168.0.5

object network OUTSIDE

 host X.X.X.X

object service http-Web

 service tcp source eq www

object network server-telnet

 host 192.168.0.5

object-group protocol DM_INLINE_PROTOCOL_1

 protocol-object udp

 protocol-object tcp

object-group protocol DM_INLINE_PROTOCOL_2

 protocol-object udp

 protocol-object tcp

object-group protocol TCPUDP

 protocol-object udp

 protocol-object tcp

object-group network NETWORK_VPN12

 network-object 172.168.0.0 255.255.255.0

 network-object 10.0.0.0 255.255.255.0

access-list inside_access_in extended permit ip object NETWORK_OBJ_192.168.0.0_24 any

access-list inside_access_in extended permit icmp any any

access-list outside_access_in extended permit ip any any

access-list outside_access_in extended permit icmp any any

access-list outside_access_in extended permit tcp any object server-Web eq www

access-list outside_access_in extended permit tcp any object server-telnet eq telnet

access-list outside_access_in extended permit udp 10.0.0.0 255.255.255.0 192.168.0.0 255.255.255.0 eq sip

access-list outside_access_in extended permit udp 10.0.0.0 255.255.255.0 192.168.0.0 255.255.255.0 eq rip

access-list vpnRRRR_splitTunnelAcl standard permit 192.168.0.0 255.255.255.0

access-list vpnRRRR2_splitTunnelAcl2 standard permit 192.168.0.0 255.255.255.0

access-list DfltGrpPolicy_splitTunnelAcl standard permit 192.168.0.0 255.255.255.0

access-list DefaultRAGroup_splitTunnelAcl standard permit 192.168.0.0 255.255.255.0

pager lines 24

logging console debugging

logging buffered debugging

logging asdm informational

logging host inside 192.168.0.5

mtu outside 1500

mtu inside 1500

mtu backup_outside 1500

icmp unreachable rate-limit 1 burst-size 1

icmp permit 172.168.0.0 255.255.255.0 outside

icmp permit any outside

icmp permit 192.168.0.0 255.255.255.0 outside

icmp permit 192.168.0.0 255.255.255.0 inside

icmp permit 172.168.0.0 255.255.255.0 inside

icmp permit any inside

no asdm history enable

arp timeout 14400

arp permit-nonconnected

nat (inside,outside) source static INSIDE INSIDE destination static NETWORK_VPN2 NETWORK_VPN2

nat (inside,backup_outside) source dynamic NETWORK_OBJ_192.168.0.0_24 interface

!

object network NETWORK_OBJ_192.168.0.0_24

 nat (inside,outside) dynamic interface

object network server-Web

 nat (inside,outside) static interface service tcp www www

object network server-telnet

 nat (inside,outside) static interface service tcp telnet telnet

access-group outside_access_in in interface outside

access-group inside_access_in in interface inside

route outside 0.0.0.0 0.0.0.0 X.X.X.Y 1 track 1

route backup_outside 0.0.0.0 0.0.0.0 192.168.1.254 2

route outside X.X.X.0 255.255.255.224 X.X.X.Y 1

timeout xlate 3:00:00

timeout pat-xlate 0:00:30

timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 sctp 0:02:00 icmp 0:00:02

timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00

timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00

timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute

timeout tcp-proxy-reassembly 0:01:00

timeout floating-conn 0:00:00

user-identity default-domain LOCAL

aaa authentication ssh console LOCAL

http server enable

http 192.168.0.0 255.255.255.0 inside

http authentication-certificate inside

no snmp-server location

no snmp-server contact

sla monitor 10

 type echo protocol ipIcmpEcho 8.8.8.8 interface outside

 frequency 5

sla monitor schedule 10 life forever start-time now

service sw-reset-button

crypto ipsec ikev1 transform-set my-transform-set-ikev1L2TP esp-des esp-sha-hmac

crypto ipsec ikev1 transform-set my-transform-set-ikev1L2TP mode transport

crypto ipsec security-association pmtu-aging infinite

crypto dynamic-map dyn0 10 set ikev1 transform-set my-transform-set-ikev1L2TP

crypto map inside_map interface inside

crypto map vpn 20 ipsec-isakmp dynamic dyn0

crypto map vpn interface outside

crypto ca trustpoint _SmartCallHome_ServerCA

 no validation-usage

 crl configure

crypto ca trustpool policy

crypto ca certificate chain _SmartCallHome_ServerCA

 certificate ca 6ecc7aa5a7032009b8cebcf4e952d491

    308205ec 308204d4 a0030201 0202106e cc7aa5a7 032009b8 cebcf4e9 52d49130

    0d06092a 864886f7 0d010105 05003081 ca310b30 09060355 04061302 55533117

    30150603 55040a13 0e566572 69536967 6e2c2049 6e632e31 1f301d06 0355040b

    13165665 72695369 676e2054 72757374 204e6574 776f726b 313a3038 06035504

    0b133128 63292032 30303620 56657269 5369676e 2c20496e 632e202d 20466f72

    20617574 686f7269 7a656420 75736520 6f6e6c79 31453043 06035504 03133c56

    65726953 69676e20 436c6173 73203320 5075626c 69632050 72696d61 72792043

    65727469 66696361 74696f6e 20417574 686f7269 7479202d 20473530 1e170d31

    30303230 38303030 3030305a 170d3230 30323037 32333539 35395a30 81b5310b

    30090603 55040613 02555331 17301506 0355040a 130e5665 72695369 676e2c20

    496e632e 311f301d 06035504 0b131656 65726953 69676e20 54727573 74204e65

    74776f72 6b313b30 39060355 040b1332 5465726d 73206f66 20757365 20617420

    68747470 733a2f2f 7777772e 76657269 7369676e 2e636f6d 2f727061 20286329

    3130312f 302d0603 55040313 26566572 69536967 6e20436c 61737320 33205365

    63757265 20536572 76657220 4341202d 20473330 82012230 0d06092a 864886f7

    0d010101 05000382 010f0030 82010a02 82010100 b187841f c20c45f5 bcab2597

    a7ada23e 9cbaf6c1 39b88bca c2ac56c6 e5bb658e 444f4dce 6fed094a d4af4e10

    9c688b2e 957b899b 13cae234 34c1f35b f3497b62 83488174 d188786c 0253f9bc

    7f432657 5833833b 330a17b0 d04e9124 ad867d64 12dc744a 34a11d0a ea961d0b

    15fca34b 3bce6388 d0f82d0c 948610ca b69a3dca eb379c00 48358629 5078e845

    63cd1941 4ff595ec 7b98d4c4 71b350be 28b38fa0 b9539cf5 ca2c23a9 fd1406e8

    18b49ae8 3c6e81fd e4cd3536 b351d369 ec12ba56 6e6f9b57 c58b14e7 0ec79ced

    4a546ac9 4dc5bf11 b1ae1c67 81cb4455 33997f24 9b3f5345 7f861af3 3cfa6d7f

    81f5b84a d3f58537 1cb5a6d0 09e4187b 384efa0f 02030100 01a38201 df308201

    db303406 082b0601 05050701 01042830 26302406 082b0601 05050730 01861868

    7474703a 2f2f6f63 73702e76 65726973 69676e2e 636f6d30 12060355 1d130101

    ff040830 060101ff 02010030 70060355 1d200469 30673065 060b6086 480186f8

    45010717 03305630 2806082b 06010505 07020116 1c687474 70733a2f 2f777777

    2e766572 69736967 6e2e636f 6d2f6370 73302a06 082b0601 05050702 02301e1a

    1c687474 70733a2f 2f777777 2e766572 69736967 6e2e636f 6d2f7270 61303406

    03551d1f 042d302b 3029a027 a0258623 68747470 3a2f2f63 726c2e76 65726973

    69676e2e 636f6d2f 70636133 2d67352e 63726c30 0e060355 1d0f0101 ff040403

    02010630 6d06082b 06010505 07010c04 61305fa1 5da05b30 59305730 55160969

    6d616765 2f676966 3021301f 30070605 2b0e0302 1a04148f e5d31a86 ac8d8e6b

    c3cf806a d448182c 7b192e30 25162368 7474703a 2f2f6c6f 676f2e76 65726973

    69676e2e 636f6d2f 76736c6f 676f2e67 69663028 0603551d 11042130 1fa41d30

    1b311930 17060355 04031310 56657269 5369676e 4d504b49 2d322d36 301d0603

    551d0e04 1604140d 445c1653 44c1827e 1d20ab25 f40163d8 be79a530 1f060355

    1d230418 30168014 7fd365a7 c2ddecbb f03009f3 4339fa02 af333133 300d0609

    2a864886 f70d0101 05050003 82010100 0c8324ef ddc30cd9 589cfe36 b6eb8a80

    4bd1a3f7 9df3cc53 ef829ea3 a1e697c1 589d756c e01d1b4c fad1c12d 05c0ea6e

    b2227055 d9203340 3307c265 83fa8f43 379bea0e 9a6c70ee f69c803b d937f47a

    6decd018 7d494aca 99c71928 a2bed877 24f78526 866d8705 404167d1 273aeddc

    481d22cd 0b0b8bbc f4b17bfd b499a8e9 762ae11a 2d876e74 d388dd1e 22c6df16

    b62b8214 0a945cf2 50ecafce ff62370d ad65d306 4153ed02 14c8b558 28a1ace0

    5becb37f 954afb03 c8ad26db e6667812 4ad99f42 fbe198e6 42839b8f 8f6724e8

    6119b5dd cdb50b26 058ec36e c4c875b8 46cfe218 065ea9ae a8819a47 16de0c28

    6c2527b9 deb78458 c61f381e a4c4cb66

  quit

crypto isakmp nat-traversal 1500

crypto ikev1 enable outside

crypto ikev1 policy 1

 authentication pre-share

 encryption 3des

 hash sha

 group 2

 lifetime 86400

crypto ikev1 policy 105

 authentication pre-share

 encryption des

 hash sha

 group 5

 lifetime 86400

crypto ikev1 policy 110

 authentication rsa-sig

 encryption 3des

 hash sha

 group 2

 lifetime 86400

crypto ikev1 policy 140

 authentication rsa-sig

 encryption des

 hash sha

 group 2

 lifetime 86400

!

track 1 rtr 10 reachability

telnet 192.168.0.0 255.255.255.255 inside

telnet 192.168.0.0 255.255.255.0 inside

telnet timeout 5

ssh stricthostkeycheck

ssh 0.0.0.0 0.0.0.0 outside

ssh 192.168.0.0 255.255.255.0 inside

ssh timeout 60

ssh key-exchange group dh-group1-sha1

console timeout 0

l2tp tunnel hello 10

 

vpnclient mode client-mode

dhcp-client broadcast-flag

dhcp-client client-id interface outside

dhcp-client update dns server both

dhcpd auto_config outside

!

dhcpd auto_config outside interface inside

!

group-policy DfltGrpPolicy attributes

 dns-server value 192.168.0.6

 vpn-tunnel-protocol l2tp-ipsec

 ipsec-udp enable

 split-tunnel-policy tunnelspecified

 split-tunnel-network-list value DfltGrpPolicy_splitTunnelAcl

 default-domain value RRRR

 intercept-dhcp 255.255.255.255 enable

dynamic-access-policy-record DfltAccessPolicy

password-policy minimum-length 8

password-policy minimum-numeric 1

username QQQQ password WaKWIqHAGPBEqRykpBAZTQ== nt-encrypted

username QQQQ attributes

 vpn-group-policy DfltGrpPolicy

 vpn-tunnel-protocol l2tp-ipsec

username QQQQ password bz2VV2kvnATtLqPC encrypted

username QQQQ password lovDDFTjdoz6uuzuvcQ9yA== nt-encrypted

username QQQQ attributes

 vpn-group-policy DfltGrpPolicy

 vpn-tunnel-protocol l2tp-ipsec

username QQQQ password x5YoIfxMOWmrH47Q encrypted

username QQQQ attributes

 vpn-group-policy QQQQQQQQQ

username QQQQ password t9yf/Q4Nsy71.hz1 encrypted

username QQQQ password /kZjBaTTvTWggIKMVMzTfA== nt-encrypted

username QQQQ attributes

 vpn-group-policy DfltGrpPolicy

 vpn-tunnel-protocol l2tp-ipsec

username QQQQ password a13mDAwRdkFXIKhrRr4v+w== nt-encrypted

username QQQQ attributes

 vpn-group-policy DfltGrpPolicy

 vpn-tunnel-protocol l2tp-ipsec

username QQQQ password 4I0Qgu2HpAvV01ZF encrypted

username QQQQ password sZd4TXTEoZotkUEOPhFSNw== nt-encrypted

username QQQQ attributes

 vpn-group-policy DfltGrpPolicy

 vpn-tunnel-protocol l2tp-ipsec

username QQQQ password 7oqzXVQaCfcF7OE2 encrypted

username QQQQ password uXxtjr3i/7c5D6lcKxMuHA== nt-encrypted

username QQQQ attributes

 vpn-group-policy DfltGrpPolicy

 vpn-tunnel-protocol l2tp-ipsec

username QQQQ password doucIWDjqw1jhlejSJpAhg== nt-encrypted privilege 15

username QQQQ attributes

 vpn-group-policy DfltGrpPolicy

 vpn-tunnel-protocol l2tp-ipsec

username QQQQ password Password7 nt-encrypted

username QQQQ 1 attributes

 vpn-group-policy DfltGrpPolicy

 vpn-tunnel-protocol l2tp-ipsec

tunnel-group DefaultRAGroup general-attributes

 address-pool PoolPBusers

tunnel-group DefaultRAGroup ipsec-attributes

 ikev1 pre-shared-key *****

tunnel-group DefaultRAGroup ppp-attributes

 authentication ms-chap-v2

!

class-map netbios_NBS

 match default-inspection-traffic

class-map inspection_default

 match default-inspection-traffic

class-map outisde_ping

 match default-inspection-traffic

!

!

policy-map type inspect dns preset_dns_map

 parameters

  message-length maximum client auto

  message-length maximum 512

policy-map global_policy

 class inspection_default

  inspect dns preset_dns_map

  inspect ftp

  inspect h323 h225

  inspect h323 ras

  inspect rsh

  inspect rtsp

  inspect esmtp

  inspect sqlnet

  inspect skinny

  inspect sunrpc

  inspect xdmcp

  inspect sip

  inspect netbios

  inspect tftp

  inspect ip-options

  inspect icmp

  inspect icmp error

 class class-default

  user-statistics accounting

  set connection decrement-ttl

policy-map ICMP

 class outisde_ping

  inspect icmp

policy-map NBS

 class netbios_NBS

  inspect netbios

!

service-policy global_policy global

prompt hostname context

call-home reporting anonymous

hpm topN enable

Cryptochecksum:rrrrrrrrrrrrrrrrrrr

: end

Review Cisco Networking for a $25 gift card