Last active
October 15, 2022 23:06
-
-
Save crazyboycjr/6a4b6cd84dc716dae4d33b0c47177e55 to your computer and use it in GitHub Desktop.
tinc configuration collection. welcome to peer with me~
This file contains hidden or 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
Name = deck | |
Mode = switch | |
Interface = vpn0 | |
ConnectTo = vps2 | |
ConnectTo = vps1 | |
LocalDiscovery = yes |
This file contains hidden or 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
Port = 656 | |
Subnet = 172.16.1.12/32 | |
Subnet = 2001:1000:1000::12/128 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEAxQZkvvqrtrbb0kGye8+N51IVRnNRtv64GRdp2zZibQf2NjTdjpok | |
Emv7Z6mWyT+PQGbQQjwe3dTg7WRecWA1nl0ss1/iQyF5mQn227BRWfBUsKnqtIWU | |
NShVdDJjrChWkBeiCOZiUITayGdWr8W4d8DvBKm5mxLWMNuSCiFF71BKEhox4oNL | |
6t0nQX9VCoBheKMoBfINhZRtNDxKD0Np4hVo/FK2ypBUpi1gE8HuPQ6eEor+jsWy | |
/UUSCzZ63ifphTufPz4FOSRhvs4A1myALdeLKmfhi1YdzR+Pz36CvwjSF45rrG5q | |
U2xN0JFEtSJzRYYeM4kIekvV1yUfVBF6cQIDAQAB | |
-----END RSA PUBLIC KEY----- | |
Ed25519PublicKey = ueGxM4T5UD7i38yIDMvxJPsvkS1psHtpzWFWkxuOJlN |
This file contains hidden or 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
Name = dorm | |
Mode = switch | |
Interface = vpn0 | |
ConnectTo = qingcloud | |
ConnectTo = tsserver | |
ConnectTo = nds | |
LocalDiscovery = yes |
This file contains hidden or 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
Address = 10.147.104.34 | |
Address = 2001:da8:8001:3304::dead:beef | |
Port = 655 | |
Subnet = 172.16.1.1/32 | |
Subnet = 2001:1000:1000::1/128 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEAuG11Z8egtyN/3klVCYTW4VvznkZvbg1rl5+X4JXJPYphGXeMtN6O | |
+NuQLnHYAo5TnI+FaNL0+ZKIjvppe2ByzzQyGDjjv5kYT5r17plXtEQZGlZznw93 | |
lAvNLN/wSTQgbth6e8z6q2h2V28yXi+ZrJwQFuMxnWKqC7wHf+mzh42eKnZXbGWz | |
69Z90UHQM0FSsOVB2wM33bxrsMmc3/8QIwJvKsty6oTIvpt2eFlxlBui3xdqJ6gs | |
SgWtP3vXhlVC7SDuUpM3pZus5oDvO5S58lF6R3nVbjBtDjzrd0NWu5bzYwWbqgjK | |
TJ6yTQdblQqavetQryS/k2RYymFa73jl2wIDAQAB | |
-----END RSA PUBLIC KEY----- |
This file contains hidden or 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
Name = hkust21 | |
Mode = switch | |
Interface = vpn0 | |
ConnectTo = tsserver | |
ConnectTo = vps2 |
This file contains hidden or 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
Port = 655 | |
Subnet = 172.16.1.11/32 | |
Subnet = 2001:1000:1000::11/128 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEAsTABHtygSX7RMP/RaFP41jvZue+DHs747SV0KZmEIJzNntosC68U | |
3nBWFF6wUqUPTbYyD+K2TfivbwJqCR4ZBE6/x6GkrXT8YkhaHDXWLlknFNW6naRl | |
54a1uOs2Wq+DJI0ipiCDtjne9HI8MgC0Zi4LMDH4WKVhSLA9G3jU46uGVf22cbvK | |
jXa6G4kvf0iCO+wmw9BgorzFunqDWQoGuKkQFG3A+LzWlHN6r7JrCVSKrcP+1OKB | |
V1Dm9LXPDiCu6FU6uhb6myIk8FpkIc3uF9T4mY5mab3CEmA9KrR/+O6pPlYwwcnH | |
fWNPdU1k86qS4Hl6HtJ44hkjNuK6ZxmtRwIDAQAB | |
-----END RSA PUBLIC KEY----- |
This file contains hidden or 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
Name = laptop | |
Mode = switch | |
Interface = vpn0 | |
ConnectTo = dorm | |
ConnectTo = openwrt | |
ConnectTo = nds | |
ConnectTo = qingcloud | |
ConnectTo = tsserver | |
ConnectTo = vps2 | |
LocalDiscovery = yes |
This file contains hidden or 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
Port = 655 | |
Subnet = 172.16.1.3/32 | |
Subnet = 2001:1000:1000::3/128 | |
Ed25519PublicKey = Uek8oJOc2CR9rAlcQNDTPEsB0eZv7OwCvcoipy0hJQF | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEAs7lh5Yvc6gvBKhJAQyv3cYOXlYOdhAbpoGhHpurpZc9qqZ+XjJCL | |
UOPbIDU8yInL7U3XA/dqtgq3v8uX+CZbLAFAqgkmKGMA9QrWlS4IwDe0P8kOIwWo | |
SVP2sqb8TVvoEpeaVtllkwEIk2l/A+ecr0d9ApfMgL1BFHYKfrZBKrw6ArirAR0I | |
xnpZC3INS/b9Px1PJ7p3XJgxilHeMdCffjU5qM9sEho+QuBcxe5w5N1FSLGdM+bc | |
Iu3XO0w9zRbU/tVzbshrG9JmKbbIWGdd8CeCrtgBO2dA+VRD5dwihITVTS3PxyfB | |
6vXvEUeuU3fTwMELt2bgi1nDp/XLQZxbbQIDAQAB | |
-----END RSA PUBLIC KEY----- |
This file contains hidden or 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
Name = macbook | |
Mode = switch | |
Interface = tap0 | |
ConnectTo = vps2 | |
ConnectTo = vps1 | |
ConnectTo = laptop | |
LocalDiscovery = yes | |
Device = /dev/tap0 |
This file contains hidden or 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
Port = 655 | |
Subnet = 172.16.1.10/32 | |
Subnet = 2001:1000:1000::10/128 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEAqEg3h5UwPuHy8gOstIx6jzBYNV3FUWddOw2+n/2Ukds3Iu9dSdFD | |
8QCDRfSJyBwBhPoTX2L3XhU8FEMl61o/C4ZWsiYuzhe1I+IcPEks2PLZK4Du4VGf | |
5v+iq/6ENZd+myt0+gOTofPJHzR7pNr8URVXT96lg3fXfYthlTFzEQfH1r/TRI6D | |
VPUkI1KM/F2EPz95SMtnH4SLkU2e8aBeJTjO3qNTbopaiRtTddENT/G9VeOf3c2c | |
9MOnBURYEbGMM9cm4RBOYD27LmkN/tEbjfohfphC4fffkHHy5DRMhLV6hbJxtXCX | |
QFf/Csk1avfv65x0i6sgn/xmRsdHGuyMgQIDAQAB | |
-----END RSA PUBLIC KEY----- |
This file contains hidden or 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
#!/bin/bash | |
# Flush Static routing table | |
# Disable tinc | |
/usr/local/bin/ip -6 addr del 2001:1000:1000::10/64 dev $INTERFACE | |
/usr/local/bin/ip addr del 172.16.1.10/24 dev $INTERFACE | |
/usr/local/bin/ip link set $INTERFACE down |
This file contains hidden or 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
#!/bin/bash | |
# Enable tinc | |
/usr/local/bin/ip link set $INTERFACE up | |
/usr/local/bin/ip addr add 172.16.1.10/24 dev $INTERFACE | |
/usr/local/bin/ip -6 addr add 2001:1000:1000::10/64 dev $INTERFACE | |
# Static routing table |
This file contains hidden or 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
Name = mbp | |
Mode = switch | |
ConnectTo = tsserver | |
ConnectTo = vps2 | |
ConnectTo = dorm | |
ConnectTo = nds | |
Interface = vpn0 |
This file contains hidden or 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
Port = 655 | |
Subnet = 172.16.1.10/32 | |
Subnet = 2001:1000:1000::10/128 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEA7mbeNCLhysXl7MPC0BBQPZ7H5bIbWmhr/UVWSNvPiXDphAMvlTWS | |
wZZXrUDwdFCS1P1gUwkN27V0YE5SwP2m0ynw6xCm2iWRWwTLEu8Gd7YKR402GWV+ | |
6OeLXZdoaQyNwRIfWph2nqnfqdSQYr4dHM/rWAGQIS+HkRtaetmrocp+nsa0PLPx | |
wHGdTbSZ4mCGhZDdB5ZP47DrCYdR92VRfbExibE7FsvdwaBpZ+IVmm5WZ9zM9gdM | |
P5sAf+Po6+/Tc9ZP7/X9DyjQNweAwUsyjM90OlwAPkwZso2l7wg2Hbn3rksUaBW5 | |
pLsHkNs3AWSTF+58isN2OkqkCgMFdNjmnwIDAQAB | |
-----END RSA PUBLIC KEY----- |
This file contains hidden or 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
Name = nds | |
Mode = switch | |
ConnectTo = dorm | |
ConnectTo = openwrt | |
ConnectTo = qingcloud | |
ConnectTo = tsserver | |
ConnectTo = vps2 | |
Interface = vpn0 | |
LocalDiscovery = yes |
This file contains hidden or 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
Address = 10.144.4.56 | |
Port = 655 | |
Subnet = 172.16.1.5/32 | |
Subnet = 2001:1000:1000::5/128 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEA0Sk1vrEeUgMuxLRa7YfNuw0MjnpA/mgWB7d/HbHOfKEB43OIBgr7 | |
pyRDfBrG5Y7qCQZKUr7F3J62gq6Cy3vNCsuwYYOmpZGK1q/p7IC1D2jiadH+SSK2 | |
/UzrU7ls8lm3R/61BMwE/+GIj7QyteA0+rH9wpxlAmx2NSioVsIlQshlHkmKMOex | |
BSYDyv8/x9/h7+VfgJWjprDliPovTqbOU2cxdBs9Ncd5rg4e0i2MaiuoeURMcQ0F | |
R+mF30sTc1+SWV3RNc4OthABmVaeNpn4VjfWaS+xuCXaGXID9jUrvL+xhk0GQ1nB | |
VkcQRJKBf6z/IkCc5KMYRtFgrCLVimoE+wIDAQAB | |
-----END RSA PUBLIC KEY----- |
This file contains hidden or 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
Name = office | |
Mode = switch | |
Interface = vpn0 | |
ConnectTo = vps2 | |
ConnectTo = vps1 | |
LocalDiscovery = yes |
This file contains hidden or 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
Port = 655 | |
Subnet = 172.16.1.11/32 | |
Subnet = 2001:1000:1000::11/128 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEArHh/gszrhyYpFoYXWJOLV+Xixtdjtdvo1PyiljoZup/nyoq/DOoZ | |
5iu1BXV1D95ogy4n8QxPm4KwdvklKelilVi4WhnwrgK0qG0w+dDl39qguZjRlDr5 | |
JHO7PJMIoremoKNuDxrmz0r73hPuVVXY1AgcCQ3Hy6kAuDtxnaC78QTn74JbgqA3 | |
Y/0Ms8Yeh1oro0NFAK6UHNsaHnu86Vn5xfRdQTFs0rc9WSc9QAfcNjAOWUwdfu2r | |
9liNf5RGzptE4XXUIs8Enx0dDGunVYq10+j1Fl3zKtMvGcWEgg8h0WllHVjpjT/g | |
I3SXOKUgnEthBJp2adQAjolGguIfPWAXRwIDAQAB | |
-----END RSA PUBLIC KEY----- | |
Ed25519PublicKey = ohFEGmATeARLofl1J1+RdHv/bHX4BCcVgITA0/6VLxI |
This file contains hidden or 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
Name = openwrt | |
Mode = switch | |
ConnectTo = dorm | |
ConnectTo = nds | |
ConnectTo = tsserver | |
ConnectTo = qingcloud | |
ConnectTo = vps2 | |
Interface = vpn0 |
This file contains hidden or 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
Address = 10.147.104.32 | |
Port = 655 | |
Subnet = 172.16.1.4/32 | |
Subnet = 2001:1000:1000::4/128 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEAuGpRVFtSxZNYELZtAHE+QVVlWdKIEEpLlSisY6YDDcf47RPY5h/J | |
5br0IBWpVFKTtFJ9dVoy16n7FNq/sfJz/5xMK2JYeqt7DsnHdFnTzOZW7ihjwBFl | |
Y5cUfyaPacs8Al3Id92EmTocK84IzM+cVs/aqQIZbBRwiiS01RM5lQubTszChq4k | |
MOFHiWZ1wjhrg6w3l4ZFh5uGGtdVywlb4pdD8u9O6mRAYMtBUw/eDAj2r+JAPtid | |
+8kltUeh2YXrfWR37QnL4jTd3baU+PR0iUJtBlgP2w1OoiNsKQ3Qqsv2mDQ/iC6j | |
5YVQWgubb0Z7Jd+7lJ26WRTr3ZwzSXUVgwIDAQAB | |
-----END RSA PUBLIC KEY----- | |
This file contains hidden or 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
Name = tsserver | |
Mode = switch | |
Interface = vpn0 | |
ConnectTo = qingcloud | |
ConnectTo = vps2 |
This file contains hidden or 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
Address = 203.91.121.82 | |
Port = 655 | |
Subnet = 172.16.1.7/32 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEAyypkieZrQopFECqsI9UJilgRSooE2FBBT/3g9AcRVi0jUG4x8+hy | |
HRuPY0rnk2vtteKGob0MqLfpcGm5r8LPJxHsfREaf2t4QvPIgz+eSBdDAUTNqBLC | |
dD5wmNEmx360JaGGGr+tUuDwMKZrvYg1sIkZ5EKQZIpYXxAEVUNpmpVebExZrSIl | |
cGAGHLhuI92CMh8BJbwnt9vfgCFPfccDhRzDFfpmyO2drIC2QApP7yp6YWOo2mcf | |
tVQAprJu2GGwYKFWUIxgQu1rgYt0eAa5Wq0MaR/wSDgwv4CQKKRQDrYaA+A996bM | |
lL+iQ9moBIRlfSxkbmNnrxqbnv4PhFiYxwIDAQAB | |
-----END RSA PUBLIC KEY----- |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>Label</key> | |
<string>tinc.vpn0</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/sbin/tincd</string> | |
<string>-c</string> | |
<string>/Users/cjr/Library/tinc/vpn0</string> | |
<string>--pidfile=/var/run/tincd.pid</string> | |
<string>-D</string> | |
</array> | |
</dict> | |
</plist> |
This file contains hidden or 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
Name = vps1 | |
Mode = switch | |
Interface = vpn0 | |
ConnectTo = vps2 | |
LocalDiscovery = yes |
This file contains hidden or 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
Address = 139.162.62.11 | |
Address = 2400:8901::f03c:91ff:fe08:cd88 | |
Port = 21 | |
Subnet = 172.16.1.9/32 | |
Subnet = 2001:1000:1000::9/128 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEAq/mRyKZUCzE3TDItJRSH47sBzUqrPjx1IIuY6JIP9k31LUgYjbSV | |
PvptOt35tXW5wxcy0t7LghXThi4/k5Y6LOi6Mv/MXzdigQJyo8t199iVPAvAYdRP | |
wmthw6BjpchD42Kx7EnJ5nOgyYOIKK3GCSqC8wk1gb/2+H4iyYCOFCBHdHuEflyl | |
Ig1VCv//Qg0MXUaoEc7CJfkcwQqA15YB/1CTr0o2nRFvoie3TNhfD7XP28LqB+o3 | |
GesfKNj6iPpcWxpzq/5LnOtdeSL9DYvzI3b13WIRzsA7yfaNqkHWWSMyETEeYvBa | |
/b855aiB0cLuJJ67+YHV3Ssfy3YxXdb4awIDAQAB | |
Ed25519PublicKey = +o9Lmxqha5b6azKCVVdWFQKOJ+RTkfCpxtpNPMonJIL |
This file contains hidden or 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
Name = vps2 | |
Mode = switch | |
#ConnectTo = dorm | |
ConnectTo = nds | |
Interface = vpn0 |
This file contains hidden or 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
Address = 45.79.103.43 | |
Address = 2600:3c01::f03c:91ff:fe79:be62 | |
Port = 21 | |
Subnet = 172.16.1.2/32 | |
Subnet = 2001:1000:1000::2/128 | |
-----BEGIN RSA PUBLIC KEY----- | |
MIIBCgKCAQEAq/oXU3mI1i7rXP411S/IT07z0lSJPyZTMdb6U7r6g227CWMu6EBP | |
SO9jMqT5gXA8X55X9gswKk80dabsPDEx/QWcUp5SEJAb3qRwOoXOa0lL0ClT9zKD | |
8meZjAHsSdvs8qoCaF95xDEXFDRqe8GkfrcoNdyQEdiHAA1aD99+eXT0KwQP3LO9 | |
AlEpnMDaKus1LO2epqRJV9TV46kwdXYAfE1h1zIX5SJ6VY530XnULu+3eLTebI7U | |
6+mgekc03tYATshtsASLli1NNRJZcq8p6u67Y1CE+rc6wH1QrMie1QeOlzMzzEjL | |
UXKHzky+DUEJJ5Rl6PKRDxUfi1AzLRMsqQIDAQAB | |
-----END RSA PUBLIC KEY----- | |
Ed25519PublicKey = GuhJRJm7F+AASQzfJSe7vGvH0UIIQ6MRCevJCHjvteE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment