Top Banner
LINUX AND NETWORK SECURITY A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick Reynolds. CentOS 5
21

A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Dec 23, 2015

Download

Documents

Belinda Garrett
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

LINUX AND NETWORK SECURITY

A short two-part talk introducing:

•Basic Linux/Unix system administration (CentOS/RHEL5)•General Computer/Network security

… for the G53SEC module.

Nick Reynolds.

CentOS 5

Page 2: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Adding AccountsNeed entry in

/etc/passwdNeed password in

/etc/shadowNeed home directory

/home/[username]Correct Permissions

$ man adduser$ adduser <username>

$ man passwd$ passwd <username>

Gui Alternative:redhat-config-users

Page 3: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

The Telnet Server (telnetd)Runs on receiving a connection man xintedStart with:

chkconfig krb5-telnet onStop with:chkconfig krb5-telnet off

Page 4: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Configuring the Telnet ServerRead manual page:man telnetd

Set up accounts using:adduser

Change account shell:chsh <username>

(Tip: man ssh, chkconfig sshd on/off)

Page 5: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Other Services ftp server httpd server (apache) ssh server …

Page 6: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Network Configuration (Optional)redhat-config-network-gui

Page 7: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Software Installs – DistributionSearching:yum search [string]

Installing:yum install [package]

Staying up to date:yum update

Lots more!:man yum man yum.conf

Page 8: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Monitoring The SystemCheck logs:/var/log/*

Monitor network activity:tcpdump

Monitor processes:pstop

Page 9: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Useful CommandsMove between accounts:/bin/su – [username]

Permissions and ownership:chmod <mode> <filename>chgrp <group> <filename>chown <user> <filename>

Manual pages:man <command>

Page 10: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Useful ResourcesCentOS5 (RedHat EE) Documentation

http://netlab-gw.cs.nott.ac.uk/centos/5/docs/http://ftp.cs.nott.ac.uk/centos/5/docs/

Linux Documentation Projecthttp://newton.ex.ac.uk/LDP/

Search Engines!

Page 11: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Final CentOS NotesMany ways to achieve the same result.Experiment within a user account.Don’t make to many changes in one go.Stay up to date (yum update)Advanced methods to configure servers:man pam

Page 12: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

General Network/Computer SecurityEncryptionAccess PermissionsWho/what do you trust?Network Infrastructure

Page 13: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Encryption

Page 14: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

EncryptionUse secure Protocols

Insecure Secure

telnet sshftp scpimap imapshttp https

Page 15: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Access Permissions

Page 16: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Access Permissions

File/directory permissions

Firewalls

Page 17: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Who/What do you trust?

Page 18: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Who/What do you trust?

DHCP?

IP Addresses?

Page 19: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Network Infrastructure

Page 20: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

Network Infrastructure

Where does your data go?

Switches? Hubs? Which route?

Wi-fi

Page 21: A short two-part talk introducing: Basic Linux/Unix system administration (CentOS/RHEL5) General Computer/Network security … for the G53SEC module. Nick.

The End!