First workspace commit

This commit is contained in:
mhfowler
2021-08-06 13:58:40 -04:00
parent 87435932dc
commit d8803e9974
251 changed files with 22022 additions and 0 deletions

View File

@ -0,0 +1,2 @@
SUBSYSTEM=="net", ACTION=="add", RUN+="/usr/sbin/iw dev wlan0 interface add ap0 type __ap"
SUBSYSTEM=="net", ACTION=="add", RUN+="/usr/bin/ip address add 11.11.11.10/24 brd + dev ap0"

View File

@ -0,0 +1,3 @@
# Backup
This directory contains all the legacy configuration files for PeachCloud networking. These files have been deprecated by the transition to using systemd-networkd for networking. They are being kept here as a backup but will eventually be removed entirely.

View File

@ -0,0 +1,3 @@
interface ap0
static ip_address=11.11.11.10/24
nohook wpa_supplicant

View File

@ -0,0 +1,8 @@
interface=ap0
listen-address=11.11.11.10
bind-dynamic
server=208.67.222.222
server=208.67.220.220
domain-needed
bogus-priv
dhcp-range=11.11.11.11,11.11.11.30,255.255.255.0,24h

View File

@ -0,0 +1,22 @@
# Defaults for hostapd initscript
#
# WARNING: The DAEMON_CONF setting has been deprecated and will be removed
# in future package releases.
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative
# methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
# file and hostapd will be started during system boot. An example configuration
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
DAEMON_CONF="/etc/hostapd/hostapd.conf"
# Additional daemon options to be appended to hostapd command:-
# -d show more debug messages (-dd for even more)
# -K include key data in debug messages
# -t include timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically
# configured by the init.d script and must not be added to DAEMON_OPTS.
#
#DAEMON_OPTS=""

View File

@ -0,0 +1,15 @@
interface=ap0
hw_mode=g
channel=8
wmm_enabled=0
macaddr_acl=0
beacon_int=100
auth_algs=3
wmm_enabled=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ssid=peach
wpa_passphrase=cloudless

View File

@ -0,0 +1,22 @@
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
# source-directory /etc/network/interfaces.d
# Loopback
auto lo
iface lo inet loopback
# Ethernet
iface eth0 inet dhcp
# Wireless
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
# Access Point
iface ap0 inet static
address 11.11.11.10
netmask 255.255.255.0
network 11.11.11.0
broadcast 11.11.11.255

View File

@ -0,0 +1,17 @@
#
# Allow peach-network user to execute activate_ap and
# activate_client scripts without needing to enter
# a password for sudo'd command.
#
# User alias for PeachCloud microservices which control networking
User_Alias PEACH_NTWK = peach-network
# Command alias for activate_ap and activate_client scripts
Cmnd_Alias SCRIPTS = /usr/local/bin/activate_ap, /usr/local/bin/activate_client
# Command alias for network-related actions
Cmnd_Alias SERVICE = /usr/bin/systemctl unmask hostapd, /usr/bin/systemctl start hostapd, /usr/bin/systemctl stop hostapd, /usr/bin/systemctl stop dnsmasq, /usr/bin/systemctl start dnsmasq, /usr/bin/systemctl start wpa_supplicant, /usr/bin/systemctl stop wpa_supplicant, /usr/sbin/ifup wlan0, /usr/sbin/ifdown wlan0, /bin/ip link set wlan0 mode default
# Allow PEACH_NTWK users to execute SCRIPTS & SERVICE commands without password
PEACH_NTWK ALL=(ALL) NOPASSWD: SCRIPTS, SERVICE

View File

@ -0,0 +1,8 @@
ctrl_interface=/run/wpa_supplicant
update_config=1
network={
ssid="YOUR_SSID"
#psk="YOUR_PASS"
psk=7f4f1a9d128f9fc2741f4229d57e3e7c355b1760b27aa8c3816c461497f5cd2a
}