Skip to content

Commit

Permalink
feat: Add source configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
selengalp committed Feb 6, 2023
1 parent 28ad363 commit c27c5d1
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source_configs.save
ap_config_files
client_config_files
venv
4 changes: 4 additions & 0 deletions source_configs/dhcpcd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

interface wlan0
static ip_address=[YOUR_STATIC_IP]/24 # for example static ip_address=192.168.100.1/24
nohook wpa_supplicant
6 changes: 6 additions & 0 deletions source_configs/dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

interface=wlan0
dhcp-range=[YOUR_STATIC_RANGE_START],[YOUR_STATIC_RANGE_END],255.255.255.0,24h

# for example
# dhcp-range=192.168.100.2,192.168.100.20,255.255.255.0,24h
14 changes: 14 additions & 0 deletions source_configs/hostapd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

interface=wlan0
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ssid=[SSID_OF_YOUR_ACCESS_POINT] # for example: ssid=test_ap
wpa_passphrase=[PASSWORD_OF_YOUR_ACCESS_POINT] # for example: wpa_passphrase=12345678
5 changes: 5 additions & 0 deletions source_configs/hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

[YOUR_STATIC_IP] [YOUR_LOCAL_DOMAIN_NAME]

# for example:
# 192.168.100.1 mysite.local
13 changes: 13 additions & 0 deletions source_configs/wpa_supplicant-wlan0.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="[YOUR_MODEM_SSID_1]"
psk="[YOUR_MODEM_PASSWORD_1]"
}

network={
ssid="[YOUR_MODEM_SSID_2]"
psk="[YOUR_MODEM_PASSWORD_2]"
}

0 comments on commit c27c5d1

Please sign in to comment.