This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
user_guide:mikrotik:openwrt_rb750gr3_coova [2021/02/16 13:57] – created admin | user_guide:mikrotik:openwrt_rb750gr3_coova [2021/03/15 09:09] (current) – [Edit Coova Chilli config file] admin | ||
---|---|---|---|
Line 5: | Line 5: | ||
* We assume you have a Router freshly flashed with this built of OpenWRT | * We assume you have a Router freshly flashed with this built of OpenWRT | ||
- | ===== The concept | + | ===== The Concept |
+ | * We will connect the Internet to the Internet port of the RB750 (Port1) | ||
+ | * We will then configure Coova to run on the LAN side (Ports 2-5) which is where OpenWRT typically used to run its DHCP service and have a gateway at 192.168.1.1 | ||
+ | * Because Coova will now remove the IP Address on the LAN side we have to open the firewall on the WAN side for us to still reach the device even with the captive portal in place and running. | ||
+ | |||
+ | ===== Opening the Firewall on WAN side ===== | ||
+ | * The firewall rules are defined in **/ | ||
+ | * Edit this file and add the following items at the bottom | ||
+ | * Opening for Luci is optional | ||
+ | <code bash> | ||
+ | |||
+ | config rule | ||
+ | option name ' | ||
+ | option target ACCEPT | ||
+ | option src ' | ||
+ | option dest_port ' | ||
+ | option proto ' | ||
+ | option family ' | ||
+ | |||
+ | config rule | ||
+ | option name ' | ||
+ | option target ACCEPT | ||
+ | option src ' | ||
+ | option dest_port ' | ||
+ | option proto ' | ||
+ | option family ' | ||
+ | |||
+ | </ | ||
+ | * Save the changes and reboot the router. | ||
+ | * See if you can access the device from the WAN port. | ||
+ | |||
+ | ===== Edit Coova Chilli config file ===== | ||
+ | * Coova Chilli is configured by the **/ | ||
+ | * Take this file as a reference and modify where needed. | ||
+ | <file bash chilli> | ||
+ | config chilli | ||
+ | # option disabled 0 | ||
+ | option radiusnasid " | ||
+ | option radiussecret " | ||
+ | option uamsecret " | ||
+ | |||
+ | # Radius parameters (change to the one for your provider) | ||
+ | option radiusserver1 43.200.100.192 | ||
+ | option dhcpif br-lan | ||
+ | option dns1 8.8.8.8 | ||
+ | option dns2 8.8.4.4 | ||
+ | |||
+ | option tundev ' | ||
+ | option net 10.1.0.0/ | ||
+ | option uamlisten 10.1.0.1 # | ||
+ | |||
+ | #Add this for the miniportal for proper captive portal detection on Apple | ||
+ | option uamhomepage " | ||
+ | option wwwdir "/ | ||
+ | |||
+ | # Universal access method (UAM) parameters | ||
+ | option uamserver " | ||
+ | option uamport 3990 | ||
+ | option ssid | ||
+ | |||
+ | # Various debug and optimization values | ||
+ | option swapoctets 1 # | ||
+ | option interval 3600 # config file and host lookup refresh | ||
+ | |||
+ | |||
+ | # Add the chilli firewall rules | ||
+ | option ipup '/ | ||
+ | option ipdown '/ | ||
+ | |||
+ | </ | ||
+ | * Save the changes and reboot the router. | ||
+ | * After the reboot you should be redirected to a login page from RADIUSdesk when you connect to any of the ports on the LAN side. | ||
+ | |||