Professional Documents
Culture Documents
Network Administration
Samantha Indika
Configuring Printer Server CUPS Service (Common Unix Printing System) Check the RPMs #rpm -q cups system-config-printer #service cups start #ntsysv [*]cups Installing a local printer for sharing System > Administration > Printing Printer Name : Printer2 Location : srvX
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 1
Network
To access already shared printer AppSocket/HP Jet Direct (Physical Printer Server) (HP Printer Server) IPP (WAN/Internet Printing) Eg : Google Cloud Printing LPD/LPR host or printer (Line Printer Daemon) (Line Printer Remote Protocol) Eg : Unix Printer Server Windows Printer via SAMBA Eg : Windows Printer Server
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 2
Samantha Indika
Sharing the printer on the network Select the Printers Name :Printer2 Be sure the shared is enabled The shared printers will be visible under Remote Printers automatically on the clients
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 3
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 4
: : : :
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 5
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 6
Samantha Indika
: 123 : 123
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 7
Samantha Indika
Verify #pdbedit L
Now you will be able to access the SAMBA server from the new user accounts from Windows. By defaults the users home folders will be automatically shared through SAMBA and the user will be able to access it from Windows from full privileges. Additionally if there were any shared Linux printers that also will be automatically shared through SAMBA Sharing additional folders through SAMBA Create a folder for sharing #mkdir /data #ls /
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 8
Samantha Indika
By default normal SAMBA users wont be able to write into the SAMBA share unless we change the ext3 permissions.
#ls -ld /data
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 9
Samantha Indika
d
Directory
r w x
Owner (root user)
r - x
Group (roots group)
r - x
Others (Normal Linux User)
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 10
Samantha Indika
Go through My Network Places and access the SAMBA Server where the printer is share.
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 11
Samantha Indika
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 12
Samantha Indika
Squid Web Proxy Service Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems, including Windows and is licensed under the GNU GPL.
Check the RPMs #rpm -q squid Before we can share the internet connection the Proxy Server must have direct connection to Internet
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 14
ACL Name
ACL Tag
Start the Proxy Service and add it to the Startup #service squid start #ntsysv [*]squid
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 15
Samantha Indika
Under normal circumstance we do not have to set the Default Gateway or the DNS on the Proxy Client.
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 16
Samantha Indika
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 17
Samantha Indika
#service squid restart Generating Proxy report SARG (Squid Analysis Report Generator) #rpm -q sarg #service squid stop Change permission #ls ld /var/www/sarg #chmod 777 /var/www/sarg
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 18
Samantha Indika
Access the report Computer > File System > var > www > sarg > index.html > R.C. & open with Web Browser (Mozilla FireFox)
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 19
Samantha Indika
Ex1 : Blocking web sites by domain name acl rule1 dstdomain .facebook.com .microsoft.com
Access Control List ACL Name (Any Name) ACL Tag Domain Names
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 20
Samantha Indika
Samantha Indika
.yahoo.com .hp.com
#service squid reload Ex3 : Blocking protocols acl rule4 proto FTP
Access Control List ACL Name (Any Name) ACL Tag Protocol
Samantha Indika
ACL Tag
Key words
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 23
Samantha Indika
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 24
gTLDS
(generic Top-Level DomainS)
ccTLDS
(country code Top-Level DomainS)
uk lk au
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 25
Samantha Indika
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 26
Samantha Indika
(2) M/S Set the local loopback IP as the Primary DNS server IP to indicate the machine is the DNS server. Additionally set the Domain Name to use for the DNS service. #system-config-network-tui
: 127.0.0.1 : xxxxxx.local by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS Prepared
(Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 28
Samantha Indika
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 29
Samantha Indika
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 30
Samantha Indika
M - (4.2) Authorizing the zone file on the Master server. #nano /etc/named.conf
Go to end of file, but before the final line zone xxxxxx.local. IN { type master; file zone. xxxxxx.local; allow-transfer { 192.168.1.XXX; }; };
Slave IP
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 31
Samantha Indika
#nano /etc/named.conf Go to end of file, but before the final line zone xxxxxx.local. IN { type slave; file slaves/zone.xxxxxx.local; masters { 192.168.1.XXX; }; };
Master IP
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 32
Samantha Indika
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 33
Samantha Indika
Default Gateway
: 192.168.1.XXX
Router LAN IP
#service network restart Verify #cat /etc/sysconfig/network-scripts/ifcfg-eth0 M/S Start the DNS service #service named start #ntsysv [*]named
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 34
Samantha Indika
#system-config-network-tui
#nslookup www.google.com
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 35
Samantha Indika
CentOS #system-config-network-tui Preferred DNS : 192.168.1.XXX Master Alternate DNS : 192.168.1.XXX Slave
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 36
Alternate DNS
: 192.168.1.XXX
Preferred DNS
: 192.168.1.XXX
Master IP
Alternate DNS
: 192.168.1.XXX
Slave IP
#cat /etc/resolv.conf
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 37
Samantha Indika
Master IP
nameserver 192.168.1.XXX
Slave IP
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 38
Samantha Indika
nameserver 192.168.1.XXX
Start the DHCP Service and add it to the Startup #service dhcpd start #ntsysv [*]dhcpd
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 39
Samantha Indika
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 40
Samantha Indika
If you are going to host multiple services on a single server rather than using the same IP better assign unique IPs to each and every service.
Eg : IF you are going to host multiple web sites on a single web server rather than using same IP better to use unique IPs to host each web site. Assign multiple IPs to a machine srv1 192.168.1.21 192.168.1.22 192.168.1.23 192.168.1.24
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 41
Samantha Indika
Configuring a web server Httpd Service (APACHE) Check the RPM #rpm -q httpd
: : : :
: : : :
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 42
Samantha Indika
: : : :
: : : :
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 43
#nano /var/named/zone.xxxxxx.local At the end of file ;web server names and Ips abc def IN IN A A 192.168.1.21 192.168.1.22
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 44
Samantha Indika
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 45
Samantha Indika
#killall named
Preparing the web sites for publishing Develop the web sites and coy them into /var/www/html folder if you have multiple web sites you can keep them in sub folders under the above location. The web site home page must be named as index.html or index.php #cd /var/www/html #ls l #ls web1 #ls web2 Publishing the web sites #nano /etc/httpd/conf/httpd.conf Go to end of file
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP
Prepared by : Samantha Indika | MCT, ACS, CEH, CCNA, BCS (Certificate), MCS (SL), MCITP, MCTS, MCSE + Security + Messaging, MCSA + Security + Messaging, MCP 47
Samantha Indika