Hi,

I'm desperately looking for a solution to my problem, but I find nothing interesting or working in 1 day of intensive search !!!
Maybe you can help me wink

My problem : I have 2 Internet connections on my WL500GPv2 using VLAN
one on port Wan, the other on port 1.
When I swith (close one and open the other)  it's work correctly.

but I have a specific need :

I want open the two connections and attribute "user mac address" or "IP" to only one vlan at the time.

It's like a "multi route" or "load balancing" in easyest, but i really don't know how can I do that !!

Iptables ??

my /etc/config/network

config 'switch' 'eth0'
    option 'vlan2' '3 5*'
    option 'vlan1' '4 5*'
    option 'vlan0' '0 1 2 5*'

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'ifname' 'eth0.0'
    option 'proto' 'static'
    option 'ipaddr' '192.168.1.1'
    option 'netmask' '255.255.255.0'
    option 'macaddr' ''
    option 'ip6addr' ''
    option 'gateway' ''
    option 'ip6gw' ''
    option 'dns' ''

config 'interface' 'wan'
    option 'type' 'bridge'
    option 'ifname' 'eth0.1'
    option 'proto' 'dhcp'
    option 'macaddr' ''
    option 'ipaddr' ''
    option 'ip6addr' ''
    option 'netmask' ''
    option 'gateway' ''
    option 'ip6gw' ''
    option 'dns' ''

config 'interface' 'wan2'
    option 'proto' 'dhcp'
    option 'macaddr' ''
    option 'ipaddr' ''
    option 'ip6addr' ''
    option 'netmask' ''
    option 'gateway' ''
    option 'ip6gw' ''
    option 'dns' ''
    option 'ifname' 'eth0.2'


and /etc/config/firewall

config 'defaults'
    option 'syn_flood' '1'
    option 'input' 'ACCEPT'
    option 'output' 'ACCEPT'
    option 'forward' 'REJECT'

config 'zone'
    option 'name' 'lan'
    option 'input' 'ACCEPT'
    option 'output' 'ACCEPT'
    option 'forward' 'ACCEPT'

config 'zone'
    option 'name' 'wan'
    option 'input' 'REJECT'
    option 'output' 'ACCEPT'
    option 'forward' 'REJECT'
    option 'masq' '1'

config 'forwarding'
    option 'src' 'lan'
    option 'dest' 'wan'
    option 'mtu_fix' '1'


config 'zone'
    option 'name' 'wan2'
    option 'input' 'REJECT'
    option 'output' 'ACCEPT'
    option 'forward' 'REJECT'
    option 'masq' '1'

config 'forwarding'
        option 'src' 'lan'
        option 'dest' 'wan2'
        option 'mtu_fix' '1'

       
If you have an idea or better a solution ....

Thanks

Olivius