Jump to content

CoovaChilli and Freeradius for a Wifi Hotspot with captive portal


Recommended Posts

Hello everyone, today I would like to show you how to compile CoovaChilli and Freeradius for a Wifi Hotspot with captive portal on an Orange Pi PC  (or PC Plus). I'm writing this because I couldn't find anything related to this topic on the internet, so I wrote this not very detailed guide.

 

wget https://raw.githubusercontent.com/ua3nbw/opihotspot/master/opihotspot_debian.sh
chmod +x opihotspot_debian.sh
./opihotspot_debian.sh

Russian version https://ua3nbw.ru/all/orangepi-coovachilli-and-freeradius-for-a-wifi-hotspot-with-capt/

Link to comment
Share on other sites

here last message

 

Quote

::: Checking if wlan0 interface already exists
::: Wifi interface not found. Upgrading the system first
::: Upgrading the distro. Be patient
 

 

and maybe proccess not completed and phpmadmin, daloradius never seen.. 

Link to comment
Share on other sites

15 hours ago, Valery Rezvyakov said:

show the output of iwconfig

 

here sir,

 

Quote

root@orangepipc:~# iwconfig
lo        no wireless extensions.

wlan1     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated
          Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated
          Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

root@orangepipc:~#
 

any mistake?

 

"i will try again"

 

update:

if debug $LAN_INTERFACE value is "wlan0 wlan1" 

Link to comment
Share on other sites

You first need to figured out what is the chip used in your USB WiFi. To do so, issue the "lsusb" command to figure out which manufacturer it is.

 

Required condition: a board with onboard or supported 3rd party wireless adapter on USB

If you know what is your wireless SSID:

nmtui-connect SSID

If you don’t know, you can browse and then connect

nmtui-connect

Please describe your setup as best as possible so we know what your operating environment is like.

Name of your board:

Name of the image you installed:

Logs, when you can boot the board: armbianmonitor -u (paste URL to your forum post)

Link to comment
Share on other sites

Here my opi spec

Board: Orange PI PC

Image: Armbian_5.30_Orangepipc_Ubuntu_xenial_default_3.4.113_desktop.img

Usb Wifi: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter

Usb Lan: ID 0fe6:9700 Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter

 

Is there something wrong?

 

all usb interfaces that have been tested to connect to the internet

my question

1.during the installation process which interface should be connected to the internet?

2.how to config how to eth0 source (internet) and eth1 captive portal (I prefer to use 2 ethernet)

 

Link to comment
Share on other sites

hey you, it works. ;)
thanks a lot of support.

 

solution is i use hardcode for variable 

Quote

 

WAN_INTERFACE=`ip link show | grep '^[1-9]' | awk -F ':' '{print $2}' | awk '{$1=$1};1' | grep '^e'` # WAN interface (the one with Internet - default 'eth0' or long name for Debian 9+)

LAN_INTERFACE=`ip link show | grep '^[1-9]' | awk -F ':' '{print $2}' | awk '{$1=$1};1' | grep '^w'` # LAN interface (the one for the hotspot)

 

Quote

::: Congratulation ! You now have your hotspot ready !
:::
::: - Wifi Hotspot available : OPIhotspot
- For the user management, please connect to  http://192.168.1.103/daloradius  or http://OPIhotspot.local/daloradius

  (login : administrator  / password :  radius  )

- For phpmyadmin, please connect to  http://192.168.1.103/phpmyadmin/

  (login : root  / password :  orangepi  )


Time started: 22:39:21
Time started: 22:52:33
Total Runtime (minutes):  13.20

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines