From 5b8629ac299d4578fc163dc90b9ec9ec965ba32b Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 20 Apr 2014 22:09:20 +0200 Subject: update_tinc_host: kill readlink --- retiolum/Makefile | 0 retiolum/bin/update_tinc_hosts | 7 ++----- 2 files changed, 2 insertions(+), 5 deletions(-) mode change 100755 => 100644 retiolum/Makefile diff --git a/retiolum/Makefile b/retiolum/Makefile old mode 100755 new mode 100644 diff --git a/retiolum/bin/update_tinc_hosts b/retiolum/bin/update_tinc_hosts index ce1be497..46076cf2 100755 --- a/retiolum/bin/update_tinc_hosts +++ b/retiolum/bin/update_tinc_hosts @@ -7,11 +7,8 @@ if test "${nosudo-false}" != true -a `id -u` != 0; then exit 23 # go to hell fi -list_hosts="$( - basename="`readlink -f "$0"`" - bindir="`dirname "$basename"`" - echo "$bindir/hosts" -)" +list_hosts=$(cd -P "$(dirname "$0")" && pwd -P)/hosts + hosts() { "$list_hosts"; } hosts="${hosts-/etc/hosts}" -- cgit v1.2.3 From 59c99ac37ce28d3684cf5b61180c588ff8408762 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 20 Apr 2014 22:18:28 +0200 Subject: update-retiolum-hosts: remove readlink --- retiolum/bin/update-retiolum-hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retiolum/bin/update-retiolum-hosts b/retiolum/bin/update-retiolum-hosts index eb57af3f..0eae1c29 100755 --- a/retiolum/bin/update-retiolum-hosts +++ b/retiolum/bin/update-retiolum-hosts @@ -8,7 +8,7 @@ if test "${nosudo-false}" != true -a `id -u` != 0; then fi # cd //retiolum -cd $(dirname $(readlink -f $0))/.. +cd -P "$(dirname "$0")/.." mkdir -p /etc/tinc/retiolum/hosts rsync -va -I --delete hosts/ /etc/tinc/retiolum/hosts/ -- cgit v1.2.3 From 74ac7de3f0ada98d591f4b67e21ec0eeedb638fa Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 20 Apr 2014 22:51:35 +0200 Subject: retiolum/bin/hosts: \? is not BRE --- retiolum/bin/hosts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retiolum/bin/hosts b/retiolum/bin/hosts index 4856d494..4426a811 100755 --- a/retiolum/bin/hosts +++ b/retiolum/bin/hosts @@ -6,8 +6,8 @@ netname=${1-retiolum} cd /etc/tinc/$netname/hosts for i in `ls`; do - sed -n ' - s|^ *Subnet *= *\([^ /]*\)\(/[0-9]*\)\? *$|\1\t'$i'.'$netname' '$i'|p + sed -En ' + s|^ *Subnet *= *([^ /]*)(/[0-9]*)? *$|\1\t'$i'.'$netname' '$i'|p ' $i done | sort -- cgit v1.2.3 From dd5d0af9e64e343e68d5b3fc766767f5ebfa9a89 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 20 Apr 2014 22:54:02 +0200 Subject: retiolum/bin/hosts: osx doesn't know \t --- retiolum/bin/hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retiolum/bin/hosts b/retiolum/bin/hosts index 4426a811..44dbd88d 100755 --- a/retiolum/bin/hosts +++ b/retiolum/bin/hosts @@ -7,7 +7,7 @@ cd /etc/tinc/$netname/hosts for i in `ls`; do sed -En ' - s|^ *Subnet *= *([^ /]*)(/[0-9]*)? *$|\1\t'$i'.'$netname' '$i'|p + s|^ *Subnet *= *([^ /]*)(/[0-9]*)? *$|\1 '$i'.'$netname' '$i'|p ' $i done | sort -- cgit v1.2.3 From e789586369ac1b9c8109f96050d9ecc30e9883d2 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 21 Apr 2014 00:08:30 +0200 Subject: add keydir to painload --- keydir/lass.pub | 1 + keydir/makefu.pub | 1 + keydir/tv.pub | 1 + keydir/uriel.pub | 1 + 4 files changed, 4 insertions(+) create mode 100644 keydir/lass.pub create mode 100644 keydir/makefu.pub create mode 100644 keydir/tv.pub create mode 100644 keydir/uriel.pub diff --git a/keydir/lass.pub b/keydir/lass.pub new file mode 100644 index 00000000..c3688448 --- /dev/null +++ b/keydir/lass.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAp83zynhIueJJsWlSEykVSBrrgBFKq38+vT8bRfa+csqyjZBl2SQFuCPo+Qbh49mwchpZRshBa9jQEIGqmXxv/PYdfBFQuOFgyUq9ZcTZUXqeynicg/SyOYFW86iiqYralIAkuGPfQ4howLPVyjTZtWeEeeEttom6p6LMY5Aumjz2em0FG0n9rRFY2fBzrdYAgk9C0N6ojCs/Gzknk9SGntA96MDqHJ1HXWFMfmwOLCnxtE5TY30MqSmkrJb7Fsejwjoqoe9Y/mCaR0LpG2cStC1+37GbHJNH0caCMaQCX8qdfgMVbWTVeFWtV6aWOaRgwLrPDYn4cHWQJqTfhtPrNQ== death@uriel diff --git a/keydir/makefu.pub b/keydir/makefu.pub new file mode 100644 index 00000000..6092ec46 --- /dev/null +++ b/keydir/makefu.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCl3RTOHd5DLiVeUbUr/GSiKoRWknXQnbkIf+uNiFO+XxiqZVojPlumQUVhasY8UzDzj9tSDruUKXpjut50FhIO5UFAgsBeMJyoZbgY/+R+QKU00Q19+IiUtxeFol/9dCO+F4o937MC0OpAC10LbOXN/9SYIXueYk3pJxIycXwUqhYmyEqtDdVh9Rx32LBVqlBoXRHpNGPLiswV2qNe0b5p919IGcslzf1XoUzfE3a3yjk/XbWh/59xnl4V7Oe7+iQheFxOT6rFA30WYwEygs5As//ZYtxvnn0gA02gOnXJsNjOW9irlxOUeP7IOU6Ye3WRKFRR0+7PS+w8IJLag2xb makefu@pornocauster diff --git a/keydir/tv.pub b/keydir/tv.pub new file mode 100644 index 00000000..d295bbe4 --- /dev/null +++ b/keydir/tv.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDYv5OkVrnerkzJwgi7ol7HzcWJf4oWCJTX84trFX5vgJXu1zMvSe+koY8xpnMOd7WHF2wgsjjrFlMuixTrfMPc/OjvG2N1TlnvzlFD8ivTW/AJzDwNxT//niqAYAZ9kmb8e/zE/SyNHSKZcyEKGiiW2+YW9wWHPYRP/XiNEjLP3BeTGScMwWr001V/8m7ne4SGHrE1FbHbHqaBXgqUFgnvzMY3CsfDafODZlj5xSMNGHyLGNNKvu3YR1crcAjbQrBXBdwaArThFxp+e2uWrnffshlks6WtRyR1AFVjc/gxEG74Axq1AHY6EJm2Fw/JdFNiYQ7yyQZHS9bZJYjgnWF tv@nomic diff --git a/keydir/uriel.pub b/keydir/uriel.pub new file mode 100644 index 00000000..431c510b --- /dev/null +++ b/keydir/uriel.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDvw8SenwAMo/fz/UiosuxVg5TJgL4xkG2JSJsC/N1CKW4LmYt2YPQpW88XjtpBw1rrkIV3ZTxa0vMeQmixqJhnLf3/ZS6nocQLhCMiBSVvFkr5TekeyBpEnjdv6MNM84A1rCXmJNtlsIh1V2OzVlNoZkzaOzQo81uyFmQPYPS9VJo4sGYHip58lIBPdGzXmLEl6waL0Hy6RA2S83tildt3z0OncT+zoZrwqm71tii3oPk7Q5sSBBMMdDjQqyEXXcXaD6wpokhNMiZVr7xdoN8wnb1FNHYWgubJPoqgQ+2lw0TcUEZGk9rUWddepEYYZM18tpBkhvucluTpNiy1P78qyX3Yqkt3t2SvCmrMvogt/ytjUma5AZR+BtN8ri8/FkBn0ehBJXg+dOd4EjJ3HahrBUy4IC2xeK4Z95i0sYKJgVUe8+E5c81PbKiV1dE6ETsxX3gFJypDWiszWNNt+PYmVRK0rVacTkpHXCJRbfAhEiXhFstoENDRK7o77r+v8xJpTScM2cZRl9r9OwLi+MuTyDTC45NhBdWkKB2Z65NRqtKGChrJecZ9CizqrXcw4tvhLUuUZNIFU1eYwywaXJBTEoV3nlgZjVOdjgVg/wfYXCbpxHXwx2VAtqeQtSLu9uwuPlMKctMjgOvibNmqGNJINwkL7HyyiikdAoICwytXAQ== lass@uriel -- cgit v1.2.3 From e36918eac0ffb83332b25c5cb75e38ab3587e8dc Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 21 Apr 2014 00:24:21 +0200 Subject: matz pubkey added --- keydir/matz.pub | 1 + 1 file changed, 1 insertion(+) create mode 100644 keydir/matz.pub diff --git a/keydir/matz.pub b/keydir/matz.pub new file mode 100644 index 00000000..35988998 --- /dev/null +++ b/keydir/matz.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGJd2nwNiiaH+raIdSmlRhBpmv9cJ9yNiRfu9u7fGdHVVEN9sJhKL4jsZisPyaoQmEVQ96EUHRpQpqy9PyUsbP3gA4O3IQEzw5KUO5hFSJ/QoSDP0u1FAYqW6JHCSldrbs/wZbZLcO+3ykMnGWJh70jhhQTFQPCKGSjEFBvNveAS1FF6qIlXmJbRjtb3PUtPrryXHXtpzp1lQ7nfsExiBKW1/WaSL5/Wy/nj1C6LqDz4ONTRZ6KcO064ZpyDMMRaiFY/d8fT8mkY7es2fspPvJWlLAHpwIPW1vR75P0iuyN0MaVL1PoV8ISo04+cG3/4Hwkws7K2qh8GurCACmw2WR matz@dei.local -- cgit v1.2.3 From 9d0d795cba510ce356b1eac1e529e03f6bc6cb12 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 21 Apr 2014 00:27:08 +0200 Subject: tinc_install: abort on - in hostname --- retiolum/scripts/tinc_setup/new_install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh index b48649ec..cd2fdde1 100755 --- a/retiolum/scripts/tinc_setup/new_install.sh +++ b/retiolum/scripts/tinc_setup/new_install.sh @@ -43,6 +43,11 @@ main(){ RAND4=1 RAND6=1 + if $(echo $HOSN | grep -q -); then + echo 'invalid hostname, - not allowed' + exit 1 + fi + if [ $IP4 -eq 0 ]; then RAND4=1 -- cgit v1.2.3 From 771b8cb9526255d54c8069b49503b427058a84b0 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 22 Apr 2014 15:46:44 +0200 Subject: fixed hosts in install script --- retiolum/scripts/tinc_setup/new_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh index cd2fdde1..1f45a3cc 100755 --- a/retiolum/scripts/tinc_setup/new_install.sh +++ b/retiolum/scripts/tinc_setup/new_install.sh @@ -201,9 +201,9 @@ LocalDiscovery = yes AutoConnect = 3 #ConnectTos -ConnectTo = slowpoke +ConnectTo = fastpoke ConnectTo = pigstarter -ConnectTo = pico +ConnectTo = kheurop EOF host2subnet $MASK4 -- cgit v1.2.3