0% found this document useful (0 votes)
55 views

Security

This document provides instructions on configuring basic networking, installing and configuring an Apache web server, and installing and configuring a Squid proxy server on a Linux system. It includes steps for configuring the hostname and network interfaces, name resolution, and checking connectivity. It also gives commands for installing Samba and mounting a shared folder to serve as the Apache document root. Finally, it outlines installing Squid, creating a domain blacklist, backing up the Squid config file, adding ACLs to allow/deny domains, and restarting the Squid service.

Uploaded by

Chris Carr
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

Security

This document provides instructions on configuring basic networking, installing and configuring an Apache web server, and installing and configuring a Squid proxy server on a Linux system. It includes steps for configuring the hostname and network interfaces, name resolution, and checking connectivity. It also gives commands for installing Samba and mounting a shared folder to serve as the Apache document root. Finally, it outlines installing Squid, creating a domain blacklist, backing up the Squid config file, adding ACLs to allow/deny domains, and restarting the Squid service.

Uploaded by

Chris Carr
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Chapter 1 Networking

1. General Networking
vi /etc/sysconfig/network HOSTNAME=cs17v1.localdomain // Hostname

2. Interface Configuration
vi /etc/sysconfig/network-scripts/ifcfg-eth0 BOOTPROTO=static ... IPADDR=192.168.17.130 NETMASK=255.255.255.128 GATEWAY=192.168.17.129 // Boot Protcol (dhcp, static...) // IP Address // Subnet Mask // Default Gateway

3. Name Resolution
vi /etc/hosts 127.0.0.1 cs17v1.localdomain cs17v

vi /etc/resolv.conf nameserver 10.13.2.5 nameserver 10.13.2.7 shutdown -r +0 cat /etc/resolv.conf // Primary DNS Server // Secondary DNS Server

If the contents of this file have changed, correct them:


{ vi /etc/resolv.conf nameserver 10.13.2.5 nameserver 10.13.2.7 service network restart } // Primary DNS Server // Secondary DNS Server

4. Check Connectivity
ping ping ping ping ping ping ping ping 192.168.17.130 192.168.17.129 192.168.17.1 192.168.17.2 192.168.17.3 10.234.1.1 8.8.8.8 www.google.com // // // // // // // // Your IP Address Your Default Gateway Other Subnet's Default Gateway File Server Internal Client Room 106A's Default Gateway Google Google - Test Name Resolution

Chapter 2 Apache Web Server


1. Install Samba vi /bin/install-samba #!/bin/bash yum erase libsmbclient0 yum -y install samba samba-client chmod 644 /bin/install-samba install-samba 2. Confirm Samba Has Been Installed rpm -q samba rpm -q samba-client 3. Mount Shared Folder html to /var/www/html mount -t //192.168.17.2/html /var/www/html -o username=Administrator,password=Pa11word // Add Mount Point to fstab 4. Restart Apache Web Server service httpd restart

Chapter 3 Squid Proxy Server


1. Install Squid yum -y install squid 2. Create Blacklist
vi /etc/squid/blacklist .facebook.com .myspace.com chown root:squid /etc/squid/blacklist chmod 640 /etc/squid/blacklist

3. Backup Current Configuration


cp /etc/squid/squid.conf /etc/squid/squid.conf.original

4. Configure ACLs
gedit /etc/squid/squid.conf

Search for http_access deny all Select http_access deny all and modify to read:
acl INTERNAL src 192.168.17.0/24 acl BAD_DOMAINS dstdom_regex -i /etc/squid/blacklist http_access deny BAD_DOMAINS http_access allow INTERNAL http_access allow localhost http_access deny all

5. Restart Squid
service squid restart

You might also like