Posts

Networking interview questions

CCNA admin interview questions Networking interview questions 1.You need to retrieve a file from the file server for your word processing application, which layer of the OSI model is responsible for this function? 1.Presentation layer 2.Application layer 3.Session layer 4.Transport layer 5.Datalink layer 2.You are working in a word processing program, which is run from the file server. Your data comes back to you in an unintelligible manner. Which layer of the OSI model would you investigate? 1.Application layer 2.Presentation layer 3.Session layer 4.Network layer 5.Datalink layer 3.The IEEE subdivided the datalink layer to provide for environments that need connectionless or connection-oriented services. What are the two layers called? 1.Physical 2.MAC 3.LLC 4.Session 5.IP 4.You are working with graphic translations. Which layer of the OSI model is responsible for code formatting and conversion and graphic standards. 1.Network lay...

Linux BOOT Process

Boot sequence summary When a PC is booted it starts running a BIOS program which is a memory resident program on an EEPROM integrated circuit. The BIOS program will eventually try to read the first sector on a booting media such as a hard or floppy drive. The boot sector contains a small program that the BIOS will load and attempt to pass run control to. This program will attempt to read the operating system from the disk and run it. LILO is the program that Linux systems typically use to give users a choice of operating systems to run. It is usually installed in the boot sector which is also called the master boot record. If the user chooses to boot Linux, LILO will attempt to load the Linux kernel causing the following basic events to happen: BIOS Load boot sector from one of: • Floppy • CDROM • Hard drive The boot order can be changed from within the BIOS. BIOS setup can be entered by pressing a key during bootup. The exact key depends varies, but is often one of D...

Introduction to Linux FTP server

Introduction The File Transfer Protocol (FTP) is used as one of the most common means of copying files between servers over the Internet. Most web based download sites use the built in FTP capabilities of web browsers and therefore most server oriented operating systems usually include an FTP server application as part of the software suite. Linux is no exception. This chapter will show you how to convert your Linux box into an FTP server using the default Very Secure FTP Daemon (VSFTPD) package included in Fedora. FTP Overview FTP relies on a pair of TCP ports to get the job done. It operates in two connection channels as I'll explain: FTP Control Channel, TCP Port 21: All commands you send and the ftp server's responses to those commands will go over the control connection, but any data sent back (such as "ls" directory lists or actual file data in either direction) will go over the data connection. FTP Data Channel, TCP Port 20: This port is used for all subs...

The Linux Boot Sequence

You might remember when you installed Linux that the installation process prompted you for a list of partitions and the sizes of each in which your filesystems would be placed. When allocating disk space for the partitions, the first sector, or data unit, for each partition is always reserved for programmable code used in booting. The very first sector of the hard disk is reserved for the same purpose and is called the master boot record (MBR). When booting from a hard disk, the PC system BIOS loads and executes the boot loader code in the MBR. The MBR then needs to know which partitions on the disk have boot loader code specific to their operating systems in their boot sectors and then attempts to boot one of them. Fedora Linux is supplied with the GRUB boot loader which is fairly sophisticated and therefore cannot entirely fit in the 512 bytes of the MBR. The GRUB MBR boot loader merely searches for a special boot partition and loads a second stage boot loader. This then reads...

How can I prevent users from connecting to a USB storage device? in Windows OS

It is easy to lock a machine down, disable the floppy, and cdrom in the bios. There is a simple registry change that will keep the USB storage drivers from starting when the system boots. Keeps people from walking up to a PC and copying data off with a USB key, but allows you to keep your scanner, keyboard, and mouse working. As always - back your system up before messing around in the registry. Just open regedit and browse to this key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor Notice the value 'Start' Switch this value to 4, and USB storage devices are disabled. Switch this value to 3, and USB storage devices are enabled. Hence you have Prevented users from connecting a USB device

Hardening Linux Server

Some Steps Installation of Linux OS Install the OS with minimal installation, then proceed to install only the required packages. Removing the unwanted packages in os like gnome, kde,games,Openoffice not needed for server configuration. Securing the Bootloader Grub should be configured with password Restrict access to Server /etc/hosts.allow and /etc/hosts.deny should be configured Modify /etc/hosts.allow Suggested format: # Approved IP addresses ALL: 192.168.0.1 ALL: 192.168.5.2 # CSV uploader machine proftpd: 10.0.0.5 # pop3 from anywhere ipop3: ALL Modify /etc/hosts.deny ALL:ALL EXCEPT localhost:DENY Securing SSH vi /etc/ssh/ssh_config change the following protocol 2,1 to protocol 2 PermitRootLogin yes to PermitRootLogin no Restart SSHD: /etc/rc.d/init.d/sshd restart Setting SSH Banner for the making user to consent to the terms & conditions # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #****************...

Service Start And Stop /Directory Path and Port Number

Service ssh Application Startup directory /etc/init.d/ Startup Method service sshd start Log file /var/log/secure Ports 22 *************************************************** Service snmp Application Startup directory /etc/init.d/ Startup Method service snmpd start Log file /var/log/snmpd.log Ports 199 *************************************************** Service httpd Application Startup directory /etc/init.d/ Startup Method Service httpd start Log file var/loh/httpd/access.log Ports 80 *************************************************** Service dhcpd Application Startup directory /etc/init.d/ Startup Method Service dhcpd start Log file /var/log/dhcpd.log Ports 67 *************************************************** Service DNS Application Startup directory /etc/init.d/ Startup Method Service named start Log file /var/log/messages Ports 53 *************************************************** Service Mysql Applicati...