-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] - New release v0.5.0-rc.1 to master (#390)
Yggdrasil IPTunnel now does not change config files Yggdrasil IPtunnel drop in service adjustment Yggdrsail IPTunnel supports IPv6 and routed IPv6 Yggdrsail version bump Support for x86 and x64 Profile selection menu format changed in Dialog Rewritten and simplified board detection IPFS Improvments #284 CJDNS now module Prototype can run without CJDNS now Better docs Grafan database now can be removed when uninstalling Moved network config to interface.d model Removed Network Manager Added Modules.md Added confSet function and implemented confget/confset config files NodeJS now shared module NodeJS version bump MESH_NAME now a config Added ipv6 netcat option Localized Patch Foo in TOMESH repo to prevent version conflicts and outage Added support for PI4 Added support for Buster Fixed ETH0 vs BR0 issue on espressoBIN Prometheus version bump Raspberry Pi Watch Dog Timer
- Loading branch information
1 parent
2af4ad9
commit 799c91a
Showing
61 changed files
with
1,592 additions
and
993 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,16 @@ | ||
<?php | ||
// Place on a server as proxy for hideing the google API key | ||
$apiKey="<YOUR GOOGLE API KEY FOR GEO LOCATION"; | ||
|
||
$json= file_get_contents('php://input'); | ||
$json = str_replace(",}}","}}",$json); | ||
|
||
$url='https://www.googleapis.com/geolocation/v1/geolocate?key=' . $apiKey; | ||
|
||
$ch = curl_init($url); | ||
curl_setopt($ch, CURLOPT_POST, 1); | ||
curl_setopt($ch, CURLOPT_POSTFIELDS, $json); | ||
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); | ||
$result = curl_exec($ch); | ||
echo $result; | ||
?> |
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,4 @@ | ||
#!/bin/bash | ||
sudo apt-get install -y jq | ||
sudo cp "nodeinfo-geolocation" /opt/tomesh/nodeinfo.d/geolocation | ||
sudo chmod +x /opt/tomesh/nodeinfo.d/geolocation |
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,23 @@ | ||
#!/bin/bash | ||
|
||
echo "{ "wifiAccessPoints": {" > /tmp/locationScan | ||
iwlist wlan0 scanning | grep Cell | grep Address | awk '{print "\"macAddress\": \""$5"\","}' >>/tmp/locationScan | ||
echo "}}" >> /tmp/locationScan | ||
|
||
curl -d @/tmp/locationScan -H "Content-Type: application/json" "http://node2.e-mesh.net/geo.php" -o /tmp/locationResult > /dev/null | ||
|
||
if [ -z "$(type jq)" ]; then | ||
a=$(cat /tmp/locationResult |grep \"accuracy\" | awk '{print $2}') | ||
lat=$(cat /tmp/locationResult |grep \"lat\" | awk '{print $2}') | ||
lng=$(cat /tmp/locationResult |grep \"lng\" | awk '{print $2}') | ||
else | ||
a=`jq -r ".accuracy" /tmp/locationResult 2>/dev/null` | ||
lat=`jq -r ".location.lat" /tmp/locationResult 2>/dev/null` | ||
lng=`jq -r ".location.lng" /tmp/locationResult 2>/dev/null` | ||
fi | ||
|
||
echo "\"geolocation\": {" | ||
echo " \"latitude\": \"$lat\"," | ||
echo " \"longitude\": \"$lng\"," | ||
echo " \"accuracy\": \"$a\"" | ||
echo "}," |
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,20 @@ | ||
#!/bin/sh | ||
|
||
# Break bridge configured by default | ||
|
||
# Disable systemd management of network interfaces except to bring up eth0 with random MAC address | ||
sudo rm -rf /etc/systemd/network/* | ||
|
||
sudo tee /etc/systemd/network/10-eth0.network << END | ||
[Match] | ||
Name=eth0 | ||
[Network] | ||
DHCP=ipv4 | ||
END | ||
|
||
sudo tee /etc/systemd/network/10-eth0.link << END | ||
[Match] | ||
MACAddress=f0:ad:4e:03:64:7f | ||
[Link] | ||
MACAddressPolicy=random | ||
END |
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,22 @@ | ||
# NoDogSplash captive portal | ||
|
||
Source: https://github.com/nodogsplash/nodogsplash | ||
|
||
Nodogsplash is a Captive Portal that offers a simple way to provide restricted access to the Internet by showing a splash page to the user before Internet access is granted. | ||
|
||
This script install and configured the Nodogsplash captive portal to run on `wlan-ap` interface of the prototype stack. | ||
|
||
## Installation | ||
|
||
``` | ||
chmod +x install-nodogsplash.sh | ||
./install-nodogsplash.sh | ||
``` | ||
|
||
## Issues | ||
|
||
Some people have objections using captive portal because it hijacks traffic and could potentially be a privacy violation. Additionally it prevents headless devices from accessing the internet. | ||
|
||
## Nice to have | ||
|
||
- [ ] Nice tomesh splash screen (/etc/nodogsplash/htdocs/splash.sh) |
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,18 @@ | ||
#!/bin/bash | ||
|
||
sudo apt install -y libmicrohttpd-dev | ||
|
||
mkdir tmp | ||
cd tmp | ||
git clone https://github.com/nodogsplash/nodogsplash.git | ||
cd nodogsplash | ||
make | ||
sudo make install | ||
sudo cp debian/nodogsplash.service /etc/systemd/system | ||
cd .. | ||
cd .. | ||
rm -rf tmp | ||
|
||
cp nodogsplash.conf /etc/nodogsplash/nodogsplash.conf | ||
sudo systemctl enable nodogsplash | ||
sudo systemctl start nodogsplash |
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,21 @@ | ||
GatewayInterface wlan-ap | ||
#login_option_enabled 1 | ||
FirewallRuleSet authenticated-users { | ||
FirewallRule allow all | ||
} | ||
FirewallRuleSet preauthenticated-users { | ||
# FirewallRule allow tcp port 80 to 123.321.123.321 | ||
} | ||
FirewallRuleSet users-to-router { | ||
FirewallRule allow udp port 53 | ||
FirewallRule allow tcp port 53 | ||
FirewallRule allow udp port 67 | ||
FirewallRule allow tcp port 22 | ||
# FirewallRule allow tcp port 80 | ||
# FirewallRule allow tcp port 443 | ||
} | ||
GatewayName ToMeshNode | ||
GatewayAddress 10.0.0.1 | ||
GatewayPort 2050 | ||
MaxClients 250 | ||
AuthIdleTimeout 480 |
Oops, something went wrong.