Skip to content
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

Closed
wants to merge 33 commits into from
Closed

Conversation

darkdrgn2k
Copy link
Contributor

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.

# values from the template
[hostapd]
ssid=##SSID##
wpa_passphrase=bbbbbbbb
Copy link
Member

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?

Copy link
Contributor Author

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


# Configure network with hostapd
sudo cp "$BASE_DIR/nat.sh" /etc/hostapd/nat.sh
if [ "$USE_EAP" = true ]; then
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

@benhylau
Copy link
Member

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.

@benhylau benhylau closed this Sep 25, 2017
@benhylau benhylau reopened this Sep 25, 2017
@@ -1,2 +0,0 @@
interface=wlan0
dhcp-range=10.0.0.2,10.0.0.127,255.255.255.0,12h
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why GB

Copy link
Contributor Author

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 :)

# 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+
Copy link
Member

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

@darkdrgn2k darkdrgn2k changed the title Mesh and HostAP Scripts (uDev/systemd) [WIP] Mesh and HostAP Scripts (uDev/systemd) Sep 25, 2017
D and others added 5 commits November 11, 2017 01:16
# 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
@benhylau benhylau added this to the Release v0.2 milestone Dec 20, 2017
@darkdrgn2k
Copy link
Contributor Author

This PR prob wont be needed in favour of config instead

@darkdrgn2k darkdrgn2k mentioned this pull request Jan 6, 2018
@darkdrgn2k
Copy link
Contributor Author

use systemdmesh branch instead

@darkdrgn2k darkdrgn2k closed this Jan 29, 2018
@darkdrgn2k darkdrgn2k deleted the meshscripts branch January 29, 2018 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants