OpenWrt Forum Archive

Topic: Combine mwan3 and coova-chilli / hotspotsystem.com on the same time?

The content of this topic has been archived on 29 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi!

I am playing around with a gl-inet-6416A router.

* I want to setup a hotspot through hotspotsystem.com - Success
* I want to attach a 4G usb 4G HUAWEI E3372 dongle to provide internet - Success
* I want to have main internet through cable WAN, and failover to 4G internet on WAN 2 with mwan3 - Success
* I want to both have hotspot system and mwan3 working on the same time. FAIL

I have documented the procedure here.
http://homeroam.wikidot.com/chaos-calme … ive-portal

If I stop "mwan3", then the hotspot system works.

* Does anyone knows why mwan3 and coova-chilli does not work well together?
* Does anyone knows, if coova-chilli can be configured for multiple wan ? So both eth0 and eth2 ?

cat /etc/chilli/defaults | grep HS_
HS_WANIF=eth0               # WAN Interface toward the Internet

>Does anyone knows why mwan3 and coova-chilli does not work well together?<
coova-chilli creates a pseudo interface tun on which it operates. This is a tunnel (connection) betwenn phys interface (eth0) and coova SW.
This allows throtteling upstream and downstream traffic.

Dunno mwan3, but at first glance it messes around with iptables and routing, which interferes with coova, which also uses quite a few iptables rules, i.e. for dhcp.

In case, you can do some type of bonding eth0 and eth2 together into one single pseudo-interface, you should get what you want.

Alternative:
Depending upon the acceptable blackout time of internet conn, you might consider to ping the active wan-interface (eth0) and re-configure coova-chilli using eth2 as wan, in case ping times out.
And switch back to eth0, in case ping works again.

(Last edited by augustus_meyer on 14 Feb 2016, 22:02)

I got this working by doing the following:

Set HS_WANIF=br-lan in the chilli config file you are using.

Add a new firewall zone 'chilli' to your OpwnWRT firewall setup.  Allow all traffic between the 'lan' and 'chilli' zones.

Add a new interface for tun0 to /etc/config/network as an unmanaged interface.  Include the interface 'tun' in your new 'chilli' zone.

config interface 'tun'
    option proto 'none'
    option ifname 'tun0'

(Last edited by pbix on 8 Apr 2016, 17:15)

I configured in tp-link c7:
I installed coovachilli and mwan3.

Network config:

usb3g_1:wan_3g_1                                 firewall: wan
usb3g_2:wan_3g_2                                 firewall: wan
wan: eth0 (dhcp)                                      firewall: wan
lan: eth1 (static)                                       firewall: lan
chilli: wlan1+wlan2 (static) (bridge)          firewall: chilli


Firewall config:

chilli=>lan=>wan=>....

Allow all traffic between the 'lan' and 'chilli', 'lan' and 'wan' zones.

Coovachilli config:

HS_WANIF=eth1
HS_LAN=chilli

When I stop chilli and connect to lan or wifi. it's working, use internet normaly without hotspot! => multi wan is working!

but coova chilli run it is still not working!.

If i connect to lan(eth1) => connect and use internet normaly.

if i connect to wifi(chilli interface) => i can't go site in wall-garden, not redirect, not resolve dns name. But I type ip it still redirect without resolving dns name. 

Any help!
I wana connect wifi with hotspot!
please!

The discussion might have continued from here.