Skip to content

Commit

Permalink
[2024-01-16 15:58:45] Ionut Bostan: EAP config
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonymccaigue committed Jan 16, 2024
1 parent 4d05164 commit fd50685
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions packages/docusaurus/docs/build5-docs/70-eap-config.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# EAP config
EAP-TLS Network Configuration on RaspberryPi 4B using the RT5370 Wireless Adapter
## EAP-TLS Network Configuration on RaspberryPi 4B using the RT5370 Wireless Adapter


1. Install tools:
### Install tools
```sh
sudo apt install dnsmasq
```
```sh
sudo apt install hostapd
```

2. Edit or add /etc/dnsmasq.conf:
### Edit or add /etc/dnsmasq.conf
```sh
sudo nano /etc/dnsmasq.conf
```
```
```bash
# Set the Wireless interface
interface=wlan1

Expand All @@ -31,25 +31,40 @@ EAP-TLS Network Configuration on RaspberryPi 4B using the RT5370 Wireless Adapte
# Disable DNS server capability
port=0
```
3. Save the new configuration:

### Save the new configuration
```sh
sudo dnsmasq -C /etc/dnsmasq.conf
```

4. Configure the wlan interface which will be used to interact with the wifi clients:
### Configure the wlan interface which will be used to interact with the wifi clients
```sh
sudo nano /usr/local/bin/wlan0staticip.sh
```
add
```ifconfig wlan1 10.0.0.1 netmask 255.255.255.0
```bash
ifconfig wlan1 10.0.0.1 netmask 255.255.255.0
```
Make the file executable:
```sh
sudo chmod +x wlan0staticip.sh
sudo chmod +x wlan1staticip.sh
```
5. Create the task to run this script at every reboot

### Create the task to run this script at every reboot
```sh
sudo crontab -e
```
add
```bash
@reboot /usr/local/bin/wlan1staticip.sh
```
### Set up the hostapd configuration
```sh
Implementation based in part on methods as discussed in [Transforming Your Raspberry Pi into a Secure Enterprise Wi-Fi Controller with 802.1x Authentication](https://myitrambles.com/transforming-your-raspberry-pi-into-a-secure-enterprise-wi-fi-controller-with-802-1x-authentication/)

0 comments on commit fd50685

Please sign in to comment.