--- /dev/null
+## example of 2 independent networks:
+
+# # top port
+# auto eth2
+# iface eth2 inet static
+# address 10.3.0.4/24
+
+# # bottom port
+# auto eth1
+# iface eth1 inet static
+# address 10.9.0.4/24
+
+
+## manual bond configuration example:
+# modprobe bonding
+# echo +bond0 > /sys/class/net/bonding_masters
+# echo +eth2 > /sys/class/net/bond0/bonding/slaves
+# echo +eth1 > /sys/class/net/bond0/bonding/slaves
+# ip addr add 10.3.0.4/24 dev bond0
+# ip link set bond0 up
+
+## things not needed for us, but could be useful elsewhere:
+
+# Set MII monitoring interval to 100ms for link detection
+#echo 100 > /sys/class/net/bond0/bonding/miimon
+
+## bonding mode (we happen to be using the default)
+#ip link set bond0 down
+#echo balance-rr > /sys/class/net/bond0/bonding/mode
+
+# Also, set slaves to down before adding them.
+
+# status lookup:
+# cat /proc/net/bonding/bond0
+# cat /sys/class/net/bond0/bonding/slaves
+# cat /sys/class/net/bonding_masters
+
+
+auto eth1
+iface eth1 inet static
+address 10.3.0.4/24
--- /dev/null
+
+## example of 2 independent networks:
+
+# # top right port
+# auto eth0
+# iface eth0 inet static
+# address 10.3.0.2/24
+
+# # bottom left port
+# auto eth2
+# iface eth2 inet static
+# address 10.9.0.2/24
+# #
+
+
+auto eth0
+iface eth0 inet static
+address 10.3.0.2/24
+#
--- /dev/null
+ifconfig-push 10.5.5.9 255.255.255.0
--- /dev/null
+[Unit]
+Description=Initial setup of netns for wg-quick-tr %I
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/flock -w 20 /tmp/newns.flock /usr/local/bin/newns/newns -n 10.174.9 start %i
+ExecStop=/usr/bin/flock -w 20 /tmp/newns.flock /usr/local/bin/newns/newns stop %i
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+[Unit]
+Description=WireGuard via wg-quick(8) for %I
+After=network-online.target nss-lookup.target wg-quick-tr-pre@%i.service
+Wants=network-online.target nss-lookup.target wg-quick-tr-pre@%i.service
+Documentation=man:wg-quick(8)
+Documentation=man:wg(8)
+
+[Service]
+Type=simple
+ExecReload=/bin/bash -c 'exec /usr/bin/wg syncconf %i <(exec /usr/bin/wg-quick strip %i)'
+ExecStartPre=/sbin/iptables-restore /a/bin/distro-setup/transmission-firewall/netns.rules
+ExecStartPre=/usr/sbin/ip r add 10.8.0.0/24 via 10.174.9.1 dev veth1-client
+ExecStartPre=/usr/bin/wg-quick up %i
+ExecStart=/bin/sleep infinity
+ExecStopPost=/usr/bin/wg-quick down %i
+ExecStopPost=/usr/sbin/ip r del 10.8.0.0/24 via 10.174.9.1 dev veth1-client
+NetworkNamespacePath=/var/run/netns/%i
+BindReadOnlyPaths=/etc/tr-resolv:/run/systemd/resolve:norbind /etc/basic-nsswitch:/etc/resolved-nsswitch:norbind
+# copied from wg-quick@.service
+Environment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity
+
+[Install]
+WantedBy=multi-user.target