Basically I want one subnet for my lan and one for wlan, serving nodogsplash to unapproved wlan-users, and of course keeping track of their usage.
I have worked with standard/X-wrt Kamikaze 8.09.2 in combination with bandwidthd and nodogsplash. It works solid after some trickery.
There is one functionality missing though. Quotas, we wanna shape cheap skates who wont join in the cooperative, but without shutting them out totally. Enter wonderful Gargoyle.
TL;DR My question is, can I employ all the nice functions of Gargoyle on only my wlan-interface (or both wlan and lan) without rewriting half of the *.js and *.sh ?
I am not looking for a complete instruction here, just a pointer in the directions I need to take or a "Stop, dont sweat it, you wont succeed". I am comfortable with a strictly CLI solution if that's the necessary path.
For reference; With a standard install over my old config I can connect via both lan and wlan, get an ip in respective subnet (10.23.5.0/24 & 192.168.2.0/24) but only lan interface routes me to internet, which is obvious when you look at iptables. There are no forward chains for the wifi-interface.
Relevant parts of 'uci show:
Code: Select all
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded=1
dhcp.@dnsmasq[0].boguspriv=1
dhcp.@dnsmasq[0].filterwin2k=0
dhcp.@dnsmasq[0].localise_queries=1
dhcp.@dnsmasq[0].local=/lan/
dhcp.@dnsmasq[0].domain=lan
dhcp.@dnsmasq[0].expandhosts=1
dhcp.@dnsmasq[0].nonegcache=0
dhcp.@dnsmasq[0].cachelocal=1
dhcp.@dnsmasq[0].authoritative=1
dhcp.@dnsmasq[0].readethers=1
dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto
dhcp.@dnsmasq[0].leasefile=/tmp/dhcp.leases
dhcp.lan=dhcp
dhcp.lan.interface=lan
dhcp.lan.start=100
dhcp.lan.limit=150
dhcp.lan.leasetime=720m
dhcp.lan.ignore=0
dhcp.wan=dhcp
dhcp.wan.interface=wan
dhcp.wan.ignore=1
dhcp.wan.start=
dhcp.wan.limit=
dhcp.wan.leasetime=
dhcp.wifi=dhcp
dhcp.wifi.interface=wifi
dhcp.wifi.start=100
dhcp.wifi.limit=150
dhcp.wifi.leasetime=720m
dhcp.wifi.ignore=0
network.eth0=switch
network.eth0.vlan0=1 2 3 4 5*
network.eth0.vlan1=0 5
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.type=bridge
network.lan.ifname=eth0.0
network.lan.proto=static
network.lan.ipaddr=10.23.5.1
network.lan.netmask=255.255.255.0
network.lan.dns=8.8.8.8 8.8.4.4
network.wan=interface
network.wan.ifname=eth0.1
network.wan.proto=dhcp
network.wifi=interface
network.wifi.ifname=eth1.0
network.wifi.proto=static
network.wifi.ipaddr=192.168.2.1
network.wifi.netmask=255.255.255.0