From 5b02b5dbe01e5dc2629836516b307ebacf9229ce Mon Sep 17 00:00:00 2001 From: dswd Date: Sun, 4 Sep 2016 23:01:12 +0200 Subject: [PATCH] Updated Dial in Tutorial (markdown) --- Dial-in-Tutorial.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dial-in-Tutorial.md b/Dial-in-Tutorial.md index c74b55e..bb03e8b 100644 --- a/Dial-in-Tutorial.md +++ b/Dial-in-Tutorial.md @@ -32,6 +32,8 @@ The following values have to be modified: - **device_type**: We need to set this to `tun` in our scenario. +- **subnets**: The subnets claimed by this node. + - **ifup**: This is the startup command for configuring the interface. Here are the full configuration files for the nodes: @@ -41,6 +43,8 @@ Here are the full configuration files for the nodes: - gateway.example.com device_type: tun shared_key: "mysupersecretkey" + subnets: + - 192.168.254.1/32 ifup: "ifconfig $IFNAME 192.168.254.1/16 mtu 1400" #### Node2 @@ -48,12 +52,16 @@ Here are the full configuration files for the nodes: - gateway.example.com device_type: tun shared_key: "mysupersecretkey" + subnets: + - 192.168.254.2/32 ifup: "ifconfig $IFNAME 192.168.254.2/16 mtu 1400" #### Gateway peers: [] device_type: tun shared_key: "mysupersecretkey" + subnets: + - 192.168.254.0/24 ifup: "ifconfig $IFNAME 192.168.254.254/24 mtu 1400; sysctl -w net.ipv4.ip_forward=1"