Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
f11:technik:raspberrypi:hotspotdm3kb:raspbcoovai [2014/12/05 08:00] dm3kb angelegt |
f11:technik:raspberrypi:hotspotdm3kb:raspbcoovai [2019/09/29 12:03] (aktuell) |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | Install Coova-Chilly from the deb file (Coova Chilli Debian pakage) | ||
+ | [[f11: | ||
+ | \\ | ||
+ | Use dpkg -i to install the package, after choosing default (keep current installed version) the error message is O.K. as coova-chilli is not \\ properly configured yet.\\ | ||
+ | \\ | ||
+ | < | ||
+ | root@raspberrypi:/ | ||
+ | Selecting previously unselected package coova-chilli. | ||
+ | (Reading database ... 73892 files and directories currently installed.) | ||
+ | Unpacking coova-chilli (from coova-chilli_1.3.0_armhf.deb) ... | ||
+ | Setting up coova-chilli (1.3.0) ... | ||
+ | |||
+ | Configuration file `/ | ||
+ | | ||
+ | | ||
+ | What would you like to do about it ? Your options are: | ||
+ | Y or I : install the package maintainer' | ||
+ | N or O : keep your currently-installed version | ||
+ | D : show the differences between the versions | ||
+ | Z : start a shell to examine the situation | ||
+ | The default action is to keep your current version. | ||
+ | *** chilli (Y/ | ||
+ | Starting chilli: SIOCSIFADDR: | ||
+ | eth1: ERROR while getting interface flags: No such device | ||
+ | |||
+ | </ | ||
+ | **Note:** The error above is accepeted as the configuration is not valid at this time, you can ignore the message\\ | ||
+ | |||
+ | ==Configure Coova-Chilli== | ||
+ | CoovaChilly needs some configuration in the file: / | ||
+ | < | ||
+ | root@raspberrypi:/ | ||
+ | </ | ||
+ | Change first line from 0 to 1 to force start of chilli: | ||
+ | < | ||
+ | START_CHILLI=1 | ||
+ | CONFFILE="/ | ||
+ | HS_USER=" | ||
+ | </ | ||
+ | |||
+ | ==Delete automatic generated main configuration file== | ||
+ | |||
+ | < | ||
+ | rm / | ||
+ | </ | ||
+ | |||
+ | ==Edit Coova-Chilli main configuration file== | ||
+ | |||
+ | < | ||
+ | vi / | ||
+ | </ | ||
+ | |||
+ | Change the settings like below.\\ | ||
+ | \\ | ||
+ | **NOTE: the settings in the first block need to match the settings done in "/ | ||
+ | < | ||
+ | HS_WANIF=wlan0 | ||
+ | HS_LANIF=eth0 | ||
+ | HS_NETWORK=10.1.0.0 | ||
+ | HS_NETMASK=255.255.255.0 | ||
+ | HS_UAMLISTEN=10.1.1.1 | ||
+ | HS_UAMPORT=3990 | ||
+ | HS_UAMUIPORT=4990 | ||
+ | |||
+ | HS_COAPORT=3779 | ||
+ | |||
+ | # OpenDNS Servers | ||
+ | HS_DNS1=192.168.2.1 | ||
+ | HS_DNS2=8.8.8.8 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | ### | ||
+ | # | ||
+ | # | ||
+ | HS_NASID=nas01 | ||
+ | HS_RADIUS=localhost | ||
+ | HS_RADIUS2=localhost | ||
+ | HS_UAMALLOW=10.1.1.0/ | ||
+ | HS_RADSECRET=Raspi | ||
+ | HS_UAMSECRET=change-me123 | ||
+ | HS_UAMALIASNAME=chilli | ||
+ | |||
+ | HS_LOC_NAME=" | ||
+ | </ | ||
+ | |||
+ | ==Firewall Set-Up== | ||
+ | \\ | ||
+ | CoovaChilli is preconfigured but needs adaption in file: / | ||
+ | |||
+ | < | ||
+ | root@raspberrypi# | ||
+ | </ | ||
+ | |||
+ | Modify the End of the file to match the output below:\\ | ||
+ | < | ||
+ | < | ||
+ | [ " | ||
+ | ipt -I PREROUTING -t nat -i $TUNTAP -p udp --dport 53 -j DNAT --to-destination $ADDR | ||
+ | fi | ||
+ | fi | ||
+ | # log new connections from TUN Interface (New, not in original script!!!!) | ||
+ | ipt -I FORWARD -i $TUNTAP | ||
+ | |||
+ | # site specific stuff optional | ||
+ | [ -e / | ||
+ | # End of Original Script!!!! | ||
+ | ###################################### | ||
+ | # Masquerade for Coova-Chilli, | ||
+ | iptables -I POSTROUTING -t nat -o $HS_WANIF -j MASQUERADE | ||
+ | # Accept HTTPS only from local IP4 Network | ||
+ | iptables -A INPUT -i $HS_WANIF -p tcp -s 192.168.6.0/ | ||
+ | iptables -A OUTPUT -o $HS_WANIF -p tcp --sport 443 -m state ESTABLISHED -j ACCEPT | ||
+ | # Accept SSH only from local IP4 Network | ||
+ | iptables -A INPUT -i $HS_WANIF -p tcp -s 192.168.6.0/ | ||
+ | iptables -A OUTPUT -o $HS_WANIF -p tcp --sport 22 -m state ESTABLISHED -j ACCEPT | ||
+ | </ | ||
+ | |||
+ | Note: Ensure that "**LOG --log-prefix=' | ||
+ | [[f11: | ||
+ | |||
+ | Haserl Set-Up\\ | ||
+ | \\ | ||
+ | Set Haserl path for Coova-Chilly in file: / | ||
+ | |||
+ | < | ||
+ | root@raspberrypi# | ||
+ | </ | ||
+ | |||
+ | Replace the line: | ||
+ | < | ||
+ | haserl=$(which haserl 2>/ | ||
+ | </ | ||
+ | |||
+ | With this one below: | ||
+ | < | ||
+ | haserl=/ | ||
+ | </ | ||
+ | |||
=== Create fake chillyspot config file for EASY-Hotspot === | === Create fake chillyspot config file for EASY-Hotspot === | ||
Save and then copy defaults to config in the same folder or create a link with ls | Save and then copy defaults to config in the same folder or create a link with ls |