Configure SSH Cisco

May 23, 2013
Make sure that target router are running Cisco IOS Release 12.1(1)T image or later to support SSH.

Before continuing this task don't forget to change the hostname of the router

R1(config)#ip domain-name jpudasaini.com.np
R1(config)# crypto key generate rsa

The name for the keys will be: R1.jpudasaini.com.np
Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes.
How many bits in the modulus[512]: 768
% Generating 768 bit RSA keys, keys will be non-exportable...[ok]

R1(config)#ip ssh time-out 60
R1(config)#ip authentication-retries 3
R1(config)#username jayaram secret cisco
R1(config)#line vty 0 15
R1(config-line)#transport input ssh
R1(config-line)# exit

after this configuration you can login
R1#ssh -l {login with(login name)} -v [ssh version 1 or 2] [remote server name]


Basic Configuration Mikrotik Router

May 14, 2013
Make sure you have download Winbox from mikrotik site and plug MT Router power adapter into the power socket. Open the winbox and login with username admin and blank password. After that follow up below process for Basic router configuration.

Setp 1: Click on IP>Address>click Plus sign. Then Add IP address like below.

Type WAN IP here(IP provide by your ISP) and choose WAN interface.
Step 2: Again click On plus sign and add LAN IP and choose LAN interface.
Step 3: Add DNS, Click on IP>DNS>type ISP provided DNS here(I use open DNS ).
Step 4: To add route, Click on IP>Routes>click Plus sign, Add Your ISP's gateway here.
Step 5: NAT, Click on IP>Firewall>Click on NAT> click on + sign.
Choose <srcnat> Out. interface<WAN port> Apply>OK
On Action tab, choose masquerade>Apply and OK.
Step 6: Setup DHCP, IP>DHCP server>DHCP Setup>
Now follow up onscreen process.

                                         



<On this field Choose Your ISP DNS server> 
Now your router is ready to use.
Enjoy







Simple Failover Mikrotik

May 13, 2013
Simple fail-over Mikrotik router configuration.
Most of the user wants backup link (Fiber link with Wireless backup), in case fiber down wireless link auto up. No downtime for the user. Here is simple setting on Mikrotik for fail-over.
I'm very great full to Anton to point out the mistake in src-address. It has been corrected now.

****default routes for new outgoing traffic.****
/ip route
add dst-address=0.0.0.0/0 gateway=ISP-GW-ADDR-1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=ISP-GW-ADDR-2 distance=2

++masquerade both WAN connections++
/ip firewall nat
add chain=srcnat src-address=192.168.0.0/24 out-interface=WAN-1 action=masquerade
add chain=srcnat src-address=192.168.0.0/24 out-interface=WAN-2 action=masquerade

Thats it.



Adobe flash player install ubuntu and kali linux

May 10, 2013
Recently I fresh install Ubuntu 13.04. Then I install chromium browser, after that I'm facing youtube video streaming. Chromium doesn't have inbuilt flash player like in Chrome. I tried to install adobe flash player searching from internet but no avail.

But I found this command which worked. Make sure you install chromium browser. After that use following command to install flash

(I already download tar.gz file from adobe site and extracted, you can use below command to get flash)

sudo apt-get install flashplugin-nonfree

Then you need to copy libflashplayer.so file into /usr/lib/chromium-browser/plugins directory
(I already extracted and copy from extracted folder to following folder, you can use below command)

sudo cp /usr/lib/flashplugin-installer/libflashplayer.so /usr/lib/chromium-brower/plugins

For kali linux

cp/usr/lib/flashplugin-installer/libflashplayer.so /usr/lib/mozilla/lougins

To run the browser just run the following command from terminal

chromium-browser -- enable-plugins


Enjoy!