Difference between revisions of "Tinc"
From Tmplab
Samneurohack (talk | contribs) (→==) |
Samneurohack (talk | contribs) (→Yet Another Help For Basic tinc-vpn setup) |
||
Line 34: | Line 34: | ||
#!/bin/bash | #!/bin/bash | ||
ifconfig $INTERFACE down | ifconfig $INTERFACE down | ||
+ | |||
+ | == Client1 == | ||
+ | |||
+ | Name=client1 | ||
+ | Subnet=192.168.22.2 | ||
+ | -----BEGIN RSA PUBLIC KEY----- | ||
+ | .... | ||
+ | -----END RSA PUBLIC KEY----- | ||
+ | |||
+ | == Client2 == | ||
+ | |||
+ | Name=client2 | ||
+ | Subnet=192.168.22.3 | ||
+ | -----BEGIN RSA PUBLIC KEY----- | ||
+ | .... | ||
+ | -----END RSA PUBLIC KEY----- |
Revision as of 01:19, 25 May 2016
Contents
Yet Another Help For Basic tinc-vpn setup
Configuration Directory Structure
/etc/tinc/ nets.boot networkname/ tinc.conf tinc-up tinc-down hosts/ Client1 Client2 TincServer
nets.boot
networkname
tinc.conf
Name=Client1 Device=/dev/net/tun ConnectTo=TincServer AddressFamily = ipv4
tinc-up
#!/bin/bash ifconfig $INTERFACE 192.168.22.20 netmask 255.255.255.0
tinc-down
#!/bin/bash ifconfig $INTERFACE down
Client1
Name=client1 Subnet=192.168.22.2 -----BEGIN RSA PUBLIC KEY----- .... -----END RSA PUBLIC KEY-----
Client2
Name=client2 Subnet=192.168.22.3 -----BEGIN RSA PUBLIC KEY----- .... -----END RSA PUBLIC KEY-----