computers:serverconfig
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computers:serverconfig [2008/11/13 12:46] – david | computers:serverconfig [2010/12/10 16:02] (current) – david | ||
|---|---|---|---|
| Line 110: | Line 110: | ||
| files are in: **/ | files are in: **/ | ||
| + | ==== Check NFS Mounts ==== | ||
| + | |||
| + | After the last power outage, the NWN servers were not speaking as I hadn't mounted the NFS mounts which share the drives to one another. | ||
| + | |||
| + | NOTE: I moved this to hourly so it will reconnect after a power off / reboot in a more reasonable time. | ||
| + | |||
| + | **/ | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | #!/bin/bash | ||
| + | # | ||
| + | # check_nfs_mounts.sh | ||
| + | # quick check if we have our NFS directories mounted... if not... mount them! | ||
| + | # - dlr 2008/11/12 | ||
| + | |||
| + | MOUNTEDTEST=`df | grep '/ | ||
| + | |||
| + | if [ $MOUNTEDTEST -ne 1 ]; then | ||
| + | mount / | ||
| + | fi | ||
| + | |||
| + | MOUNTEDTEST=`df | grep '/ | ||
| + | |||
| + | if [ $MOUNTEDTEST -ne 1 ]; then | ||
| + | mount / | ||
| + | fi | ||
| + | </ | ||
| ==== dovecot alive? ==== | ==== dovecot alive? ==== | ||
| Line 194: | Line 222: | ||
| fi | fi | ||
| done | done | ||
| - | </ | ||
| - | |||
| - | ==== Check NFS Mounts ==== | ||
| - | |||
| - | After the last power outage, the NWN servers were not speaking as I hadn't mounted the NFS mounts which share the drives to one another. | ||
| - | |||
| - | **/ | ||
| - | |||
| - | <code bash> | ||
| - | |||
| - | #!/bin/bash | ||
| - | # | ||
| - | # check_nfs_mounts.sh | ||
| - | # quick check if we have our NFS directories mounted... if not... mount them! | ||
| - | # - dlr 2008/11/12 | ||
| - | |||
| - | MOUNTEDTEST=`df | grep '/ | ||
| - | |||
| - | if [ $MOUNTEDTEST -ne 1 ]; then | ||
| - | mount / | ||
| - | fi | ||
| - | |||
| - | MOUNTEDTEST=`df | grep '/ | ||
| - | |||
| - | if [ $MOUNTEDTEST -ne 1 ]; then | ||
| - | mount / | ||
| - | fi | ||
| </ | </ | ||
| Line 541: | Line 542: | ||
| ===== dovecot ===== | ===== dovecot ===== | ||
| + | |||
| + | ==== Upgrading ==== | ||
| + | |||
| + | - Downloaded latest version (1.2.16) | ||
| + | - Uncompress in **/ | ||
| + | - Build: | ||
| + | ./configure | ||
| + | make | ||
| + | make install | ||
| + | </ | ||
| + | - Fix the certificate (make a new one) | ||
| + | - < | ||
| + | - < | ||
| + | - < | ||
| + | - < | ||
| + | - < | ||
| + | - < | ||
| + | - < | ||
| + | - < | ||
| + | - Restart **dovecot** (i just killed the process and then run it again) | ||
| + | |||
| + | |||
| + | |||
| + | ==== Initial Install ==== | ||
| + | |||
| * Download the source from [[http:// | * Download the source from [[http:// | ||
| Line 1175: | Line 1201: | ||
| Someone found a way through the firewall once to hit the Samba server.. so I added these lines to **/ | Someone found a way through the firewall once to hit the Samba server.. so I added these lines to **/ | ||
| - | I also blocked the slim server access from outside, just seemed like a bad idea 8-) | + | I also blocked the slim server access from outside, just seemed like a bad idea 8-) (and just now added apcupsd to the list of blocked from the outside // |
| <code bash> | <code bash> | ||
| Line 1197: | Line 1223: | ||
| iptables -A OUTPUT -o eth0 -p tcp --dport 445 -j DROP | iptables -A OUTPUT -o eth0 -p tcp --dport 445 -j DROP | ||
| iptables -A OUTPUT -o eth0 -p tcp --sport 445 -j DROP | iptables -A OUTPUT -o eth0 -p tcp --sport 445 -j DROP | ||
| + | |||
| + | # block port 3551 so that apcupsd cannot be seen from outside | ||
| + | iptables -A OUTPUT -o eth0 -p tcp --dport 3551 -j DROP | ||
| + | iptables -A OUTPUT -o eth0 -p tcp --sport 3551 -j DROP | ||
| # block port 9000 so slimserver can't be accesed from outside | # block port 9000 so slimserver can't be accesed from outside | ||
computers/serverconfig.1226580369.txt.gz · Last modified: by david
