This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:ryoung12:start [2010/04/30 03:29] – ryoung12 | user:ryoung12:start [2010/07/29 13:27] (current) – ryoung12 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | < | ||
+ | <script language=" | ||
+ | document.title = " | ||
+ | </ | ||
+ | < | ||
+ | body { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | a:hover { | ||
+ | | ||
+ | } | ||
+ | div.dokuwiki div.toc { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | div.dokuwiki div.tocheader { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | div.dokuwiki # | ||
+ | | ||
+ | | ||
+ | } | ||
+ | div.dokuwiki span.toc_open, | ||
+ | div.dokuwiki span.toc_close{ | ||
+ | | ||
+ | } | ||
+ | div.dokuwiki ul.toc ul.toc li{ | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | div.dokuwiki a.toc:link, | ||
+ | div.dokuwiki a.toc: | ||
+ | | ||
+ | } | ||
+ | div.dokuwiki a.toc:hover { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | .wrap_monospace { | ||
+ | | ||
+ | } | ||
+ | |||
+ | .w { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | .b { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | //ʘ rgb (137 51 103) | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP box round bgblack> | ||
+ | <WRAP centeralign> | ||
+ | < | ||
+ | <p style=" | ||
+ | |||
+ | <p style=" | ||
+ | <hr /> | ||
+ | <p style=" | ||
+ | <br /> | ||
+ | Type:</ | ||
+ | <pre style=" | ||
+ | :set paste | ||
+ | </ | ||
+ | <p style=" | ||
+ | <br /> | ||
+ | After you pasted your code, turn off the paste-mode, so that auto-indenting when you type works correctly again.</ | ||
+ | <pre style=" | ||
+ | :set nopaste | ||
+ | </ | ||
+ | <hr /><br /> | ||
+ | <pre style=" | ||
+ | VM03 → Apache with mpm-itk | ||
+ | VM13 → XMPP Server | ||
+ | VM30 → RSYSLOG Server | ||
+ | VM31 → LDAP / PAM / NSS Authentication Server with Kerberos | ||
+ | VM32 → Certificate Authority | ||
+ | |||
+ | |||
+ | to delete a vm: | ||
+ | rm -rf / | ||
+ | |||
+ | NTP: | ||
+ | <hr /> | ||
+ | WAN → vmserver03 → vm## | ||
+ | -- vmserver03 syncs with the juicebox timeserver | ||
+ | -- vmserver03 is a time server for 10.80.3.0/ | ||
+ | -- vm03, | ||
+ | |||
+ | NTP | ||
+ | / | ||
+ | 2 -> 47 -> 1 -> 1 | ||
+ | |||
+ | aptitude install -y ntp | ||
+ | |||
+ | VMSERVER03 NTP CONF: | ||
+ | # / | ||
+ | # Local clock oscillation file | ||
+ | driftfile / | ||
+ | |||
+ | # Allow statistics to be logged. | ||
+ | statsdir / | ||
+ | |||
+ | # Logging configuration | ||
+ | statistics loopstats peerstats clockstats | ||
+ | filegen loopstats file loopstats type day enable | ||
+ | filegen peerstats file peerstats type day enable | ||
+ | filegen clockstats file clockstats type day enable | ||
+ | |||
+ | # Access control configuration | ||
+ | restrict default kod nomodify notrap nopeer noquery # Deny everybody by default | ||
+ | restrict 127.0.0.1 | ||
+ | restrict 10.80.3.0 mask 255.255.255.0 nomodify | ||
+ | |||
+ | # NTP servers to syncronise with | ||
+ | server juicebox.lair.lan | ||
+ | |||
+ | # Allow localhost to serve as a back-up time server | ||
+ | server 127.127.1.0 | ||
+ | fudge 127.127.1.0 stratum 10 | ||
+ | |||
+ | / | ||
+ | |||
+ | |||
+ | VMxx NTP CONF | ||
+ | # / | ||
+ | |||
+ | # Disable the panic threshold to allow irregular clock offsets | ||
+ | tinker panic 0 | ||
+ | |||
+ | # Local clock oscillation file | ||
+ | driftfile / | ||
+ | |||
+ | # Allow statistics to be logged. | ||
+ | statsdir / | ||
+ | |||
+ | # Logging configuration | ||
+ | statistics loopstats peerstats clockstats | ||
+ | filegen loopstats file loopstats type day enable | ||
+ | filegen peerstats file peerstats type day enable | ||
+ | filegen clockstats file clockstats type day enable | ||
+ | |||
+ | # Access control configuration | ||
+ | restrict default kod nomodify notrap nopeer noquery # Deny everybody by default | ||
+ | restrict 127.0.0.1 | ||
+ | |||
+ | # NTP servers to syncronise with | ||
+ | server vmserver03.student.lab | ||
+ | |||
+ | mkdir /etc/ntp | ||
+ | vim / | ||
+ | # / | ||
+ | vmserver03.student.lab | ||
+ | |||
+ | / | ||
+ | |||
+ | rsyslog w/SSL: | ||
+ | <hr /> | ||
+ | vm03, | ||
+ | -- vm03, vm13, vm31 & vm32 will use SSL to communicate with vm30 | ||
+ | -- vm30 will host a local MySQL syslog database | ||
+ | -- vm32 will not report to vm30 | ||
+ | -- vm32 is certificate authority for rsyslog using SSL | ||
+ | -- Log Analyzer: web based rsyslog GUI | ||
+ | -- basic apache w/php on vm30 | ||
+ | -- accessible from LAN only | ||
+ | |||
+ | VM03: | ||
+ | -- apache to log errors & access | ||
+ | -- utilize mpm-itk for per-user virtual hosts | ||
+ | -- mysql, php | ||
+ | |||
+ | VM30: | ||
+ | -- local apache will only log errors (no access logging) | ||
+ | |||
+ | VM31: | ||
+ | -- LDAP / NSS / PAM server using Kerberos for encrypted authentication | ||
+ | vim /etc/hosts | ||
+ | 127.0.0.1 | ||
+ | 10.80.3.31 | ||
+ | 10.80.3.31 | ||
+ | |||
+ | Debian packages installed during the procedure will ask us a series of questions through the so-called debconf interface. To configure debconf to a known state, run: | ||
+ | | ||
+ | |||
+ | in a seperate terminal: | ||
+ | cd /var/log; sudo tail -F daemon.log sulog user.log auth.log debug kern.log syslog dmesg messages kerberos/ | ||
+ | |||
+ | aptitude install -y krb5-{admin-server, | ||
+ | |||
+ | ==Configuring krb5-kdc== | ||
+ | When users attempt to use Kerberos and specify a principal or user name without specifying what | ||
+ | administrative Kerberos realm that principal belongs to, the system appends the default realm. Normally, | ||
+ | the default realm is the uppercase version of the local DNS domain. | ||
+ | |||
+ | Default Kerberos version 5 realm: | ||
+ | | ||
+ | |||
+ | Traditionally new realms have been added to / | ||
+ | for the realm. Modern Kerberos implementations support looking for this information up using DNS. If your | ||
+ | default realm has DNS pointers, they will be used. Otherwise if your realm is not already in | ||
+ | / | ||
+ | |||
+ | Does DNS contain pointers to yourl realm' | ||
+ | < | ||
+ | |||
+ | The Kerberos Domain Controller (KDC) configuration files, in / | ||
+ | |||
+ | By default, an example template will be copied into this directory with local parameters filled in. | ||
+ | |||
+ | Administrators who already have infrastructure to manage their Kerberos configuration may wish to disable these automatic configuration changes. | ||
+ | |||
+ | Create the Kerberos KDC configuration automatically? | ||
+ | < | ||
+ | |||
+ | By default, Kerberos V4 requests are allowed from principals that do not require preauthentication | ||
+ | (" | ||
+ | clients to get their initial tickets. These tickets can then be converted to Kerberos V4 tickets. | ||
+ | |||
+ | Alternatively, | ||
+ | when preauthentication would normally be required; to " | ||
+ | Kerberos V4 clients; or to " | ||
+ | |||
+ | Kerberos V4 compatibility mode to use: disable, full, nopreauth, none | ||
+ | | ||
+ | |||
+ | The krb524d daemon converts Kerberos V5 tickets into Kerberos V4 tickets for programs, such as krb524init, | ||
+ | that obtain Kerberos V4 tickets for compatibility with old applications. | ||
+ | |||
+ | It is recommended to enable that daemon if Kerberos V4 is enabled, especially when Kerberos V4 | ||
+ | compatibility is set to " | ||
+ | |||
+ | Run a Kerberos V5 to Kerberos V4 ticket convresion daemon? | ||
+ | < | ||
+ | |||
+ | Setting up a Kerberos Realm | ||
+ | |||
+ | This package contains the administrative tools required to run the Kerberos master server. | ||
+ | |||
+ | However, installing this package does not automatically setup a Kerberos realm. This can be done later | ||
+ | by running the " | ||
+ | |||
+ | Please also read the / | ||
+ | krb5-doc package. | ||
+ | |||
+ | [Ok] | ||
+ | |||
+ | Kadmind serves requests to add/ | ||
+ | |||
+ | It is required by the kpasswd program, used to change passwords. With standard setups, this daemon should | ||
+ | run on the master KDC. | ||
+ | |||
+ | Run the Kerberos V5 administration daemon (kadmin)? | ||
+ | < | ||
+ | |||
+ | Enter the hostnames of Kerberos servers in the STUDENT.LAB Kerberos realm seperated by spaces. | ||
+ | |||
+ | Kerberos servers for your realm: [krb1.student.lab] | ||
+ | |||
+ | Enter the hostname of the administrative (password chaning) server for the STUDENT.LAB Kerberos realm. | ||
+ | |||
+ | Administrative server for your Kerberos realm: [krb1.student.lab] | ||
+ | |||
+ | krb5_newrealm | ||
+ | |||
+ | This script should be run on the master KDC/admin server to initialize | ||
+ | a Kerberos realm. It will ask you to type in a master key password. | ||
+ | This password will be used to generate a key that is stored in | ||
+ | / | ||
+ | is much more important that it be a strong password than that it be | ||
+ | remembered. However, if you loose the password and / | ||
+ | you cannot decrypt your Kerberos database. | ||
+ | |||
+ | Loading random data | ||
+ | |||
+ | Initializing databsae '/ | ||
+ | master key name ' | ||
+ | You will be prompted for the database Master Password | ||
+ | It is important that you NOT FORGET this password | ||
+ | |||
+ | Enter KDC database master key: [] | ||
+ | Re-enter KDC datasbase master key to veryif: [] | ||
+ | </ | ||
+ | <!-- | ||
+ | 2.7/ | ||
+ | 2 . 7 / 7 quick 7 % & " target ? FIREFOX virgin | ||
+ | --> | ||
+ | <pre style=" | ||
+ | Now that your realm is set up you may wish to create an administrative | ||
+ | principal using the addprinc subcommand of the kadmin.local program. | ||
+ | Then, this principal can be added to / | ||
+ | you can use the kadmin program on other computers. Kerberos admin | ||
+ | principals usually belong to a single user and end in /admin. For | ||
+ | example, if jruser is a Kerberos administrator, | ||
+ | the normal jruser principal, a jruser/ | ||
+ | created. | ||
+ | |||
+ | Don't forget to setup DNS information so your clients can find your | ||
+ | KDC and admin servers. Doing so is documeinted in the administration | ||
+ | guide. | ||
+ | |||
+ | VM32: | ||
+ | -- SSL Certificate Authority | ||
+ | -- should have strict firewall rules | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP centeralign monospace> | ||
+ | < | ||
+ | <p style=" | ||
+ | <p style=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ |