Posts

Time to leave Google and Duck Duck Go waves to you

Image
Hello, nice to meet you again. This time, i just want to share my knowledge to you guys.         Yes, I am a tech guy. I daily works around with tech.  Google — Yes, i admit it — One of my teacher who finds me a lot of information to me.        After many time spending with Google, I found myself my search and related words are automatically popping and recommending when i typed something in search box. They are tracking me, they recommend me places and food based on my location.  Uh — — — this is not good lah. πŸ˜‚ Then, one day one of my co-workers recommend me to use Duck Duck Go . At first i thought the name is so funny and interesting, then I started using it. Wow — — it’s good enough lah. πŸ™‹ Like their quote — ‘DuckDuckGo — Privacy, simplified. ’ It is so simple and duck duck go doesn’t track your search and it saves your privacy and security.     ...

cisco csr1000v ios upgrade or downgrade

Image
Good Morning! Today Let me share about upgrading or downgrading ios using ansible. Original idea credit to eanylin ( https://github.com/eanylin ). I follow rule for ios upgrade guide from cisco ( https://www.cisco.com/c/en/us/td/docs/routers/csr1000/software/configuration/b_CSR1000v_Configuration_Guide/b_CSR1000v_Configuration_Guide_chapter_01001.html ) and add some intelligence twisted code to each four roles. Hope you like it.  Please check this out πŸ˜‰ and enjoy! https://github.com/tproximus/cisco-csr1000v-ios-upgrade-downgrade Have a nice day!

How to create Slack Webhooks

Image
Today let me show you how to generate a slack webhook. Slack webhooks is  a simple way to post messages from external sources into Slack. My steps to get slack webhook were as follow: Step1) I created slack app by merging one of my created slack workspace at this URL: https://api.slack.com/apps Step2) go to “Incoming Webhooks” to create webhook. Step3) active incoming webhooks Step4) create new webbook to workspace or merge webhook to channel Step5) Then select a channel from your workspace. Step6)finally got webhook url to work with slack api. Step7) can sent test message to your channel by using curl. Note: TDK572UAW/BLGRR1X6X/C0etNQsdetn06OH3qE9rqsPx used to push slack notification via Ansible slack module $curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/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 PS: I del...

Python3 - Basic Knowledge of using Dictionary

Image
<Zawgyi> Hello all again  ပါπŸ˜ƒ  α€…ာα€™ ေα€›းတာၾကာပီဆိုေတာ့ ထရင္ဆံုး Draftထဲα€€ ထက်α€”္ေα€œးα€›ွင္းေပါ့ α€’ီတ ေခါα€€္ ေၿပာα€™ွာα€€ ေတာ့ ထခုခ်ိα€”ိα€™ွာ dataေတြα€™်ားα€œာပီ ထဲ့α€œိုပဲ တဖက္α€™ွာ α€€ိုα€š့္α€›ဲα‚• systemα€™ွာ appတခု script ျα€–α€…္ျα€–α€…္α€™ွာ Data ေတြα€€ို α€˜α€š္α€œို structureα€€်α€€် α€žိα€™္းα€™α€œဲဆိုတာ α€…α€₯္းα€…ားα€…α€›ာျα€–α€…္α€œာပီ α€€ိုα€š္α€€ α€œα€€္α€›ွိ Python α€”ဲα‚”α€€်င္α€œα€Š္ေနတာ့ α€’ီα€™ွာ dataေတြα€€ို α€˜α€š္α€œို structureα€€်α€€်α€žိα€™္းႏိုင္α€œဲ ေျပာျပ α€žြားပါα€™α€š္..... Python α€™ွာ mainly ထေα€”α€”ဲ. data structure 4α€™်ိဴး α€›ွိပီး - list, dictionary, tuples and sets! α€’ီtopic α€™ွာတော့ dictionary α€€ိုα€˜α€š္α€œို α€žံုးပီး Dictionary, List  α€˜α€š္α€œို α€€ြာၿခားα€œဲα€›α€š္ α€›ွင္းျα€•α€žြားပါ့α€™α€š္ How to use and declare and access Dictionary           α€’ီ topic α€™ွာ dictionary α‚€α€€ီးα€€ို α€…ာα€”ဲα‚” α€›ွင္းျပတာထက္ ပိုျမင္ေထာင္ exampleေα€œးα€”ဲα‚”ေပ့ါ α€€ိုα€š္ေတြ dictionary αΎα€€α€Š့္ရင္ alphabetα€”ဲα‚”α€›ွာαΎα€€α€α€š္ေα€œ. α€α€”α€Š္းထားျဖင့္ α€’ါα€€ keyေပါ့ keyဆိုတ့ဲ alphabet α€”ဲα‚”α€›ွာα€™ွ α€žူα‚”α€›ဲα‚• value- wordα€›ဲဲ့ meaning α€€ိုα€žိတာေα€œ          ထဲ့α€œိုပါပဲ pyth...

Testing about Elasticsearch, Logstash and Kibana (ELK)

<Zawgyi> Hello again πŸ˜… Today α€€်ေα€”ာ္ lab တခုα€…α€™္း ခဲ့တာα€”ဲα‚” ပတ္α€žα€္ပီး ေျပာျပခ်င္α€œို႔ပါα€—်။ α€…α€™္းα€™ိα€žြားတဲ့ေထၾကာင္းα€€ေတာ့ dockerized α€œုပ္ထားတဲ့ applicatin server ေတကို track α€œုပ္ခ်င္တာေၾကာင့္α€›α€š္ centralized log server တခု α€€α€œိခ်င္တာေၾကာင့္α€›α€š္ပါ။ ပထမတခ်α€€္ထေα€”α€”ဲα‚” α€€်ေα€”ာ္ α€…α€™္းထားတဲ့ lab α€›ဲα‚• minimum requirements ေα€œးေတ ေျပာျပပါ့α€™α€š္α€—်။ α€€်ေα€”ာ္ server ေα€€ာ client ေα€€ာ vmware workstations ေα€•αšα€™ွာပဲ α€…α€™္းထားပါα€α€š္။ Operation System = CentOS vCPU = 1 Memory = 2GB vDisk = 40 GB α€…ီα€”ဲ႔ပါ။ Third party ထေα€”α€”ဲα‚”α€€ေတာ့ Ansible managed host α€α€œံုးα€œိုပါα€α€š္။ α€’ါေα€•α€™α€š့္ α€€်ေα€”ာ့္α€™ွာ resource မ႐ွိေတာ့ python virtual environment α€€ို server α€œုပ္α€™α€š့္ host ေα€•αšα€™ွာ α€žံုးပီးပဲ α€€α€œိα€œိုα€€္ပါα€α€š္။ Python Virtual Environment α€€ိုေတာ့ ထံုးα€…ံထတိုင္း google α€€ေα€”α€€ိုးα€€ားထားတာα€€ေတာ့ α€’ီα€œိုပါ πŸ˜… Install python v3 [kp@node-1]$ sudo yum install python34 python-pip Update pip and virtualenv [kp@node-1]$ sudo pip install –U pip && sudo pip install –U virtualenv Create and active python3 virtualenv [kp@n...

The IEEE 802.1X Standard

Image
{Zawgyi} Hello! မဂၤα€œာပါခင္α€—် ! ထရင္တပတ္α€€ α€€်ေα€”ာ္ 802.1x lab ေα€œးα€…α€™္းျα€–α€…္ခဲ့ပါα€α€š္။ ထဲ့ထဲα€€α€™ွ α€€်ေα€”ာ္α€žိခဲ့တဲ့ The IEEE 802.1x standard ထေၾကာင္းေα€œး ေဆြးေႏြးေျပာျပခ်င္ပါα€α€š္။ The IEEE 802.1x ဆိုတာα€€ေတာ့ LANs α€’ါα€™ွα€™α€Ÿုတ္ wireless LANs ထဲα€™ွာ႐ွိေနတဲ့ device ထခ်င္းခ်င္း ခ်ိတ္ဆက္α€‘α€žံုးျပဳα€›ာα€™ွာ α€žံုးတဲ့ authentication standard α€€ိုα€žα€္α€™ွတ္ေပးတဲ့ " α€…ံ " ပါ။ The IEEE 802.1x standard α€€ိုα€žိေထာင္α€™α€œုပ္ခင္ point-to-point protocol (PPP) α€”ဲα‚” extensible-authentication-protocol (EAP) တိုα‚”α€€ိုထက်α€₯္းခ်ံဳးေα€œ့α€œာαΎα€€α€Š့္α€™α€š္ဆိုရင္ PPP protocol α€€ username α€”ဲα‚” password α€€ိုα€žံုးပီး access α€œုပ္တဲ့ user α€€ို identify α€œုပ္α€α€š္။ EAP protocol α€€်ေတာ့ password α€€ေα€” challenge-response tokens ေတ public-key infrastructure certificate ေα€α€‘α€žံုးျပဳၿပီး authentication α€œုပ္ပါα€α€š္။ The IEEE 802.1x standard α€™ွာα€€်ေတာ့ EAP protocol α€€ိုα€žံုးပီး authentication α€œုပ္α€α€š္ေပါ့။ ထဓိကထားျဖင့္ထစိတ္ထပိုင္းα€žံုးခုေα€•αšα€‘ေျခခံပါα€α€š္။ supplicant (authenticate α€œုပ္α€™α€š့္ client), radius (authentication server) ...

The 802.1x wire lab

Image
Operation Summary Today I tested 802.1x lab with cisco 2960 switch as Authenticator, DaloRadius as Authentication Server and Two window 7 clients as supplicant. Although EAP support different kind of authentication mechanisms, I use simple username and password authentication for lab. Server configuration Installing Free radius [root@radius ~]# yum -y install freeradius freeradius-utils freeradius-mysql Enable freeradius with below commands after successful installation. [root@radius ~]# systemctl start radiusd [root@radius ~]# systemctl enable radiusd Check the service status [root@radius ~]# systemctl status radiusd Start and enable firewalld [root@radius ~]# systemctl enable firewalld [root@radius ~]# systemctl start firewalld [root@radius ~]# systemctl status firewalld Add permanent rules to default zone to allow radius service.   [root@radius ~]# firewall-cmd --add-servi...