mirror of https://github.com/dswd/vpncloud.git
Updated Dial in Tutorial (markdown)
parent
7ba99b60d9
commit
5b02b5dbe0
|
@ -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"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue