summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnonymous <anon@anon.com>2021-03-06 16:17:28 +0100
committerAnonymous <anon@anon.com>2021-03-06 16:17:28 +0100
commit37fc33ec4361aa5670324b64a07b577e72f4a2f7 (patch)
tree5cfbd9f728f85feb64319d375bda8cbaeaa6837f
parent4e5cb3ab37f9532a3d8110571f76918a778d64ed (diff)
Talk about routing LAN
-rw-r--r--Retiolum FAQ.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/Retiolum FAQ.md b/Retiolum FAQ.md
new file mode 100644
index 0000000..b629940
--- /dev/null
+++ b/Retiolum FAQ.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 tinc.alretiolum -j ACCEPT
+ iptables -t nat -A POSTROUTING -o tinc.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
+