[2] | 1 | = Welcome to Group 1 - netlab 2009 - LIACS =
|
---|
| 2 |
|
---|
| 3 | Check [wiki:Assignment3] for hints on the assigment.
|
---|
| 4 |
|
---|
| 5 | Network/routing configuration
|
---|
| 6 | {{{
|
---|
| 7 | $ cat /etc/network/interfaces
|
---|
| 8 | auto lo
|
---|
| 9 | iface lo inet loopback
|
---|
| 10 |
|
---|
| 11 | auto eth1
|
---|
| 12 | iface eth1 inet static
|
---|
| 13 | address 132.229.136.242
|
---|
| 14 | netmask 255.255.255.240
|
---|
| 15 | gateway 132.229.136.241
|
---|
| 16 | up route add -net 132.229.136.8 netmask 255.255.255.248 gw 132.229.136.243 dev eth1
|
---|
| 17 | up route add -net 132.229.136.16 netmask 255.255.255.248 gw 132.229.136.244 dev eth1
|
---|
| 18 | up route add -net 132.229.136.24 netmask 255.255.255.248 gw 132.229.136.245 dev eth1
|
---|
| 19 | up route add -net 132.229.136.32 netmask 255.255.255.248 gw 132.229.136.246 dev eth1
|
---|
| 20 | up route add -net 132.229.136.40 netmask 255.255.255.248 gw 132.229.136.247 dev eth1
|
---|
| 21 | up route add -net 132.229.136.48 netmask 255.255.255.248 gw 132.229.136.248 dev eth1
|
---|
| 22 | up route add -net 132.229.136.56 netmask 255.255.255.248 gw 132.229.136.249 dev eth1
|
---|
| 23 | up route add -net 132.229.136.64 netmask 255.255.255.248 gw 132.229.136.250 dev eth1
|
---|
| 24 | up route add -net 132.229.136.72 netmask 255.255.255.248 gw 132.229.136.251 dev eth1
|
---|
| 25 |
|
---|
| 26 | auto eth2
|
---|
| 27 | iface eth2 inet static
|
---|
| 28 | address 132.229.136.1
|
---|
| 29 | netmask 255.255.255.248
|
---|
| 30 |
|
---|
| 31 | }}}
|
---|
| 32 |
|
---|
| 33 | Relevant dhcpd configation:
|
---|
| 34 | {{{
|
---|
| 35 | subnet 132.229.136.0 netmask 255.255.255.248 {
|
---|
| 36 | range 132.229.136.2 132.229.136.6;
|
---|
| 37 | option routers 132.229.136.1;
|
---|
| 38 | option domain-name "grp1.netlab2009.liacs.nl";
|
---|
| 39 | option domain-name-servers 132.229.136.1, 132.229.16.95;
|
---|
| 40 | }
|
---|
| 41 | }}}
|
---|
| 42 |
|
---|
| 43 | = email hint =
|
---|
| 44 | {{{
|
---|
| 45 | # upgrade needed for postfix
|
---|
| 46 | $ sudo apt-get update
|
---|
| 47 | $ sudo apt-get dist-upgrade
|
---|
| 48 | $ reboot
|
---|
| 49 | $ sudo apt-get install postfix
|
---|
| 50 | $ sudo apt-get install cyrus-imapd-2.2
|
---|
| 51 | }}}
|
---|
| 52 | https://help.ubuntu.com/community/Cyrus
|
---|
| 53 |
|
---|
| 54 | Username/password cyrus imap server at http://www.faqs.org/docs/Linux-HOWTO/Cyrus-IMAP.html
|
---|
| 55 |
|
---|
| 56 | saslauthd deamon draaien, met pam authenticatie
|
---|
| 57 |
|
---|
| 58 | = General saslauthd authentication with PAM backend (unix password file) =
|
---|
| 59 | {{{
|
---|
| 60 | $ cat /etc/default/saslauthd
|
---|
| 61 | START=yes
|
---|
| 62 | NAME="saslauthd"
|
---|
| 63 | MECHANISMS="pam"
|
---|
| 64 | MECH_OPTIONS=""
|
---|
| 65 | THREADS=5
|
---|
| 66 | }}}
|
---|
| 67 |
|
---|
| 68 | = Postfix SMTP AUTH =
|
---|
| 69 |
|
---|
| 70 | Add to /etc/postfix/main.conf
|
---|
| 71 | {{{
|
---|
| 72 | smtpd_sasl_auth_enable = yes
|
---|
| 73 | smtpd_sasl_local_domain =
|
---|
| 74 | smtpd_sasl_security_options = noanonymous
|
---|
| 75 | broken_sasl_auth_clients = yes
|
---|
| 76 |
|
---|
| 77 | smtpd_recipient_restrictions =
|
---|
| 78 | permit_sasl_authenticated,
|
---|
| 79 | permit_mynetworks,
|
---|
| 80 | check_relay_domains
|
---|
| 81 | }}}
|
---|
| 82 |
|
---|
| 83 | {{{
|
---|
| 84 | $ cat /etc/postfix/sasl/smtpd.conf
|
---|
| 85 | saslauthd_path: /var/run/saslauthd/mux
|
---|
| 86 | pwcheck_method: saslauthd
|
---|
| 87 | mech_list: plain login
|
---|
| 88 | }}}
|
---|
| 89 |
|
---|
| 90 | Due to postfix chroot envirionment and some sasl2 weirdness in config file, duplicate
|
---|
| 91 | {{{
|
---|
| 92 | $ cat /var/spool/postfix/usr/lib/sasl2/smtpd.conf
|
---|
| 93 | saslauthd_path: /var/run/saslauthd/mux
|
---|
| 94 | pwcheck_method: saslauthd
|
---|
| 95 | mech_list: plain login
|
---|
| 96 | }}}
|
---|
| 97 |
|
---|
| 98 | = IMAP sasl auth =
|
---|
| 99 | Alter /etc/imapd.conf to make sure below is set
|
---|
| 100 | {{{
|
---|
| 101 | sasl_mech_list: PLAIN
|
---|
| 102 | sasl_pwcheck_method: auxprop
|
---|
| 103 | sasl_auxprop_plugin: sasldb
|
---|
| 104 | sasl_auto_transition: no
|
---|
| 105 | }}}
|
---|
| 106 |
|
---|
| 107 | To run postfix with auxprop (sasl password file backend)
|
---|
| 108 | {{{
|
---|
| 109 | $ adduser postfix sasl
|
---|
| 110 | $ cat /etc/postfix/sasl/smtpd.conf
|
---|
| 111 | pwcheck_method: auxprop
|
---|
| 112 | mech_list: plain login
|
---|
| 113 | $ cat /var/spool/postfix/usr/lib/sasl2/smtpd.conf
|
---|
| 114 | pwcheck_method: auxprop
|
---|
| 115 | mech_list: plain login
|
---|
| 116 | }}}
|
---|
| 117 |
|
---|
| 118 |
|
---|
| 119 | * BIND/Named at [wiki:BIND separate page]
|
---|
| 120 | * Apache/trac at [wiki:ApacheWithTrac separate page]
|
---|
| 121 |
|
---|
| 122 | Enjoy!
|
---|
| 123 | Johan & /Rick
|
---|
| 124 |
|
---|
| 125 | = XMMS Jabberd =
|
---|
| 126 | In /etc/ejabberd/ejabberd.cfg add/alter the lines:
|
---|
| 127 |
|
---|
| 128 | {{{
|
---|
| 129 | %% Admin user
|
---|
| 130 | {acl, admin, {user, "netlab"}}.
|
---|
| 131 | {access, configure, [{allow, admins}]}.
|
---|
| 132 |
|
---|
| 133 | %% Hostname
|
---|
| 134 | {hosts, ["kami"]}.
|
---|
| 135 | }}}
|
---|
| 136 | Where netlab is your user name and kami is the hostname.
|
---|
| 137 |
|
---|
| 138 | Use "ejabberdctl register" to create this user.
|
---|
| 139 |
|
---|
| 140 | At http://localhost/admin/ you should now be able to login with the user you created above.
|
---|
| 141 |
|
---|
| 142 | To start all over again in case of error, just whipe the database files {{{rm var/lib/ejabberd/*}}}
|
---|
| 143 |
|
---|
| 144 | To generate bind SRV records http://www.jms1.net/jabberd2/srv.shtml and add these to your bind zone files.
|
---|
| 145 |
|
---|
| 146 | Webinterface at http://grp1.netlab2009.liacs.nl:5280/admin/ {{{netlab@grp1.netlab2009.liacs.nl/netlab}}}
|
---|
| 147 |
|
---|
| 148 | == Starting Points ==
|
---|
| 149 |
|
---|
| 150 | * TracGuide -- Built-in Documentation
|
---|
| 151 | * [http://trac.edgewall.org/ The Trac project] -- Trac Open Source Project
|
---|
| 152 | * [http://trac.edgewall.org/wiki/TracFaq Trac FAQ] -- Frequently Asked Questions
|
---|
| 153 | * TracSupport -- Trac Support
|
---|
| 154 |
|
---|
| 155 | For a complete list of local wiki pages, see TitleIndex.
|
---|