thewatertower.org.uk

Smoothwall


Static DNS

Static DNS entries are held in the config file; the hosts file (which is symbolically linked back to /etc) is created dynamically by a script.

smoothie (root) /var/smoothwall/hosts $ cat config
192.168.99.2,smoothie-purple,on,
smoothie (root) /var/smoothwall/hosts $ cat hosts
127.0.0.1	localhost
192.168.99.1     smoothie
smoothie (root) /var/smoothwall/hosts $  /usr/bin/smoothwall/writehosts.pl
smoothie (root) /var/smoothwall/hosts $ cat hosts
127.0.0.1	localhost
192.168.99.1    smoothie
192.168.99.2    smoothie-purple

Maintaining backups is a question of replacing the config file and rebuilding the hosts file. The primary address of the smoothwall machine appears to be given. Additional entries can be added for the same IP, but I wouldn't expect them to work.


Updates fix

A change is required for offline uploading and application of updates to work; the path to tar is wrong.

smoothie (root) / $ cd /httpd/cgi-bin/
smoothie (root) /httpd/cgi-bin $ diff updates.cgi updates.cgi_20081112_orig
100c100
<       unless (system("cd /var/patches/$$ && /usr/bin/tar xvfz patch.tar.gz > /dev/null") == 0)
---
>       unless (system("cd /var/patches/$$ && /bin/tar xvfz patch.tar.gz > /dev/null") == 0)
Printed and hosted by Prater Raines Ltd, 98 Sandgate High Street, Folkestone CT20 3BY.
Published and promoted by Ben Prescott, 14, St James's Square, Bournemouth, BH5 2BX. All rights reserved.
The views expressed are solely those of the author, not of the service provider.