Tuesday, 22 December 2015
Purple belt - BJJ
CCNA Exam Passed!
Today is my big day. I achieved CCNA title and pass this exam with good score.
I can rest for now, its also the end of 2015 year there fore I'm starting prepairing for christmas and new year party.
I hope that new year 2016 will be good time to try go further for achieve CCNP title.
Wooooooohhhoooooo!
Tuesday, 7 July 2015
Cisco Security - IPSec Tunnels diagnose
That means then interfaces first shut down and by short time move up.
I will show you what should we do for diagnose this issue.
First check logs by command:
sh logg
result:
2755318: Jul 7 14:46:16: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel30, changed state to down
2755319: Jul 7 14:46:16: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel20, changed state to down
2755929: Jul 7 14:48:06: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel20, changed state to up
2756083: Jul 7 14:48:16: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel30, changed state to up
If you saw something like above then tunnel is flapping.
Next use this command for checking status of tunnels:
sh crypto isakmp sa
result:
IPv4 Crypto ISAKMP SA
dst src state conn-id status
x.x.x.x x.y.z.z QM_IDLE 1194 ACTIVE
y.y.y.y x.y.z.z QM_IDLE 1193 ACTIVE
If status is ACTIVE then crypto key has been exchanged correct.
Next important command is:
sh crypto session brief
this command allow us to check status of all tunnels.
Last command is:
sh crypto session detail
In this command important is uptime parameter. It maight be useful when we want know how long tunnel is running.
This commands are useful for basic troubleshooting. In future I will write more detail information.
My IT team from Asia
I'm glad that I was working with this guys.
It was big plesure to work with you guys. Many thanks for all! Sie! Sie!
Monday, 18 May 2015
Wednesday, 22 April 2015
EEM - Embedded Event Manager
Look below. Here is my script which I use daily. In working hours I must use limitation for DFS traffic from our local machines. I did not have time for create complicated script so my idea is simple: "Remove QoS policy from interface where limit is active by selected period" after specified time I add QoS policy to interface again.
Look:
event manager applet DISABLE_DFS_LIMIT_WEEK
event timer cron cron-entry "10 18 * * 1-5"
action 1.0 cli command "enable"
action 2.0 cli command "configure terminal"
action 3.0 cli command "interface GigabitEthernet0/1"
action 4.0 cli command "no service-policy input QOS_MARKING"
action 5.0 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "routername1: Bandwidth limit between X and Y is uncontrolled"
This same script you can use for enable but must change only cron settings and one command. Look at bold and underline fonts.
Usefull mdf file - Embedded Menu Manager
Here is created file named *.mdf.
You can run this file using "emm" tool include cisco IOS.
MDF file allows you to create menu with many functions. It is very useful for administrators who using many of this same function to analyse, diagnose, or checking network parameters. MDF - using XML language. You can use ISO commands include XML, you can use TCL scripts also.
Here is simple mdf file which I created and moved to router. If you want to run this file use:
Wednesday, 18 March 2015
Polycom RealPresence Desktop & Active Dircetory communication
I decided that I will be using shortcut for easy notification. In this scenario:
RPD is a Polycom server AD is a Windows Server with 2008R2 operating system.
Let's start:
RPD -> AD = DNS QUERY
AD -> RPD = DNS RESPONSE
RPD <-> AD = SYN,SYN ACK
RPD -> AD = NBSS SESSION REQUEST
AD -> RPD = NBSS POSITIVE SESSION RESPONSE
RPD -> AD = SMB NEGOTIATE PROTOCOL REQUEST
AD -> RPD = SMB NEGOTIATE PROTOCOL RESPONSE
RPD -> AD = SMB SESSION SETUP ANDX REQUEST, NTLMSSP_NEGOTIATE
AD -> RPD = SMB SESSION SETUP ANDX RESPONSE, NTLMSSP_CHALLENGE, ERROR: STATUS_MORE_PROCESSING_REQUIRED
RPD -> AD = SMB SESSION SETUP ANDX REQUEST, NTLMSSP_AUTH, USER: domena\nazwa_komputera
AD -> RPD = SMB SESSION SETUP ANDX RESPONSE
AD -> RPD = SMB TREE CONNECT ANDX RESPONSE
AD -> RPD = SMB NT CREATE ANDX RESPONSE
RPD -> AD = DCERPC BIND: CALL_ID: XXX
RPD -> AD = LSARPC LSA_OPENPOLICY2 REQUEST
AD -> RPD = LSARPC LSA_OPENPOLICY2 RESPONSE
AD -> RPD = LSARPC LSA_QUERYINFOPOLICY RESONSE
RPD -> AD = LSARPC LSA_CLOSE REQUEST
RPD -> AD = SMB CLOSE REQUEST
AD -> RPD = SMB CLOSE RESPONSE
RPD -> AD = NT CREATE ANDX REQUEST, PATH: \NETLOGON
AD -> RPD = NT CREATE ANDX RESPONSE FID: XxXXXX
AD -> RPD = DCERPC CALL_ID: XXX .. RESULT: ACCEPTANCE
RPD -> AD = RPC_NET NETSERVERREQCHALLENGE REQUEST
AD -> RPD = RPC_NET NETSERVERREQCHALLENGE RESPONSE
RPD -> AD = RPC_NET NETSERVERAUTHENTICATE2 REQUEST
AD -> RPD = RPC_NET NETSERVERAUTHENTICATE 2 RESPONSE
AD -> RPD - RPC_NET NETLOGONSAMLOGON RESONSE
MANY ACK, RST, ACK AND RETRANSIMISSION ALSO
RPD -> AD = RPC_NET NETLOGONSAMLOGON REQUEST
AD -> RPD = RPC_NET NETLOGONSAMLOGON RESPONSE
I dropped many duplicate TCP [ack] AND other retransmissions. If you have any problem with communication between, you can compare this communication and find differences to resolve your problem. If you are a programmer this type communication maybe it can be interesting for you.
Monday, 9 March 2015
Usefull commands for admins (cisco router)
sh crypto session brief
How to check VPN tunnel/tunnels status:
sh crypto isakmp sa
Show IP NAT translations include IP
sh ip nat translations | inc x.x.x.x
How to verify QoS policy:
sh policy-map interface type x/x
Show me neighbor devices (CDP must be enable):
sh cdp neighbors
Wednesday, 4 March 2015
How to export certificate from ASA to JAVA (self-signed)
asa1(config)# sh crypto ca trustpoints
Next we are using export to pem file (must write name of trustpoint):
asa1(config)# crypto ca export TRUST_NAME identity-certificate
you will see:
-----BEGIN CERTIFICATE-----
MIIB+zCCAWSgAwIBAgIEJqphUTANBgkqhkiG9w0BAQUFADBCMRMwEQYDVQQDEwpD
TkJFSUZXRDAxMSswKQYJKoZIhvcNAQkCFhxDTkJFSUZXRDAxLmRwY2xlYW50ZWNo
LmxvY2FsMB4XDTEzMTEwNjE1MzQwOFoXDTIzMTEwNDE1MzQwOFowQjETMBEGA1UE
..
-----END CERTIFICATE-----
Next you must copy this all text from console and paste in text file (notepad) and save as *.CSR
Next open Java Control Panel, go to Security tab and run Manage Certificates button. You shoud see Certificates window. Select Certificate Type like "secure site" and import your file. Now you can open your ASDM via web browser using Java.