From dc6e3f378c7cd1538fd80c796538186b17d42d5c Mon Sep 17 00:00:00 2001 From: terje Date: Mon, 30 Mar 2026 14:08:40 +0200 Subject: [PATCH] Add file to route traffic through BigAssBerryPi --- bash/nord/.allow_routing.sh.swp | Bin 0 -> 1024 bytes bash/nord/config.sh | 21 +++++++++++++++++++++ bash/nord/connect.sh | 7 +++++++ bash/nord/exit_node.sh | 4 ++++ bash/nord/list_online.sh | 7 +++++++ bash/nord/login.sh | 3 +++ bash/nord/logout.sh | 3 +++ bash/nord/mesh.sh | 11 +++++++++++ bash/nord/status.sh | 3 +++ 9 files changed, 59 insertions(+) create mode 100644 bash/nord/.allow_routing.sh.swp create mode 100755 bash/nord/config.sh create mode 100755 bash/nord/connect.sh create mode 100755 bash/nord/exit_node.sh create mode 100755 bash/nord/list_online.sh create mode 100755 bash/nord/login.sh create mode 100755 bash/nord/logout.sh create mode 100755 bash/nord/mesh.sh create mode 100755 bash/nord/status.sh diff --git a/bash/nord/.allow_routing.sh.swp b/bash/nord/.allow_routing.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..4539ec4c48dff8c7c318e36a6acbe5a0e947cad4 GIT binary patch literal 1024 zcmYc?$V<%2SFq4CVL$;B*9tL|q!wkRqKIPWq@?ELV3$D^P0Y#3FOM(EFD=Q;OV=yT UK$RWkjfTKz2+%kLLeb3!0E9aZ=l}o! literal 0 HcmV?d00001 diff --git a/bash/nord/config.sh b/bash/nord/config.sh new file mode 100755 index 0000000..5e96a6b --- /dev/null +++ b/bash/nord/config.sh @@ -0,0 +1,21 @@ +#! /usr/bin/bash + +nordvpn set notify on +nordvpn set autoconnect on NO +nordvpn set pq off +nordvpn set lan-discovery on +nordvpn set meshnet on +nordvpn set technology nordlynx + +# Set nickname +nordvpn meshnet peer remove NordDell +nordvpn meshnet set nickname NordDell + +# Auto-accept files shared from peers +nordvpn meshnet peer fileshare allow hp +nordvpn meshnet peer auto-accept enable hp +nordvpn meshnet peer fileshare allow Pixel +nordvpn meshnet peer auto-accept enable Pixel +nordvpn meshnet peer fileshare allow Tab8 +nordvpn meshnet peer auto-accept enable Tab8 + diff --git a/bash/nord/connect.sh b/bash/nord/connect.sh new file mode 100755 index 0000000..c7142f8 --- /dev/null +++ b/bash/nord/connect.sh @@ -0,0 +1,7 @@ +#! /usr/bin/bash + +# Assign the NO country code if there is no argument +country=${1:-NO} + +echo "Connecting to country code $country" +nordvpn connect "$country" diff --git a/bash/nord/exit_node.sh b/bash/nord/exit_node.sh new file mode 100755 index 0000000..3348696 --- /dev/null +++ b/bash/nord/exit_node.sh @@ -0,0 +1,4 @@ +#! /usr/bin/bash + +# You must explicitly grant permission for other devices to route through it. +nordvpn meshnet peer allow-exit-node set terje.innerdal@gmail.com diff --git a/bash/nord/list_online.sh b/bash/nord/list_online.sh new file mode 100755 index 0000000..591944f --- /dev/null +++ b/bash/nord/list_online.sh @@ -0,0 +1,7 @@ +#! /usr/bin/bash + +filter=${1:-online} + +echo $filter + +nordvpn mesh peer list --filter=$filter diff --git a/bash/nord/login.sh b/bash/nord/login.sh new file mode 100755 index 0000000..fe4290f --- /dev/null +++ b/bash/nord/login.sh @@ -0,0 +1,3 @@ +#! /usr/bin/bash + +nordvpn login --token e9f2abcc251e25317efb43eb05c4fe9a8771a1e7cc076b43ed59fe5ad9ba2115 diff --git a/bash/nord/logout.sh b/bash/nord/logout.sh new file mode 100755 index 0000000..965ab18 --- /dev/null +++ b/bash/nord/logout.sh @@ -0,0 +1,3 @@ +#! /usr/bin/bash + +nordvpn logout --persist-token true diff --git a/bash/nord/mesh.sh b/bash/nord/mesh.sh new file mode 100755 index 0000000..ce15dd0 --- /dev/null +++ b/bash/nord/mesh.sh @@ -0,0 +1,11 @@ +#! /usr/bin/bash + +nordvpn set meshnet on + +# Set nickname +nordvpn meshnet peer remove dellnord +nordvpn meshnet set nickname dellnord + +# Auto-accept files shared from peers +nordvpn meshnet peer fileshare allow hpnord +nordvpn meshnet peer auto-accept enable hpnord diff --git a/bash/nord/status.sh b/bash/nord/status.sh new file mode 100755 index 0000000..fa2b5c5 --- /dev/null +++ b/bash/nord/status.sh @@ -0,0 +1,3 @@ +#! /usr/bin/bash + +nordvpn status