thanks to the great work of @denis.robel and @mark_nl , i’ve updated the wiki and some packages of NS7 on Raspberry…
if someone want to test it, this should be the howto to install ns7+hostapd+Proxy on rpi3 based on @denis.robel work, but in an easier way
install centos7 and nethserver as per wiki page (new one)
http://wiki.nethserver.org/doku.php?id=ns7_rasp
then configure the hostapd+proxy:
optional:
change CPU frequency to 1000 Mhz - for faster compiling
vi /boot/config.txt
systemctl reboot
- Enable wifi as decribed in /root/README
curl --location https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm80211/brcm/brcmfmac43430-sdio.bin > /usr/lib/firmware/brcm/brcmfmac43430-sdio.bin
curl --location https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm80211/brcm/brcmfmac43430-sdio.txt > /usr/lib/firmware/brcm/brcmfmac43430-sdio.txt
systemctl reboot
- Install Hostapd:
yum install hostapd
edit /etc/hostapd/hostapd.conf
########################################################################################################### begin hostapd.conf
#
# This will give you a minimal, insecure wireless network.
#
# DO NOT BE SATISFIED WITH THAT!!!
#
# A complete, well commented example configuration file is
# available here:
#
# /usr/share/doc/hostapd/hostapd.conf
#
# For more information, look here:
#
# http://wireless.kernel.org/en/users/Documentation/hostapd
#
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
# Some usable default settings...
macaddr_acl=0 # macaddr_acl will be managed from dhcp ...
auth_algs=1
ignore_broadcast_ssid=0
# Uncomment these for base WPA & WPA2 support with a pre-shared key
wpa=3
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
# DO NOT FORGET TO SET A WPA PASSPHRASE!!
wpa_passphrase=YOURSECRETPASSWORD
# Most modern wireless drivers in the kernel need driver=nl80211
driver=nl80211
# Customize these for your local configuration...
interface=wlan0
hw_mode=g
channel=1
ssid=YOURSSID
########################################################################################################## end hostapd.conf
and enable hostapd.service:
systemctl enable hostapd.service
systemctl start hostapd
now you should see your wifi but you wont get an IP address because dhcp is not ready yet
-
install web content filter from Software Center -> Extras and Testing
-
login to nethserver web interface
set wlan0 to green network
set eth0 to red network
configure dhcp for wlan0
configure web-proxy
configure web-contenfilter
wait one day and check Reports->Web Proxy stats
##end
if there are error/problem, please let me know…
when confirmed to work, i’ll put the howto in the wiki.
tnx
I think we need a nethserver-hostapd, but this is another thread