Added sample configuration directory.
This commit is contained in:
parent
d646f4e094
commit
b195e8815f
9 changed files with 74 additions and 46 deletions
13
doc/sample-config/hosts/alpha
Normal file
13
doc/sample-config/hosts/alpha
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Sample host configuration file
|
||||
|
||||
# The real IP address of this tinc host. Can be used by other tinc hosts.
|
||||
Address = 123.234.35.67
|
||||
|
||||
# Portnumber for incoming connections. Default is 655.
|
||||
Port = 655
|
||||
|
||||
# Subnet on the virtual private network that is local for this host.
|
||||
Subnet = 192.168.1.0/24
|
||||
|
||||
# The file in which the public key for this host is stored. Required.
|
||||
PublicKeyFile = /etc/tinc/example/hosts/alpha.key
|
||||
1
doc/sample-config/hosts/alpha.key
Normal file
1
doc/sample-config/hosts/alpha.key
Normal file
|
|
@ -0,0 +1 @@
|
|||
# Generate this file with `tincd -n example -K`
|
||||
14
doc/sample-config/hosts/beta
Normal file
14
doc/sample-config/hosts/beta
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Sample host configuration file
|
||||
# This file was generated by host beta.
|
||||
|
||||
# The real IP address of this tinc host. Can be used by other tinc hosts.
|
||||
Address = 123.45.67.189
|
||||
|
||||
# Portnumber for incoming connections. Default is 655.
|
||||
Port = 6500
|
||||
|
||||
# Subnet on the virtual private network that is local for this host.
|
||||
Subnet = 192.168.2.0/24
|
||||
|
||||
# The file in which the public key for this host is stored. Required.
|
||||
PublicKeyFile = /etc/tinc/example/hosts/beta.key
|
||||
1
doc/sample-config/hosts/beta.key
Normal file
1
doc/sample-config/hosts/beta.key
Normal file
|
|
@ -0,0 +1 @@
|
|||
# This file has not been generated by this host, but by beta.
|
||||
1
doc/sample-config/rsa_key.priv
Normal file
1
doc/sample-config/rsa_key.priv
Normal file
|
|
@ -0,0 +1 @@
|
|||
# Generate this file with `tincd -n example -K`
|
||||
7
doc/sample-config/tinc-down
Normal file
7
doc/sample-config/tinc-down
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
# This file closes down the tap device.
|
||||
# Note that if you use the universal tun/tap driver, you don't
|
||||
# need to do anything; once tinc quits the tap device is already
|
||||
# removed by the kernel.
|
||||
|
||||
ifconfig tap0 down
|
||||
14
doc/sample-config/tinc-up
Normal file
14
doc/sample-config/tinc-up
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
# This file sets up the tap device.
|
||||
# It gives you the freedom to do anything you want with it.
|
||||
# Use the correct name for the tap device:
|
||||
# For ethertap this is tap0, tap1, tap2 etcetera,
|
||||
# but for the universal tun/tap device use $NETNAME.
|
||||
|
||||
# Set hardware ethernet address (required!)
|
||||
ifconfig tap0 hw ether fe:fd:0:0:0:0
|
||||
|
||||
# Give it the right ip and netmask. Remember, the subnet of the
|
||||
# tap device must be larger than that of the individual Subnets
|
||||
# as defined in the host configuration file!
|
||||
ifconfig tap0 192.168.1.1 netmask 255.255.0.0 -arp
|
||||
23
doc/sample-config/tinc.conf
Normal file
23
doc/sample-config/tinc.conf
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Sample tinc configuration file
|
||||
|
||||
# This is a comment.
|
||||
# Spaces and tabs are eliminated.
|
||||
# The = sign isn't strictly necessary any longer, though you may want
|
||||
# to leave it in as it improves readability :)
|
||||
# Variable names are treated case insensitive.
|
||||
|
||||
# The name of this tinc host. Required.
|
||||
Name = alpha
|
||||
|
||||
# The internet host to connect with.
|
||||
# Comment these out to make yourself a listen-only connection
|
||||
# You must use the name of another tinc host.
|
||||
# May be used multiple times for redundance.
|
||||
ConnectTo = beta
|
||||
|
||||
# The tap device tinc will use. Required.
|
||||
# Default is /dev/tap0
|
||||
TapDevice = /dev/tap1
|
||||
|
||||
# The file in which the private key for this host is stored. Required.
|
||||
PrivateKeyFile = /etc/tinc/example/rsa_key.priv
|
||||
Loading…
Add table
Add a link
Reference in a new issue