Skip to main content

Posts

Showing posts from April, 2018

Packet capturing of different protocols using Wireshark

Wireshark is the world’s foremost and widely-used network protocol analyzer . It is used for network troubleshooting, analysis, software and communications protocol development, and education. It is a free and an open-source packet analyzer.It is cross-platform. To trace the packets first of all download and install Wireshark in the windows operating system. Open Wireshark and then choose the interface. 1.Tracking FTP Packets Step 1:   $sudo apt-get install vsftpd  command on Ubuntu terminal Step 2: Start Wireshark and open command prompt in windows. In the command prompt enter the IP address of Ubuntu Machine. It asks for username and password authentication for the Ubuntu  machine. Step 3 : Start capturing by clicking the green button in Wireshark.   Step 4: In the filter of Wireshark ,  enter ftp followed by IP address to track. Step 5 : Press the red button to stop capturing. This server is not secure b

Configuring 2 backend servers and a load balancer with HAProxy

A load balancer is a device that distributes the traffic across a cluster of servers. In computing, load balancing improves the distribution of workloads across multiple computing resources, such as computers, a computer cluster, network links, central processing units, or disk drives.As a result, it improves responsiveness and increases the availability of applications.  For load balancing, we need to install LAMP server on backend servers and HAProxy on the load balancer. HAProxy is a free, open source software that provides a high availability load balancer and proxy server for TCP and HTTP based applications that spread requests across multiple servers. Here we will make two backend servers and one load balancer. At two backend servers enter the following commands— $sudo apt-get install apache2 $sudo apt-get install mysql-server $sudo apt-get install php libapache2-mod-php php-mysql $sudo gedit /var/www/html/index.html (Make some changes in t

Network Connection verification and Troubleshooting commands in Linux

There are several commands which can help to diagnose the computer networking in Linux. ifconfig Command Interface configuration(ifconfig) is a command-line interface tool used for configuring, controlling and querying TCP/IP network interface parameters.It is used to initialize an interface, set the IP address and netmask of a network interface and enabling or disabling an interface on demand.  This command is mainly used to know the IP address and MAC address assigned to an interface. -->ifconfig command with no arguments will display will display all network interfaces currently in operation. $ifconfig -a  It will display all available details of the system irrespective of status.It doesn't bother whether the interface is inactive or active.  $ifconfig eth0 It will show the configuration of a specific interface i.e. it will display the configuration of eth0 only. We can change the status of a specific network inte

Network Connection verification and Troubleshooting commands in Windows

To ensure the proper network connection in the system, we do the following three types of checking: ---   Check the NIC card --- Check whether we have an IP or not or our gateway is active or not by a ping test -----  Check if the port no or the service is active or not To check the connection go to command prompt and enter the commands >ping localhost  then NIC  working. >ping 172.29.0.1 then gateway working >ipconfig In computing, ipconfig (internet protocol configuration) is a console application (command line tool) in Microsoft Windows used to control the network connections on windows.It displays all current TCP/IP network configuration values and can modify DHCP and DNS settings. Usually, ipconfig command is used with the command-line switch  /all. > ipconfig /all This command shows the various network configurations, MAC address, default gateway and IP addresses of different servers on the network like dns, DHCP etc