diff options
-rw-r--r-- | INSTALL.md | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..95b0320 --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,41 @@ +# Gateway box + +This documents initially setting up an internet gateway for Couchdesign +for these gateways: + +"perilin.jones.dk" locally at "192.168.222.1". + +"graograman.jones.dk" locally at "192.168.222.2". + +## Install and initially setup system + +Follow the guide at <http://box.redpill.dk/> to install image from there. + +Run "box-add-tui" to have terminal user-interface (TUI) tools like Midnight Commander. + +Run "box-add-gateway" to have DHCP service and network routing setup. + +## Adapt gateway settings to local network + +Edit file /etc/systemd/network/10-eth0.network; +locate this (likely last) line: + DHCP=yes +replacing the line to set fixed address in a /24 subnet, +like this (adapt address to match this system): + Address=192.168.222.2/24 + +Edit file /etc/dhcp/dhcpd.conf; +locate the (likely almost last) long line starting like this: + subnet 192.168.101.0 ... +add similar line below but with all mentions of network changed to "192.168.222" +and router changed to the address of this system, +like this (adapt address to match this system): + subnet 192.168.222.0 netmask 255.255.255.0 { range 192.168.222.50 192.168.222.250; option routers 192.168.222.2; } + +Edit file /etc/default/isc-dhcp-server; +locate this (likely almost last) line: + INTERFACESv4="" +add builtin network interface like this: + INTERFACESv4="eth0" + +reboot the system. |