Let's troubleshoot... We also do trainings .. Checkout our training page https://asame2.blogspot.com/p/we-also-deliver-trainings.html

Featured Post

How to generate a CSR on Cisco ASA using CLI? CSR- (Certificate signing request)

First thing we need is an RSA key pair:   crypto key generate rsa label SSL-Key modulus 1024 noconfirm Create a trust-point crypto ca...

Recent Comments

Recent Post

Thursday, 15 September 2016

Some users are unable to connect with anyconnect while others can : PUBLICPROXIES_ERROR_NO_INSTANCE


Hello there,

So this time I ran into an issue where some users (Windows) were unable to connect with any-connect while others can. Sometimes uninstalling anyconnect software helped, sometimes not.

They get error message : Failed to get configuration from secure gateway. Contact your system administrator

Luckily I  picked DART from a user PC and found the following:

Invoked Function: ConnectIfc::TranslateStatusCode
Return Code: -32899061 (0xFE0A000B)
TEST_TG: PUBLICPROXIES_ERROR_NO_INSTANCE
Connection attempt failed. Please try again


This led me to these two windows updates: 
KB3161949 also KB3160005

After I uninstalled these two windows updates, everything worked fine.

I hope this helps you :)

-
Raj

Some users are unable to connect with anyconnect while others can


Hello there,

So this time I ran into an issue where some users (Windows) were unable to connect with any-connect while others can. Sometimes uninstalling anyconnect software helped, sometimes not.

They get error message : Failed to get configuration from secure gateway. Contact your system administrator.

Luckily I  picked DART from a user PC and found the following:

Invoked Function: ConnectIfc::TranslateStatusCode
Return Code: -32899061 (0xFE0A000B)
TEST_TG: PUBLICPROXIES_ERROR_NO_INSTANCE
Connection attempt failed. Please try again


This led me to these two windows updates: 
KB3161949 also KB3160005

After I uninstalled these two windows updates, everything worked fine.

I hope this helps you :)

-
Raj

Wednesday, 14 September 2016

How to check if ASA has Apex license installed or not?



Q. How to check if ASA has Apex license installed or not?

A. Use command: debug menu license 23

Q. I am not able to select "Match All" for DAP Policy - Endpoint - Device - MAC address - MATCH ALL. I am trying to match (!=) for multiple mac addresses.
A. You will need to have "Advanced endpoint assessment" enabled.

Thursday, 11 August 2016

Run script when any-connect connects/disconnects


1. In XML profile, Preferences Part 2> Enable Scripting > Uncheck "Enable post SBL option"
2. Configuration > Remote Access VPN > Network (Client) Access > AnyConnect Customization/Localization> Script
3. Import > Add a name > Script runs when client disconnects > select platform windows > upload the script from your local machine > import now > apply
4. Refresh ASDM and make sure all settings are correctly applied. Check XML and make sure script file is present.

Wednesday, 1 June 2016

Policy based NAT on router


Here is my requirement:

I want to NAT the traffic coming from 10.2.2.0 0.0.0.255 going to 2.2.2.2

I want my source IP to change to 192.168.2.0/24 subnet, how do I do that?

1. Create an access list to define your actual traffic:
ip access-list extended ACL1
permit ip 10.2.2.0 0.0.0.255 host 2.2.2.2

2. Create a route map and call this ACL
 route-map mymap permit 10
  match ip add ACL1
3. Now create a pool for the IP range (NATed range)
 ip nat pool NAT1 192.168.2.1 192.168.2.254 prefix-length 24
4. Create your NAT statement now:
 ip nat inside source route-map mymap pool NAT1

Saturday, 30 April 2016

How to enable a aaa-server on ASA if it has failed?


How to verify the status of a aaa-server configure on ASA?

sh aaa-server
============================
Server Group:    Test
Server Protocol: radius
Server Address:  10.60.2.6
Server port:     1645(authentication), 1646(accounting)
Server status:   FAILED, Server disabled
 ==============================
Failed servers only reactivate after all of the servers in the group are inactive.

If the server is now available, test ping from ASA. Then we can enable it by following command:

aaa-server Test active host 10.60.2.6

If you want to disable a aaa-server, use following:
 aaa-server Test fail host 10.60.2.6
 
http://www.cisco.com/c/en/us/td/docs/security/asa/asa82/command/reference/cmd_ref/a1.html#wp1558160
 

Thursday, 14 April 2016

User authentication fails with ldap, how debugs will look like?


This is how the debugs for ldap user authentication will look like:

ASA(host)# test aaa autho TEST host 192.168.1.4
Username: awesome\test
INFO: Attempting Authorization test to IP address <192.168.1.4> (timeout: 12 seconds)

[-2147483639] Session Start
[-2147483639] New request Session, context 0x00002aaad5771be0, reqType = Other
[-2147483639] Fiber started
[-2147483639] Creating LDAP context with uri=ldap://192.168.1.4:389
[-2147483639] Connect to LDAP server: ldap://192.168.1.4:389, status = Successful
[-2147483639] supportedLDAPVersion: value = 3
[-2147483639] supportedLDAPVersion: value = 2
[-2147483639] Binding as awesome\aduser
[-2147483639] Performing Simple authentication for awesome\aduser to 192.168.1.4
[-2147483639] LDAP Search:
        Base DN = [DC=awesome,DC=ca]
        Filter  = [sAMAccountName=awesome\\test]
        Scope   = [SUBTREE]
[-2147483639] Search result parsing returned failure status
[-2147483639] Fiber exit Tx=259 bytes Rx=1023 bytes, status=-1
[-2147483639] Session End
ERROR: Authorization Rejected: Unspecified


This definitely means either username is wrong or password. There is one more case : Username doesn't exist :)

Share/like/google+ if this has helped you!

LDAP Admin bind failed debugs


This is how the debugs will look like if LDAP admin bind fails:

ASA(host)# test aaa autho TEST host 192.168.1.4
Username: raj
INFO: Attempting Authorization test to IP address <192.168.1.4> (timeout: 12 seconds)

[-2147483640] Session Start
[-2147483640] New request Session, context 0x00002aaad5771be0, reqType = Other
[-2147483640] Fiber started
[-2147483640] Creating LDAP context with uri=ldap://192.168.1.4:389
[-2147483640] Connect to LDAP server: ldap://192.168.1.4:389, status = Successful
[-2147483640] supportedLDAPVersion: value = 3
[-2147483640] supportedLDAPVersion: value = 2
[-2147483640] Binding as aduser
[-2147483640] Performing Simple authentication for aduser to 192.168.1.4
[-2147483640] Simple authentication for aduser returned code (49) Invalid credentials
[-2147483640] Failed to bind as administrator returned code (-1) Can't contact LDAP server

[-2147483640] Fiber exit Tx=205 bytes Rx=723 bytes, status=-2
[-2147483640] Session End
ERROR: Authorization Server not responding: AAA Server has been removed

Remember: If admin bind fails it will clearly say "Failed to bind as administrator"

Below was the configuration during this test:

aaa-server TEST (inside) host 192.168.1.4
 ldap-base-dn DC=awesome,DC=ca
 ldap-group-base-dn DC=awesome,DC=ca
 ldap-scope subtree
 ldap-naming-attribute sAMAccountName
 ldap-login-password *******
 ldap-login-dn "CN=aduser,CN=Users,DC=norseman,DC=ca"
 server-type microsoft
 ldap-attribute-map LDAP_memberOf


I changed the ldap-login-dn to domain\username. The new configuration looks like:

aaa-server TEST (inside) host 192.168.1.4
 ldap-base-dn DC=awesome,DC=ca
 ldap-group-base-dn DC=awesome,DC=ca
 ldap-scope subtree
 ldap-naming-attribute sAMAccountName
 ldap-login-password *******
 ldap-login-dn awesome\aduser
 server-type microsoft
 ldap-attribute-map LDAP_memberOf


Share/like/google+ if this has helped you! 

Wednesday, 30 March 2016

Anyconnect 4.x to use SHA 256


I want my any-connect to use SHA2 or SHA256 when it negotiates. How do I go about that?

Answer: use the below ciphers:

  ssl cipher tlsv1.2 custom "AES256-SHA256:AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:DES-CBC3-SHA:DES-CBC-SHA:RC4-SHA"


I am unable to connect using any-connect 3.x, I get an error message : Unable to reach host / verify internet connectivity.

Answer: 
Check "sh run all ssl"
make sure you have "ssl server-version tlsv1" This means that ASA supports tlsv1 and above.  Because any-connect 3.x does not support tlsv1.1 and 1.2.


Tuesday, 29 March 2016

How to boot ASA from/using TFTP


So you have issue with your flash memory and ASA is unable to pick the image from flash.
It goes into a booting loop but never boots up.

You can now boot using a TFTP server.

IP address that you want to assign to ASA:

ADDRESS=10.197.222.100


IP Address of TFTP Server:
SERVER=10.197.161.160

Default gateway IP address:
GATEWAY=10.197.222.1

Image path or name:
IMAGE=asa961-smp-k8.bin

On which port do you want to assign IP address on ASA:
PORT=Gi0/0

Enter this command to start download process: tftpdnld
==============

All the commands at once:


ADDRESS=10.197.222.100
!
SERVER=10.197.161.160
!
GATEWAY=10.197.222.1
!
IMAGE=asa961-smp-k8.bin
!
PORT=Gi0/0
!
set
!
tftpdnld

Monday, 21 March 2016

Port forwarding on ASA


 I need to access a resource from outside world that is in my private network at port 5900 using ASA's public IP.

object service port_vnc

service tcp source eq 5900
!
nat (inside,outside) source static obj_192.168.1.11 interface destination static any_1 any_1 service port_vnc port_vnc

Saturday, 27 February 2016

Packet capture on IOS XE



Specify the interface where you would like to take capture:
monitor capture mycap interface <interface_name> both

What are the interested IPs:
monitor capture mycap match ipv4 host <IP> host <IP>

or you can apply captures for a protocol:

monitor capture mycap match ipv4 protocol ?
tcp
udp
 monitor capture mycap match ipv4 protocol tcp any any

Start the capture:
monitor capture mycap start

Stop the capture:
monitor capture mycap stop

Look at the capture: If you do not stop the capture and directly enter this command, it automatically stops the capture.
show monitor cap mycap buffer bri

If you are done taking a look at this capture and would like to clear the capture so that you can capture some new data:

monitor capture mycap clear






Wednesday, 10 February 2016

Tuesday, 9 February 2016

How to check on which port ASA is listening at?


"show asp table sockets" will show you all the ports that an ASA is listening at.

 TEST-ASA5505(config-webvpn)#  sh asp table so
Protocol  Socket    Local Address               Foreign Address         State
SSL       00022cef  10.10.10.253:443            0.0.0.0:*               LISTEN
TCP       0005509f  10.10.10.253:23             0.0.0.0:*               LISTEN
TCP       0006af1f  10.10.10.253:22             0.0.0.0:*               LISTEN
TCP       00095f0f  1.93.34.130:22             0.0.0.0:*               LISTEN
SSL       0076a158  10.10.10.253:443            10.10.10.55:60820       ESTAB
SSL       007e4038  10.10.10.253:443            10.10.10.55:60824       ESTAB
SSL       08f3732f  1.93.34.130:4443           0.0.0.0:*               LISTEN
DTLS      08f5b9df  1.93.34.130:443            0.0.0.0:*               LISTEN

How many address pools can be configured in a tunnel group or group policy?


A maximum of 6 address pools can be configured under a tunnel group or group policy.

This is what happens when you try to call 7th address pool.

Test-ASA(config-tunnel-general)# address-pool 7
ERROR: list full: only 6 address pools can be specified

For more reference :
http://www.cisco.com/c/en/us/td/docs/security/asa/asa70/configuration/guide/config/vpngrp.html