diff --git a/configs/frontal/boot/firmware/cmdline.txt b/configs/frontal/boot/firmware/cmdline.txt new file mode 100755 index 0000000..f52840b --- /dev/null +++ b/configs/frontal/boot/firmware/cmdline.txt @@ -0,0 +1 @@ +console=tty0 console=ttyS1,115200 root=/dev/mmcblk0p2 rw elevator=deadline fsck.repair=yes rootwait diff --git a/configs/frontal/etc/dhcp/dhclient.conf b/configs/frontal/etc/dhcp/dhclient.conf new file mode 100644 index 0000000..d125a6c --- /dev/null +++ b/configs/frontal/etc/dhcp/dhclient.conf @@ -0,0 +1,54 @@ +# Configuration file for /sbin/dhclient. +# +# This is a sample configuration file for dhclient. See dhclient.conf's +# man page for more information about the syntax of this file +# and a more comprehensive list of the parameters understood by +# dhclient. +# +# Normally, if the DHCP server provides reasonable information and does +# not leave anything out (like the domain name, for example), then +# few changes must be made to this file, if any. +# + +option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; + +send host-name = gethostname(); +request subnet-mask, broadcast-address, time-offset, routers, + domain-name, domain-name-servers, domain-search, host-name, + dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers, + netbios-name-servers, netbios-scope, interface-mtu, + rfc3442-classless-static-routes, ntp-servers; + +#send dhcp-client-identifier 1:0:a0:24:ab:fb:9c; +#send dhcp-lease-time 3600; +supersede domain-name "agamemnon.hpc.epfl.ch"; +prepend domain-name-servers 127.0.0.1; +#require subnet-mask, domain-name-servers; +#timeout 60; +#retry 60; +#reboot 10; +#select-timeout 5; +#initial-interval 2; +#script "/sbin/dhclient-script"; +#media "-link0 -link1 -link2", "link0 link1"; +#reject 192.33.137.209; + +#alias { +# interface "eth0"; +# fixed-address 192.5.5.213; +# option subnet-mask 255.255.255.255; +#} + +#lease { +# interface "eth0"; +# fixed-address 192.33.137.200; +# medium "link0 link1"; +# option host-name "andare.swiftmedia.com"; +# option subnet-mask 255.255.255.0; +# option broadcast-address 192.33.137.255; +# option routers 192.33.137.250; +# option domain-name-servers 127.0.0.1; +# renew 2 2000/1/12 00:00:01; +# rebind 2 2000/1/12 00:00:01; +# expire 2 2000/1/12 00:00:01; +#} diff --git a/configs/frontal/etc/dnsmasq.d/cluster-conf b/configs/frontal/etc/dnsmasq.d/cluster-conf new file mode 100644 index 0000000..1971b33 --- /dev/null +++ b/configs/frontal/etc/dnsmasq.d/cluster-conf @@ -0,0 +1,51 @@ +# Never forward plain names (without a dot or domain part) +domain-needed + +# Never forward addresses in the non-routed address spaces. +bogus-priv + + +# If you want dnsmasq to listen for DHCP and DNS requests only on +# specified interfaces (and the loopback) give the name of the +# interface (eg eth0) here. +# Repeat the line for more than one interface. +interface=lo +interface=enxb827ebbb7f89 + +# Add other name servers here, with domain specs if they are for +# non-public domains. +#server=128.178.15.7 +#server=128.178.15.8 + +# Set this (and domain: see below) if you want to have a domain +# automatically added to simple names in a hosts-file. +expand-hosts + +# Set the domain for dnsmasq. this is optional, but if it is set, it +# does the following things. +# 1) Allows DHCP hosts to have fully qualified domain names, as long +# as the domain part matches this setting. +# 2) Sets the "domain" DHCP option thereby potentially setting the +# domain of all systems configured by DHCP +# 3) Provides the domain part for "expand-hosts" +domain=agamemnon.hpc.epfl.ch + +# Uncomment this to enable the integrated DHCP server, you need +# to supply the range of addresses available for lease and optionally +# a lease time. If you have more than one network, you will need to +# repeat this for each network on which you want to supply DHCP +# service. +dhcp-range=192.168.255.200,192.168.255.250,12h + +# If this line is uncommented, dnsmasq will read /etc/ethers and act +# on the ethernet-address/IP pairs found there just as if they had +# been given as --dhcp-host options. Useful if you keep +# MAC-address/host mappings there for other purposes. +read-ethers + +# For debugging purposes, log each DNS query as it passes through +# dnsmasq. +#log-queries + +# Log lots of extra information about DHCP transactions. +#log-dhcp diff --git a/configs/frontal/etc/ethers b/configs/frontal/etc/ethers new file mode 100644 index 0000000..a3c2dc0 --- /dev/null +++ b/configs/frontal/etc/ethers @@ -0,0 +1,8 @@ +00:1e:06:33:0d:6c r01-n01 +00:1e:06:33:0d:e3 r01-n02 +00:1e:06:33:27:86 r01-n03 +00:1e:06:33:25:e2 r01-n04 +00:1e:06:33:25:ef r02-n01 +00:1e:06:33:24:f8 r02-n02 +00:1e:06:33:22:90 r02-n03 +00:1e:06:33:27:b1 r02-n04 diff --git a/configs/frontal/etc/iptables/rules.v4 b/configs/frontal/etc/iptables/rules.v4 new file mode 100644 index 0000000..6723752 --- /dev/null +++ b/configs/frontal/etc/iptables/rules.v4 @@ -0,0 +1,16 @@ +# Generated by iptables-save v1.6.2 on Thu Sep 20 12:39:19 2018 +*filter +:INPUT ACCEPT [0:0] +:FORWARD ACCEPT [0:0] +:OUTPUT ACCEPT [0:0] +COMMIT +# Completed on Thu Sep 20 12:39:19 2018 +# Generated by iptables-save v1.6.2 on Thu Sep 20 12:39:19 2018 +*nat +:PREROUTING ACCEPT [38:3819] +:INPUT ACCEPT [16:2520] +:OUTPUT ACCEPT [0:0] +:POSTROUTING ACCEPT [0:0] +-A POSTROUTING -o enx0010602342fb -j MASQUERADE +COMMIT +# Completed on Thu Sep 20 12:39:19 2018 diff --git a/configs/frontal/etc/iptables/rules.v6 b/configs/frontal/etc/iptables/rules.v6 new file mode 100644 index 0000000..b19f65b --- /dev/null +++ b/configs/frontal/etc/iptables/rules.v6 @@ -0,0 +1,11 @@ +# Generated by ip6tables-save v1.6.2 on Thu Sep 20 12:39:19 2018 +*filter +:INPUT ACCEPT [0:0] +:FORWARD ACCEPT [0:0] +:OUTPUT ACCEPT [0:0] +-A INPUT -s ::1/128 -m comment --comment "RFC3513 loopback" -j ACCEPT +-A INPUT -s fc00::/7 -m comment --comment "RFC4193 reserved" -j ACCEPT +-A INPUT -s fe80::/10 -m comment --comment "RFC4291 link-local" -j ACCEPT +-A INPUT -p tcp -m tcp --dport 22 -m comment --comment SSH -j REJECT --reject-with icmp6-port-unreachable +COMMIT +# Completed on Thu Sep 20 12:39:19 2018 diff --git a/configs/frontal/etc/modprobe.d/vc4.conf b/configs/frontal/etc/modprobe.d/vc4.conf new file mode 100644 index 0000000..caf9787 --- /dev/null +++ b/configs/frontal/etc/modprobe.d/vc4.conf @@ -0,0 +1 @@ +blacklist vc4 \ No newline at end of file diff --git a/configs/frontal/etc/network/interfaces.d/enx0010602342fb b/configs/frontal/etc/network/interfaces.d/enx0010602342fb new file mode 100644 index 0000000..ab84de3 --- /dev/null +++ b/configs/frontal/etc/network/interfaces.d/enx0010602342fb @@ -0,0 +1,5 @@ +auto enx0010602342fb +allow-hotplug enx0010602342fb +iface enx0010602342fb inet dhcp + + diff --git a/configs/frontal/etc/network/interfaces.d/enxb827ebbb7f89 b/configs/frontal/etc/network/interfaces.d/enxb827ebbb7f89 new file mode 100644 index 0000000..b0674f9 --- /dev/null +++ b/configs/frontal/etc/network/interfaces.d/enxb827ebbb7f89 @@ -0,0 +1,5 @@ +auto enxb827ebbb7f89 +allow-hotplug enxb827ebbb7f89 +iface enxb827ebbb7f89 inet static + address 192.168.255.1 + netmask 255.255.255.0 \ No newline at end of file diff --git a/configs/frontal/etc/network/interfaces.d/wlan0 b/configs/frontal/etc/network/interfaces.d/wlan0 new file mode 100644 index 0000000..cf09e33 --- /dev/null +++ b/configs/frontal/etc/network/interfaces.d/wlan0 @@ -0,0 +1,3 @@ +auto wlan0 +iface wlan0 inet dhcp + wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf \ No newline at end of file diff --git a/configs/frontal/etc/sysctl.d/90-net.conf b/configs/frontal/etc/sysctl.d/90-net.conf new file mode 100644 index 0000000..a1665b4 --- /dev/null +++ b/configs/frontal/etc/sysctl.d/90-net.conf @@ -0,0 +1 @@ +net.ipv4.ip_forward=1 \ No newline at end of file