source: liacs/net/as2/WikiStart.txt@ 207

Last change on this file since 207 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

File size: 4.3 KB
Line 
1= Welcome to Group 1 - netlab 2009 - LIACS =
2
3Check [wiki:Assignment3] for hints on the assigment.
4
5Network/routing configuration
6{{{
7$ cat /etc/network/interfaces
8auto lo
9iface lo inet loopback
10
11auto eth1
12iface 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
26auto eth2
27iface eth2 inet static
28 address 132.229.136.1
29 netmask 255.255.255.248
30
31}}}
32
33Relevant dhcpd configation:
34{{{
35subnet 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}}}
52https://help.ubuntu.com/community/Cyrus
53
54Username/password cyrus imap server at http://www.faqs.org/docs/Linux-HOWTO/Cyrus-IMAP.html
55
56saslauthd deamon draaien, met pam authenticatie
57
58= General saslauthd authentication with PAM backend (unix password file) =
59{{{
60$ cat /etc/default/saslauthd
61START=yes
62NAME="saslauthd"
63MECHANISMS="pam"
64MECH_OPTIONS=""
65THREADS=5
66}}}
67
68= Postfix SMTP AUTH =
69
70Add to /etc/postfix/main.conf
71{{{
72smtpd_sasl_auth_enable = yes
73smtpd_sasl_local_domain =
74smtpd_sasl_security_options = noanonymous
75broken_sasl_auth_clients = yes
76
77smtpd_recipient_restrictions =
78 permit_sasl_authenticated,
79 permit_mynetworks,
80 check_relay_domains
81}}}
82
83{{{
84$ cat /etc/postfix/sasl/smtpd.conf
85saslauthd_path: /var/run/saslauthd/mux
86pwcheck_method: saslauthd
87mech_list: plain login
88}}}
89
90Due to postfix chroot envirionment and some sasl2 weirdness in config file, duplicate
91{{{
92$ cat /var/spool/postfix/usr/lib/sasl2/smtpd.conf
93saslauthd_path: /var/run/saslauthd/mux
94pwcheck_method: saslauthd
95mech_list: plain login
96}}}
97
98= IMAP sasl auth =
99Alter /etc/imapd.conf to make sure below is set
100{{{
101sasl_mech_list: PLAIN
102sasl_pwcheck_method: auxprop
103sasl_auxprop_plugin: sasldb
104sasl_auto_transition: no
105}}}
106
107To run postfix with auxprop (sasl password file backend)
108{{{
109$ adduser postfix sasl
110$ cat /etc/postfix/sasl/smtpd.conf
111pwcheck_method: auxprop
112mech_list: plain login
113$ cat /var/spool/postfix/usr/lib/sasl2/smtpd.conf
114pwcheck_method: auxprop
115mech_list: plain login
116}}}
117
118
119 * BIND/Named at [wiki:BIND separate page]
120 * Apache/trac at [wiki:ApacheWithTrac separate page]
121
122Enjoy!
123Johan & /Rick
124
125= XMMS Jabberd =
126In /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}}}
136Where netlab is your user name and kami is the hostname.
137
138Use "ejabberdctl register" to create this user.
139
140At http://localhost/admin/ you should now be able to login with the user you created above.
141
142To start all over again in case of error, just whipe the database files {{{rm var/lib/ejabberd/*}}}
143
144To generate bind SRV records http://www.jms1.net/jabberd2/srv.shtml and add these to your bind zone files.
145
146Webinterface 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
155For a complete list of local wiki pages, see TitleIndex.
Note: See TracBrowser for help on using the repository browser.