This repository has been archived by the owner on Sep 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Clarify options, and make backups when installing create_ap.conf file #434
Open
dlenski
wants to merge
25
commits into
oblique:master
Choose a base branch
from
dlenski:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
…plain default non-bridged network in a little more detail
May help with battery life, throughput, and signal retention depending on network environment
Uses the /lib/systemd/system-sleep mechanism. See https://www.freedesktop.org/software/systemd/man/systemd-suspend.service.html for how this works. For unclear reasons, this only works in /lib/systemd/system-sleep, not in /usr/lib/systemd/system-sleep. (ping oblique#153, oblique#167)
dlenski
force-pushed
the
master
branch
2 times, most recently
from
April 19, 2020 09:17
2af7132
to
b14e6a1
Compare
…ate_ap.conf comments Also makes it *possible* to set ADDN_HOSTS via create_ap.conf
Use 'sudo create_ap --wps-pbc <id>' to simulate the button being pushed, or 'sudo create_ap --wps-pin <id>,<pin>' to enroll a specific PIN requested by a device.
I added WPS push-button and PIN modes in 86a3d60, but now they don't work for me. Apparently: 1. hostapd's built in EAP server *must* be enabled in order for WPS to complete. (Did this ever actually work for me previously, without this??) 2. Also, the 'push_button' method seems to have been replaced with 'virtual_push_button', per the following warning message from hostapd (v2.9): ``` WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance ```
…d be used sparingly This extremely useful StackExchange post summarizes the different ways of indicating this to clients: https://unix.stackexchange.com/a/631812 1. Microsoft's "network cost information element" (https://learn.microsoft.com/fi-fi/windows-hardware/drivers/mobilebroadband/network-cost-information-element) which seems to be quasi-standard at this point. Recent versions of NetworkManager also understand it, but due to a mistake in earlier versions of Microsoft's documentation, older versions parse the element incorrectly (gory details at https://openwrt.org/docs/guide-user/network/wifi/ms-meteredconnection#under_the_hood). 2. Apple's vendor element (https://apple.stackexchange.com/a/457630) seems to be undocumented, but it can be copied/used as is. 3. Adding the value "ANDROID_METERED" as part of the force-sent DHCP option 43 causes Android devices to perceive this wireless network as metered (see https://unix.stackexchange.com/a/631812 as well as https://www.lorier.net/docs/android-metered.html).
These were needed because of an annoying bug in old versions of 'hostapd', where the kernel's entropy pool was used incorrectly, and 'hostapd' would decide that there wasn't enough randomness available, e.g.: random: Only 9/20 bytes of strong random data available from /dev/random random: Not enough entropy pool available for secure operations WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects That issue has been fixed since hostapd v2.6, released in 2016 (https://packetstormsecurity.com/files/156573/Hostapd-Insufficient-Entropy.html), so there's really no reason for 'create_ap' to have an entropy-checking watchdog or to encourage users to install 'haveged'.
…tem-sleep For unclear reasons, this only worked for me on Ubuntu 16.04 if it was put in `/lib/systemd/system-sleep`, and NOT in `/usr/lib/systemd/system-sleep`. I'm unsure if this was a systemd bug, a distro bug, or what… but it's probably no longer applicable on modern distros. Fix it, and leave behind a warning comment. Thanks to @exuvo for bringing this up in #1.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
create_ap.conf
when installing a newer version