|
CS78 Secure Server Installation & Administration David
Morgan |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Administrativa
Remote Unix access with TCP/IP paper - "Intro to the IP Protocols" Sockets: socket programming
Sockets: sample programs Encryption
article
Cryptology Diffie-Hellman key exchange
Slide presentations Local security: Pluggable Authentication Modules (PAM) filesystem encryption
Network security: ssh forwarding stunnel - tunnel w/ssl OpenVPN Shorewall firewall
|
SPRING 2008 This Website (http://homepage.smc.edu/morgan_david/cs78/) will be used to communicate with you. Announcements, grade reports, and assignments will be posted here. The site can be viewed from an internet-connected browser anywhere. You are responsible for awareness of the information posted here. GPG community signed documents are ready - Tonight on sputnik I find 12 "studentXXkey" public keys and 10 "gettysburg.studentXX" signed copies of the gettysburg address. I renamed the latter with suffixed letters of the alphabet like "gettysburg.W" and you'll find those 10 suffixed, signed files in the home directory of user common on sputnik. The question for you: who signed them? As posed by the assignment instructions. If they were paper signed documents you would answer by signature recognition. Do the same here, but electronically. (Everybody's public keys are in common's home directory, where you put them, too. For you to use.) Have fun. (5/7) Homework
- due 5/10 Homework
- due 5/3 Read - something about GPG and ssh. ssh sources: textbook's coverage of ssh, pp 341-346 GPG sources: GPG (GNU Privacy Guard) official page RFC2440 - OpenPGP message format Read - any portions of Chapter 7 "Cryptography Basics" not so far covered. Have the main understandings in this chapter all under your belt. Anticipate - near-future in-class and homework exercises at links "ssh key setup," "ssh file access," "GNU Privacy guard." (4/27)
Homework
- due 4/26 Student internship - at Sun Microsystems El Segundo. (4/16) Spring break April 12 - no class that day. (3/28) Homework
- due 4/19 Homework
- due 4/5 Serious extra credit - strictly extracurricular, but if somebody hands me the code that extends my "polyalph" script to reverse the substitutions it performs, they are a star. The task posed is to be able to recall, so as to reapply, the many ("poly") alphabets that were used in the encrypt. These would have to be recalled in the reverse order they were originally used, and applied to the same letters to which originally applied, and applied in reverse. This is shell script. I don't particularly expect anybody to do this but if somebody did they'd be riding toward an A on a white horse. (3/24) Homework
- Polyalphabetic substitution and character frequency statistics demo program is available by anonymous ftp from sputnik.smc.edu in the pub directory (so is gettysburg.txt). For you to optionally play with. It's a shell script. If you download it to a linux system make it executable-- chmod +x polyalph" -- then run it -- ./polyalph. Edit it and alter the input text and/or the way it evolves the alphabet mapping it uses for determining letter substitutions. Cut and paste its output to http://www.mtholyoke.edu/courses/quenell/s2002/crypto/js/count.html to tally the letters and make a bar graph, like we did in class. (3/22) Grades - posted. Please see link at left entitled "Grade reports" (3/17) Homework
- for next 3 upcoming topics Server status - running on 6GB without memory problems but with little usage for close to a week. I plan to give you an assignment using it soon to put a little stress on it. (3/14) Article related to the unix process mechanism "fork/exec." This article reinforces our coverage. The article has its own examples, distinct from ours but similar. (3/14) Server status - removed suspect memory, now running on less memory but (we think) stable. Ran continuously for 2-3 days with full complement of 8GB but crashed again last night. Watchdogging it today, was unmistakably unstable. Removed the 4GB new memory and running now on the 4GB old memory, with stable history, so far so good. Will it stay stable? Think so. Will it perform? You'll tell. Do something with it if you can (anything!) so as to have input Saturday. (3/6) Homework - Server - please email me for gateway address - has been running 20 VMs here, stable, for a day and a half. It's set up for use exactly as described in class, and below, except the gateway address is different than it was at SMC. Please email me for that address and I'll send it to you. Experiment with the machine, make sure you can make contact with it and it works. I'll be interested to see what happens the rest of the week both at my end and students' end. (3/4) Homework - Server - has been removed, to where I can take a closer look at it. I might later ask you to start/test using it from its new location (my home) in the course of "looking at it." (3/3) Server appears down - it went down Saturday night and I went in and kicked it up today. Tonight it is again unresponsive. Please stay tuned... (2/24) Accounts on sputnik.smc.edu were created today - see "Remote Unix system accounts" paragraph below. (Don't confuse these "accounts" with the "virtual machines" you have been allocated elsewhere. They're separate.) (2/24) Slides we are studying if
you wish to preview/review them, are the ones at links (in the "Slide
Presentations" section at left) entitled Remote linux virtual machines (not accounts, but whole virtual-machine installations with root access) - have been prepared, one for each student.
Your VM's IP address is 192.168.1.2xx where x is the number from 1-20 that was individually assigned to you in class. You know the gateway's address (or email me for it). Add xx to 200 and use the result as a port number in an ssh command-line command like: ssh -p 2xx root@<gateway's address> Or enter the address and port number in the main screen of puTTY (if will ask for a username). The gateway will forward your ssh packet stream to your machine's port 22 where sshd will receive it and respond back to you. So your ssh client's formula for making sshd-contact with your machine is to make port-2xx-contact with the gateway. Use Windows for a client if you want. In that case, depending if you prefer command lines or GUI dialogs, get OpenSSH for Windows or PuTTY. (2/24) SSH tunneling/port-forwarding - you feed stuff to your (127.0.0.1's) port 3000. You want to be able to push it through to 192.168.1.99's port 80, where192.168.1.99 is a machine you can't directly reach but the ssh server you'll connect to can. Then use the syntax below. Command line: ssh -L 3000:192.168.1.99:80 <server IP or domain name> PuTTY:
If a web server runs on 192.168.1.99's port 80, you would have your browser feed its requests to your port 3000. They would reach that web server. For most graphical browsers the syntax for specifying your local 3000 would be "127.0.0.1:3000" which you would type in the URL window. (2/24) Download portaputty. It's a version of puTTY that eschews the registry so as to be portable. Like, you can carry it around to different computers on a USB flash drive and have your accustomed configuration right there with you instead of in the registry back at the ranch. Unzip it. It produces a subdirectory named portaputty, in which is putty.exe. Run it. Load the "b261gate" saved session. Change the port number from 200 to your assigned port number. Press the open button. This method does not work in an environment where your port number is blocked by a firewall (like our classroom). There, you would have to use ssh port forwarding. To do that you need to be able to log in to the gateway/router box that's running ssh server (sshd) and will forward your stuff for you. In our case you can do that using account cs78 with password cs78password. (2/24) ssh alternatives for windows - command line implementation openSSH for Windows delivers ssh to Windows in the same form as it's found in linux, is openSSH. Then there are puTTY andthers. (2/24)
Remote Unix system accounts VMware networking article Homework - by 3/1 Knoppix CD - http://www.knoppix.org/ and other "live CDs" that are bootable directly to linux (without using or messing with your hard disk), http://www.frozentech.com/content/livecd.php (2/15) Textbook to get - please see the "Syllabus" link, left column. (2/15) Welcome - you may view most of the slide presentations used in class at the links under the "Slide presentations" heading in the column at left. See also the brief class syllabus, at the link entitled "Syllabus," upper left. The textbook is identified there.
|
Milestone in the history of computation Did
you get the 'L'?
BIOS and
bootloader passwords Cracking passwords Cracking passwords RSA
encryption 2 firewall constrction Bastille - hardening
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||