System Overview

nEDM Experiment

System Overview

Repository

Sub-pages:

Gateway Machine

This machine provides the following functionality:

Gateway machine in relation to the system

CRUX is the linux distribution used. This means services are defined in: /etc/rc.conf. This machine has the following IP addresses:

For access information, see the wiki. We do have an additional device (currently unused) which is currently deployed in the Hg tent.

Firewall/router functionality

This allows devices on the internal network to access the internet by routing their requests appropriately. The machine uses a software distribution called Shorewall to simplify this. The necessary files to be edited are located in /etc/shorewall. Here are a few highlighted:

#ZONE   INTERFACE       BROADCAST       OPTIONS
loc     eth1            -               dhcp
net     eth0            -               dhcp
#ZONE   TYPE            OPTIONS         IN                      OUT
#                                       OPTIONS                 OPTIONS
fw      firewall
net     ipv4
loc     ipv4
#SOURCE DEST    POLICY          LOG     LIMIT:          CONNLIMIT:
#                               LEVEL   BURST           MASK
loc     net     ACCEPT
loc     $FW     ACCEPT
$FW     loc     ACCEPT
$FW     net     ACCEPT
net     all     DROP            info
all     all     REJECT          info
#ACTION         SOURCE          DEST            PROTO   DEST ... + other fields (see shorewall docs)
SECTION NEW
Ping(ACCEPT) loc $FW
Ping(DROP) net $FW
ACCEPT $FW loc icmp
ACCEPT $FW net icmp
...

DHCP Server

The DHCP server (dhcpd) provides dynamic network addresses. The relevant configuration file is /etc/dhcpd.conf. Important: this also provides static IP addresses based upon MAC IDs, for example:

...
host csprobelaser.1 {
  hardware ethernet 00:19:b3:03:02:33;
  fixed-address csprobelaser.1.nedm1;
}
...

where the fixed-address is defined by the DNS Server. Another important function that this provides is the necessary configuration for a class of devices, including Raspberry Pis and the power supplies used in the active coil compensation:

...
class "raspberries" {
  match if ( substring(hardware,1,3) = b8:27:eb );
  default-lease-time 604800;
  option root-path "192.168.1.9:/volume1/Raspberries/boot/current,tcp,vers=3";
}

class "powersupplies" {
  match if ( substring(hardware,1,4) = 00:50:c2:E5 )
        or ( substring(hardware,1,4) = 00:50:c2:8d );
  default-lease-time 604800;
}
...

The configuration for the RaspPis provides a routing to the boot device for Raspberry Pis.

DNS Server

The DNS server (named) provides name resolution for devices on the local network: (e.g. *.nedm1). The relevant configuration files are /var/named/revp.192.168.1 and /var/named/zone.nedm1. Both files must be edited and the server restarted when a device is added. An example excerpt:

...
8 			PTR armin.nedm1.
9 			PTR raid.nedm1.
9 			PTR db.nedm1.
9 			PTR data.1.nedm1.
10 			PTR sbc.1.nedm1.
11 			PTR ups.1.nedm1.
...
...
raid			A 	192.168.1.9
db			A 	192.168.1.9
data.1			A 	192.168.1.9
sbc.1			A	192.168.1.10
ups.1			A	192.168.1.11
fastxeedm.1		A	192.168.1.12
...

SSH Routing

There are two autossh daemons that run to retain connections between the gateway machine and other machines, including optimal.universe-cluster.de (internal cluster machine) and ucgate.universe-cluster-de (public) machine.

Miscellaneous

Several additional daemons run on the gateway machine (these are defined to run in /etc/rc.conf):

The first two are available in the slow-control misc repository.

How To:

/etc/rc.d/named restart
/etc/rc.d/dhcpd restart