cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4432
Views
0
Helpful
19
Replies

Webserver is not able to access from outside the network, VPN in not accepting

sivapkd100
Level 1
Level 1

Hi Gurus,

My webserver is not able to access from outside the network. Also cisco vpn is not acceepting any connection.

For Webserver internal address is 192.168.1.2 => 64.168.82.251

My configuration is given below, please help


: Saved
:
ASA Version 7.2(4)
!
hostname ciscoasa
domain-name default.domain.invalid
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
nameif outside
security-level 0
ip address 64.168.82.250 255.255.255.248
!
interface Vlan3
no forward interface Vlan1
nameif dmz
security-level 50
no ip address
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
ftp mode passive
dns server-group DefaultDNS
domain-name default.domain.invalid
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
object-group service DM_INLINE_TCP_1 tcp
port-object eq www
port-object eq https
object-group service DM_INLINE_TCP_2 tcp
port-object eq ftp
port-object eq ftp-data
port-object eq www
access-list inside_access_in extended permit tcp any any object-group DM_INLINE_
TCP_1
access-list inside_access_in extended permit ip any any
access-list inside_nat0_outbound extended permit ip any 10.10.100.0 255.255.255.
128
access-list inside_nat0_outbound extended permit ip 192.168.1.0 255.255.255.0 10
.10.100.0 255.255.255.128
access-list outside_access_in extended permit tcp any host 64.168.82.251 object-
group DM_INLINE_TCP_2
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
mtu dmz 1500
ip local pool vpnpool 10.10.100.1-10.10.100.100 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-524.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
static (outside,inside) 64.168.82.251 192.168.1.2 netmask 255.255.255.255
access-group inside_access_in in interface inside
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 64.168.82.254 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 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
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set TRANS_ESP_3DES_SHA esp-3des esp-sha-hmac
crypto ipsec transform-set TRANS_ESP_3DES_SHA mode transport
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto dynamic-map outside_dyn_map 20 set pfs group1
crypto dynamic-map outside_dyn_map 20 set transform-set TRANS_ESP_3DES_SHA
crypto dynamic-map outside_dyn_map 40 set pfs group1
crypto dynamic-map outside_dyn_map 40 set transform-set ESP-3DES-SHA
crypto dynamic-map outside_dyn_map 60 set pfs group1
crypto dynamic-map outside_dyn_map 60 set transform-set ESP-3DES-SHA
crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map
crypto map outside_map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
crypto isakmp policy 30
authentication crack
encryption 3des
hash sha
group 2
lifetime 86400
client-update enable
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 60
ssh timeout 5
console timeout 0
dhcpd auto_config outside
!
dhcpd address 192.168.1.2-192.168.1.33 inside
dhcpd dns 4.2.2.1 4.2.2.2 interface inside
dhcpd enable inside
!

group-policy DefaultRAGroup internal
group-policy DefaultRAGroup attributes
dns-server value 4.2.2.2 4.2.2.1
vpn-tunnel-protocol l2tp-ipsec
default-domain value test.local
group-policy CiscoASA internal
group-policy CiscoASA attributes
dns-server value 4.2.2.2
vpn-tunnel-protocol IPSec
group-policy ciscoasa internal
group-policy ciscoasa attributes
dns-server value 4.2.2.2
vpn-tunnel-protocol IPSec
username siva password xaI3t+nY5wjYQ2thSKJfoQ== nt-encrypted privilege 0
tunnel-group DefaultRAGroup general-attributes
address-pool vpnpool
default-group-policy DefaultRAGroup
tunnel-group DefaultRAGroup ipsec-attributes
pre-shared-key *
tunnel-group CiscoASA type ipsec-ra
tunnel-group CiscoASA general-attributes
address-pool vpnpool
default-group-policy CiscoASA
tunnel-group ciscoasa type ipsec-ra
tunnel-group ciscoasa general-attributes
address-pool vpnpool
default-group-policy ciscoasa
tunnel-group ciscoasa ipsec-attributes
pre-shared-key *
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
  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 pptp
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:1f9bd65614b7affc944713d8d0f5d7ac
: end
ciscoasa#
ciscoasa#

3 Accepted Solutions

Accepted Solutions

You still have not answered me if from the VPN clients you can PING 192.168.1.1?

And if 192.168.1.1 is the deafult gateway for the local LAN behind the ASA?

Federico.

View solution in original post

Siva,

The reason you're not able to access the inside network from the VPN clients, is because your NAT 0 statement looks like this:

access-list inside_nat0_outbound extended permit ip 192.168.100.0 255.255.255.0
192.168.100.0 255.255.255.128

Should look like this:

access-list inside_nat0_outbound extended permit ip 192.168.1.0 255.255.255.0
192.168.100.0 255.255.255.128

Also, the reason that you lose Internet when connecting with VPN is because there's no split-tunneling configured:

access-list split-tunneling extended permit ip 192.168.100.0 255.255.255.0
192.168.100.0 255.255.255.128

group-policy ciscovpn attributes

      split-tunnel-policy tunnelspecified
      split-tunnel-network-list value split-tunneling

tunnel-group ciscovpn general-attributes

     default-group-policy ciscovpn

Federico.

View solution in original post

Your split-tunneling list looks like this:
access-list split-tunneling extended permit ip 192.168.100.0 255.255.255.0 192.168.100.0 255.255.255.128

Should look like this:
access-list split-tunneling extended permit ip 192.168.1.0 255.255.255.0 192.168.100.0 255.255.255.128

Federico.

View solution in original post

19 Replies 19

Hi,

This command:
static (outside,inside) 64.168.82.251 192.168.1.2 netmask 255.255.255.255
Should look like this:
static (inside,outside) 64.168.82.251 192.168.1.2 netmask 255.255.255.255

That should take care of the web server.

For the VPN client:
Enable the command:
management-access inside

And post the output from:
sh cry isa sa
sh cry ips sa

When attempting to connect from the VPN client.

Federico.

Webserver - : I have changed the static to (inside, outside), still it did not work, any more help will be really appreciated.

VPN: --   Here is the output

ciscoasa(config)# sh cry isa sa

There are no isakmp sas
ciscoasa(config)# sh cry ips sa

There are no ipsec sas

I have observed the log while connecting the VPN and it show some mismatching. Here is below.

Removing peer from correlator table failed, no match!

All IPSec SA proposals found unacceptable!

3 May 12 2010 22:28:35 713902    Group = ciscoasa, Username = siva, IP = 99.20.130.132, QM FSM error (P2 struct &0x437a098, mess id 0x3b6718ce)!

3 May 12 2010 22:28:35 713902    Group = ciscoasa, Username = siva, IP = 99.20.130.132, Removing peer from correlator table failed, no match!

4 May 12 2010 22:28:35 113019    Group = ciscoasa, Username = siva, IP = 99.20.130.132, Session disconnected. Session Type: IPSec, Duration: 0h:00m:00s, Bytes xmt: 0, Bytes rcv: 0, Reason: Phase 2 Mismatch

5 May 12 2010 22:28:35 713904    IP = 99.20.130.132, Received encrypted packet with no matching SA, dropping

Re: Webserver  is not able to access from outside the network, VPN in not accepting

Check with the command:
sh access-list inside_access_in
that port 80 traffic is getting hitted to the ACL from the outside.
This is because if I do a ''telnet 64.168.82.251 80'' the traffic seems to hit the server.

Question:
Can you reach the webserver from inside the ASA?

Regarding the VPN:
Phase 2 is not matching.
Please post the output from:
debug cry ipse 127

Federico.

Thanks for your reply.

I just reconfigured the VPN part and client is able to connect the VPN successfully. But two problmes still facing.

VPN client is not able to ping or access any resources from INISIDE the network. VPN disconnects after 30 minutes.

I am still working on the webserver access from aoutside part.

Any help will be highly appreciated.

Thanks

Siva

Hi Siva,

Just tested to browse: http://64.168.82.251, and it works OK (it's the Apache 2 Test Page). Seems like the webserver is now up and working.

For the VPN access, to ping the internal subnet after you are connected, please add the following:

crypto isakmp nat-traversal 25

policy-map global_policy
  class inspection_default
       inspect icmp

Also, can you ping 192.168.1.1 after connected via VPN?

Hope that helps.

Good Morning.

Yes, I fixed the webserver access from outside yesterday. It was the NAT issue and below lines added (it might help someone too, so I am pasting).

Static nat for webserver


static (inside,outside) 64.168.82.251 192.168.1.50 netmask 255.255.255.255
access-list outside_access_in permit tcp any host 64.168.82.251  80
access-group outside_access_in in interface outside

---------------------------------------------------------------------------------------

For VPN , I am  connecting from home, receiving the IP from VPN-POOL (10.10.100.2) and I can ping locally. But not any other IP address such as

192.168.1.1, 4.2.2.2.    Even local internet won't work if I connect VPN.

any thoughts?

Thanks,

Glad for the webserver.

For the VPN, check if by adding the commands:

management-access inside

crypto isakmp nat-t

sysopt connection permit-vpn

Can you PING 192.168.1.1 now?

Make sure that anything else that you want to reach has a default gateway pointing to the ASA.

Federico.

I have added the commands.  VPN connecting and receiving the IP address from the Pool.  Still cant ping the inside hosts.  Please Help......

===========================================================================

hostname ciscoasa
domain-name default.domain.invalid
enable password ibUNfy.Nk1xsLSb/ encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
name 192.168.1.60 Windows-Server description 192.168.1.60
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
nameif outside
security-level 0
ip address 64.168.82.250 255.255.255.248
!
interface Vlan3
no forward interface Vlan1
nameif dmz
security-level 50
ip address 10.10.10.1 255.255.255.0
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
switchport access vlan 3
!
ftp mode passive
dns server-group DefaultDNS
domain-name default.domain.invalid
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
object-group service DM_INLINE_TCP_1 tcp
port-object eq ftp
port-object eq ftp-data
port-object eq www
port-object eq https
port-object eq ssh
port-object eq telnet
object-group service DM_INLINE_TCP_2 tcp
port-object eq ftp
port-object eq ftp-data
access-list ciscovpn_splitTunnelAcl standard permit any
access-list inside_nat0_outbound extended permit ip any 10.10.50.0 255.255.255.1
92
access-list outside_access_in extended permit tcp any host 64.168.82.251 object-
group DM_INLINE_TCP_1 inactive
access-list outside_access_in extended permit tcp any host 64.168.82.252 object-
group DM_INLINE_TCP_2 inactive
access-list outside_access_in extended permit tcp any host 64.168.82.252 eq 3389
inactive
access-list outside_access_in extended permit tcp any host 64.168.82.253 eq pptp
inactive
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
mtu dmz 1500
ip local pool ciscovpn-pool 10.10.50.1-10.10.50.50 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-524.bin
asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) 64.168.82.251 192.168.1.50 netmask 255.255.255.255
static (inside,outside) 64.168.82.252 192.168.1.4 netmask 255.255.255.255
static (inside,outside) 64.168.82.253 Windows-Server netmask 255.255.255.255
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 64.168.82.254 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 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
http server enable
http 99.20.130.132 255.255.255.255 outside
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto dynamic-map outside_dyn_map 20 set pfs group1
crypto dynamic-map outside_dyn_map 20 set transform-set ESP-3DES-SHA
crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map
crypto map outside_map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
crypto isakmp nat-traversal  25
client-update enable
telnet 192.168.1.0 255.255.255.255 inside
telnet timeout 5
ssh 99.20.130.132 255.255.255.255 outside
ssh timeout 5
console timeout 0
management-access inside
dhcpd auto_config outside
!
dhcpd address 192.168.1.2-192.168.1.33 inside
dhcpd dns 4.2.2.1 4.2.2.2 interface inside
dhcpd enable inside
!

group-policy ciscovpn internal
group-policy ciscovpn attributes
dns-server value 4.2.2.1 4.2.2.2
vpn-tunnel-protocol IPSec
split-tunnel-policy tunnelspecified
split-tunnel-network-list value ciscovpn_splitTunnelAcl
username siva password j/596TABe3tp0Rk9 encrypted privilege 0
username siva attributes
vpn-group-policy ciscovpn
tunnel-group ciscovpn type ipsec-ra
tunnel-group ciscovpn general-attributes
address-pool ciscovpn-pool
default-group-policy ciscovpn
tunnel-group ciscovpn ipsec-attributes
pre-shared-key *
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
  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 pptp
  inspect icmp
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:adb49ff11e18f4ce1d260f6edda06fce
: end
ciscoa

You still have not answered me if from the VPN clients you can PING 192.168.1.1?

And if 192.168.1.1 is the deafult gateway for the local LAN behind the ASA?

Federico.

sorry for the late reply.

I could not ping 192.168.1.1 or any IP. But VPN is connecting successfully. ANother thing I had noticed is after connecting VPN I could not browse locally Also.

Please see my current configuration attached in txt file.

Siva,

The reason you're not able to access the inside network from the VPN clients, is because your NAT 0 statement looks like this:

access-list inside_nat0_outbound extended permit ip 192.168.100.0 255.255.255.0
192.168.100.0 255.255.255.128

Should look like this:

access-list inside_nat0_outbound extended permit ip 192.168.1.0 255.255.255.0
192.168.100.0 255.255.255.128

Also, the reason that you lose Internet when connecting with VPN is because there's no split-tunneling configured:

access-list split-tunneling extended permit ip 192.168.100.0 255.255.255.0
192.168.100.0 255.255.255.128

group-policy ciscovpn attributes

      split-tunnel-policy tunnelspecified
      split-tunnel-network-list value split-tunneling

tunnel-group ciscovpn general-attributes

     default-group-policy ciscovpn

Federico.

Internet access is working now. But still not able to ping 192.168.1.1    Thanks againg for your time and help.

here is the current configuration:

ciscoasa(config)# show run
: Saved
:
ASA Version 7.2(4)
!
hostname ciscoasa
domain-name default.domain.invalid
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
nameif outside
security-level 0
ip address 64.168.82.250 255.255.255.248
!
interface Vlan3
no forward interface Vlan1
nameif dmz
security-level 50
no ip address
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
ftp mode passive
dns server-group DefaultDNS
domain-name default.domain.invalid
object-group service DM_INLINE_TCP_1 tcp
port-object eq www
port-object eq https
port-object eq ssh
port-object eq telnet
object-group service rdp tcp
description rdp
port-object eq 3389
object-group service DM_INLINE_TCP_2 tcp
group-object rdp
port-object eq www
access-list outside_access_in extended permit tcp any host 64.168.82.253 eq pptp

access-list outside_access_in extended permit tcp any host 64.168.82.252 object-
group DM_INLINE_TCP_2
access-list outside_access_in extended permit tcp any host 64.168.82.251 object-
group DM_INLINE_TCP_1
access-list inside_nat0_outbound extended permit ip 192.168.1.0 255.255.255.0 19
2.168.100.0 255.255.255.128
access-list split-tunneling extended permit ip 192.168.100.0 255.255.255.0 192.1
68.100.0 255.255.255.128
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
mtu dmz 1500
ip local pool cisco-vpn 192.168.100.1-192.168.100.100
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-524.bin
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) 64.168.82.252 192.168.1.4 netmask 255.255.255.255
static (inside,outside) 64.168.82.251 192.168.1.50 netmask 255.255.255.255
static (inside,outside) 64.168.82.253 192.168.1.60 netmask 255.255.255.255
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 64.168.82.254 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 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
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto dynamic-map outside_dyn_map 20 set pfs group1
crypto dynamic-map outside_dyn_map 20 set transform-set ESP-3DES-SHA
crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map
crypto map outside_map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
crypto isakmp nat-traversal  20
client-update enable
telnet timeout 5
ssh timeout 5
console timeout 0
management-access inside
dhcpd auto_config outside
!
dhcpd address 192.168.1.2-192.168.1.33 inside
dhcpd dns 4.2.2.2 interface inside
dhcpd enable inside
!

group-policy ciscovpn internal
group-policy ciscovpn attributes
dns-server value 4.2.2.2
vpn-tunnel-protocol IPSec
split-tunnel-policy tunnelspecified
split-tunnel-network-list value split-tunneling
username siva password j/596TABe3tp0Rk9 encrypted privilege 0
username siva attributes
vpn-group-policy ciscovpn
tunnel-group ciscovpn type ipsec-ra
tunnel-group ciscovpn general-attributes
address-pool cisco-vpn
default-group-policy ciscovpn
tunnel-group ciscovpn ipsec-attributes
pre-shared-key *
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
  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
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:c7e5ebc2e4c40ed9d7ee39b12d1aa18f
: end
ciscoasa(config)#

Add this commands on the ASA and see if you can PING:

sysopt connection permit-vpn   --> this might not take it

crypto isakmp nat-t

Disconnect the VPN client, and connect and try again.

Federico.

I have addeded.

But no luck,  Could not ping 1923168.1.1 or any host inside.   Any other suggessions?

Thanks,

Siva

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: