Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mikelimazulu/franciswifi

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mikelimazulu/franciswifi

  • v0.0.0-20240821182532-c3e82fa14f04
  • Source
  • Go
  • Socket score

Version published
Created
Source

FrancisWiFi

Prérequis

Mise à jour et installation des prérequis

sudo apt update
sudo apt upgrade -y
sudo apt-get install build-essential hostapd iptables golang-go git dnsmasq -y

Install create_ap

git clone https://github.com/oblique/create_ap.git
cd create_ap/
sudo make install
cd ..

Install mes trucs

git clone https://github.com/mikelimazulu/franciswifi.git
cd franciswifi/
go mod init captive
go mod tidy
go build captive.go
sudo mv captive /usr/bin/
chmod +x update_iptables.sh
sudo mv update_iptables.sh /usr/bin
sudo mv staticContentFolder/ /etc

Configuration des services

iptables

sudo nano /etc/systemd/system/iptables-config.service

[Unit]
Description=Configure iptables for captive portal
Before=create-ap.service

[Service]
Type=oneshot
ExecStart=/usr/bin/update_iptables.sh
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

create_ap

sudo nano /etc/systemd/system/create-ap.service

[Unit]
Description=Create Wi-Fi Access Point
After=iptables-config.service
Before=captive-portal.service

[Service]
ExecStart=/usr/bin/create_ap -n wlan0 Guest_AC380
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

captive portal

sudo nano /etc/systemd/system/captive-portal.service

[Unit]
Description=Go Captive Portal Service
After=create-ap.service

[Service]
ExecStart=/usr/bin/captive
Restart=always

[Install]
WantedBy=multi-user.target

enable services aux reboot

sudo systemctl enable iptables-config.service
sudo systemctl enable create-ap.service
sudo systemctl enable captive-portal.service

FAQs

Package last updated on 21 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc