-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tinc-vpn:T766:Initial support for tinc VPN
- Loading branch information
1 parent
741cd00
commit b5cc71f
Showing
13 changed files
with
1,130 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% for prefix in subnets %} | ||
Subnet = {{ prefix }} | ||
{% endfor %} | ||
{% for addr in local_address %} | ||
Address = {{ addr }} | ||
{% endfor %} | ||
Port = {{ port }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
ip link set {{ ifname }} down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
{% for addr in address %} | ||
ip addr add dev {{ ifname }} local {{ addr }} | ||
{% endfor %} | ||
ip link set {{ ifname }} up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
Name = {{ node_name }} | ||
Interface = {{ ifname }} | ||
Mode = {{ device.mode }} | ||
Compression = {{ compression_level }} | ||
Cipher = {{ encryption.cipher }} | ||
Digest = {{ encryption.digset }} | ||
Hostnames = {{ resolve_hostname }} | ||
PrivateKeyFile = {{ private_keyfile }} | ||
Broadcast = {{ broadcast_type }} | ||
DecrementTTL = {{ decrement_ttl }} | ||
DirectOnly = {{ direct_only }} | ||
Forwarding = {{ forwarding_option }} | ||
IffOneQueue = {{ iff_One_Queue }} | ||
KeyExpire = {{ key_expire }} | ||
LocalDiscovery = {{ local_discovery }} | ||
MACExpire = {{ mac_expire}} | ||
MaxTimeout = {{ max_timeout }} | ||
PingInterval = {{ ping_interval }} | ||
PingTimeout = {{ ping_timeout }} | ||
PriorityInheritance = {{ priority_inheritance }} | ||
ProcessPriority = {{ priority }} | ||
ReplayWindow = {{ replay_window }} | ||
StrictSubnets = {{ strict_subnets }} | ||
TunnelServer = {{ tunnel_server }} | ||
ClampMSS = {{ clamp_mss }} | ||
IndirectData = {{ indirect_data }} | ||
MACLength = {{ mac_length }} | ||
PMTU = {{ mtu }} | ||
PMTUDiscovery = {{ PMTU_Discovery }} | ||
TCPonly = {{ TCP_Only }} | ||
DeviceType = {{ device.type }} | ||
{% if udp_rcv_buf %} | ||
UDPRcvBuf = {{ udp_rcv_buf }} | ||
{% endif %} | ||
{% if udp_snd_buf %} | ||
UDPSndBuf = {{ udp_snd_buf }} | ||
{% endif %} | ||
{% if proxy and proxy.type %} | ||
{% if proxy.type == 'socks5' %} | ||
Proxy = {{ proxy.type }} {{ proxy.address }} {{ proxy.port }} {{ proxy.username }} { proxy.password }} | ||
{% elif proxy.type == 'socks4' %} | ||
Proxy = {{ proxy.type }} {{ proxy.address }} {{ proxy.port }}{{ proxy.username }} | ||
{% elif proxy.type == 'http' %} | ||
Proxy = {{ proxy.type }} {{ proxy.address }} {{ proxy.port }} | ||
{% elif proxy.type == 'exec' %} | ||
Proxy = {{ proxy.type }} {{ proxy.exec }} | ||
{% endif %} | ||
{% endif %} | ||
{% if connect %} | ||
ConnectTo = {{ connect }} | ||
{% endif %} | ||
{% if bind_address %} | ||
BindToAddress = {{ bind_address }} | ||
{% endif %} | ||
{% if bind_interface %} | ||
BindToInterface = {{ bind_interface }} | ||
{% endif %} | ||
{% if graph_dump_file %} | ||
GraphDumpFile = {{ graph_dump_file }} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.