summaryrefslogtreecommitdiffstats
path: root/Retiolum.md
diff options
context:
space:
mode:
authorAnonymous <anon@anon.com>2021-03-06 16:45:36 +0100
committerAnonymous <anon@anon.com>2021-03-06 16:45:36 +0100
commit3cf7e6bc31f992125c0c40b818e4ef9d3e4595e8 (patch)
tree610f6a9588c20fec3611394da34f53b05ce90b83 /Retiolum.md
parent4c60cd6e9b15332d739ae2be5e2d038220ba8539 (diff)
Renamed Retiolum FAQ to /Retiolum
Diffstat (limited to 'Retiolum.md')
-rw-r--r--Retiolum.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/Retiolum.md b/Retiolum.md
new file mode 100644
index 0000000..5ce329e
--- /dev/null
+++ b/Retiolum.md
@@ -0,0 +1,14 @@
+# Q: how to route LAN hosts into retiolum?
+
+ First select a host in the LAN that has access to retiolum, let's say the host at `$ROUTERIP`.
+ On that host open the firewall and enable forwarding (example for IPv4, but IPv6 works similarly):
+
+ iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
+ iptables -A FORWARD -o lretiolum -j ACCEPT
+ iptables -t nat -A POSTROUTING -o retiolum -j MASQUERADE
+ echo 1 > /proc/sys/net/ipv4/ip_forward
+
+ Then other hosts in the LAN can use `$ROUTERIP` to access retiolum by adding a route like this:
+
+ ip route add 10.243.0.0/16 via $ROUTERIP
+