New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Mesh and HostAP Scripts (uDev/systemd) #93
Conversation
Added eth0 to network manager
Added eth0 to network manager Removed rpi check for hostap
Disable checking for rpi3 for hostapd/install confget check and install for hostapd
fixes search hostapd.template
scripts/hostapd/95-wlan-hostap.link
Outdated
# values from the template | ||
[hostapd] | ||
ssid=##SSID## | ||
wpa_passphrase=bbbbbbbb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are we setting the password passed in from install script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ported code for asking for a password on install
scripts/hostapd/install
Outdated
|
||
# Configure network with hostapd | ||
sudo cp "$BASE_DIR/nat.sh" /etc/hostapd/nat.sh | ||
if [ "$USE_EAP" = true ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is all EAP stuff deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for now to get the basics working then we can cherry pick the rest of it in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AP tests where successfull and now EAP has now been readded
What is the goal of this PR? Access Point currently works both in wpa-psk and wpa-eap mode. This seems to make everything much more hardware selective, break password selection for wpa-psk and completely remove wpa-eap support. |
scripts/hostapd/dnsmasq.conf
Outdated
@@ -1,2 +0,0 @@ | |||
interface=wlan0 | |||
dhcp-range=10.0.0.2,10.0.0.127,255.255.255.0,12h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove DHCP?
Type=forking | ||
PIDFile=/var/run/hostapd.pid | ||
ExecStart=/usr/sbin/hostapd -B /etc/hostapd/hostapd.conf -P /var/run/hostapd.pid | ||
ExecStartPost=/bin/sh /etc/hostapd/nat.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed to NAT LAN traffic to Hyperboria. If my phone is not running cjdns, it can still reach h. addresses when connected to this AP.
scripts/install2
Outdated
#check if ethernet configured, if not configure it | ||
if [[ -z "$(grep eth0 /etc/network/interfaces)" ]]; then | ||
sudo echo "auto eth0" >> /etc/network/interfaces | ||
sudo echo "iface eth0 inet dhcp" >> /etc/network/interfaces |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this sufficient to enable DHCP for the LAN?
wpa_pairwise=TKIP | ||
rsn_pairwise=CCMP | ||
|
||
country_code=GB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why GB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GB was a default, corrected to CA :)
scripts/mesh-point/mesh
Outdated
# sudo ifconfig mesh0 192.168.X.Y | ||
|
||
# Join the mesh network with radio in HT40+ htmode to enable 802.11n rates | ||
sudo iw dev mesh0 mesh join MESH_NAME freq 2412 HT40+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the comments should be re-added
moved hostapd.template.conf to wpa-psk directory Re-Added wpa-eap files
Removed ssid in hostapd install when using EAP
# Conflicts: # scripts/hostapd/dnsmasq.conf # scripts/hostapd/install # scripts/hostapd/uninstall # scripts/hostapd/wpa-eap/hostapd.conf # scripts/hostapd/wpa-psk/hostapd.conf # scripts/install2 # scripts/mesh-point/mesh
… anyway) updated types in hostapd.nat and removed check added missing items in install
This PR prob wont be needed in favour of config instead |
use systemdmesh branch instead |
Picked from Orange Mesh scripts to help identify hardware being plugged in and assign tasks to it accordingly
Many files from HOSTAP removed, and should be cherry picked back in as needed.