Temat: MWAN3 jak przekierować na konkretny WAN?

Witam.
Mam MWAN3 z 2 WANami w trybie balanced.
Chciałbym aby ruch powiedzmy na speedtest.net szedł tylko na WAN2.
Tu jest przykład jak zrobić by konkretny IP z LAN szedł tylko po wybranym WAN.

    config rule 'host100'
        option sticky '1'
        option src_ip '192.168.1.100'
        option proto 'all'
        option use_policy 'wan2_only'

    config rule 'default_rule'
        option dest_ip '0.0.0.0/0'
        option use_policy 'balanced'

W MWAN zrobiłem taką regułę

config rule 'speedtest'
    option proto 'tcp'
    option ipset 'speedtest.net'
    option use_policy 'wan2_only'
    option sticky '1'

Niestety nie działa...
Ktoś robił może coś takiego i zna prawidłową składnię?

2

Odp: MWAN3 jak przekierować na konkretny WAN?

A może to:
https://wiki.openwrt.org/doc/howto/mwan … _and_ipset

Xiaomi AX3000T @ Netgear R6220
* DVBT2 - T230C *

3 (edytowany przez robertnik 2017-04-10 04:15:35)

Odp: MWAN3 jak przekierować na konkretny WAN?

Niewdzięczność nie zna granic wink

Do pliku /etc/dnsmasq.conf dopisałem

ipset=/speedtest.net/speedtest

Cały wygląda tak

# Change the following lines if you want dnsmasq to serve SRV
# records.
# You may add multiple srv-host lines.
# The fields are <name>,<target>,<port>,<priority>,<weight>

# A SRV record sending LDAP for the example.com domain to
# ldapserver.example.com port 289
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389

# Two SRV records for LDAP, each with different priorities
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
#srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2

# A SRV record indicating that there is no LDAP server for the domain
# example.com
#srv-host=_ldap._tcp.example.com

# The following line shows how to make dnsmasq serve an arbitrary PTR
# record. This is useful for DNS-SD.
# The fields are <name>,<target>
#ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services"

# Change the following lines to enable dnsmasq to serve TXT records.
# These are used for things like SPF and zeroconf.
# The fields are <name>,<text>,<text>...

#Example SPF.
#txt-record=example.com,"v=spf1 a -all"

#Example zeroconf
#txt-record=_http._tcp.example.com,name=value,paper=A4

# Provide an alias for a "local" DNS name. Note that this _only_ works
# for targets which are names from DHCP or /etc/hosts. Give host
# "bert" another name, bertrand
# The fields are <cname>,<target>
#cname=bertand,bert

ipset=/speedtest.net/speedtest

Zrestartowałem ruter odświeżam speedtest paronastokrotnie pokazuje się IP z WAN2 przełączam zakładkę w przeglądarce by Ci serdecznie podziękować i klops. Żadna inna witryna nie działa prócz speedtest.net smile
Tak że nadal tego nie rozumiem i robię coś nie tak. Oczywiście mimo wszystko Ci dziękuję, ale potrzebuję prostszych przykładów, które będę potrafił zrozumieć.

EDIT
Patrząc na ten filmik próbowałem zrobić mniej więcej tak samo z skutkiem żadnym... Tam ktoś ma 4 WANy i w regułach IP poustawiane na konkretne. Nie klikną niestety w Edit i nie widać co ma ipset.

4

Odp: MWAN3 jak przekierować na konkretny WAN?

1. ipset masz zainstalowany?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5 (edytowany przez robertnik 2017-04-10 07:43:02)

Odp: MWAN3 jak przekierować na konkretny WAN?

Jest 6.24-1

EDIT
Tak oglądam ten filmik i analizuje. Ma tam spięte 3 wany w balanced a czwarty poza.
Może mwan3 nie potrafi priorytetować tych reguł. Mam balanced na dwa wany i dodatkową regułę ze speedtest przez wan2 to może jest mu obojętne, bo przecież balanced nie wyklucza żadnej witryny.
W linkowanym przykładzie jest youtube, ale nie na konkretny wan tylko przytrzymanie dłużej na dowolnym...
Nie wiem czy dobrze kombinuję i brak mi pomysłu przec co to zrobić jak nie mwan3.

EDIT2 Jednak ma na filmiku jedną regułę na wan1_only

6

Odp: MWAN3 jak przekierować na konkretny WAN?

Zainstaluj pakiet dnsmasq-full. Pewnie nie spojrzałeś do logów a on wypisuje że nie ma HAVE_IPSET wkompilowanego.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7 (edytowany przez robertnik 2017-04-10 08:10:24)

Odp: MWAN3 jak przekierować na konkretny WAN?

Nie wiem jak zajzeć do logów. Przy instalacji dostaję error.

Collected errors:
* opkg_conf_load: Could not lock /var/lock/opkg.lock: Resource temporarily unavailable

Oczywiście odświeżam, listę pakietów...

8

Odp: MWAN3 jak przekierować na konkretny WAN?

logread - to jest w faq...

Jeżeli używasz lede to najpierw powyłączaj wszystko co się da bo nie zainstaluje z powodu braku pamięci. Jak używasz CC - po prostu zrestartuj go, niech będzie na czysto bo w tej chwili powiesił Ci się opkg.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: MWAN3 jak przekierować na konkretny WAN?

Używam CC. Po restarcie sie zainstalowało, dzięki.
Całą noc szukałem rozwiązania i teraz dogorywam w łóżku z tabletem bez putty. Jak wstanę to sprawdzę, tymczasem dopytam.
Czyli już wpis ipset z dnsmasq.conf powinien interpretować?
Tak czy siak dziękuję bo sam bym do tego nie doszedł.

10

Odp: MWAN3 jak przekierować na konkretny WAN?

Poprzednio dnsmasq nie działał więc nie mogłeś się do innych stron dostać po prostu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11 (edytowany przez robertnik 2017-04-10 17:06:21)

Odp: MWAN3 jak przekierować na konkretny WAN?

Efekt jest taki że reszta witryn owszem działa, ale speedtest nadal pokazuje IP z WAN1 nawet częściej niż WAN2.
wpis w/etc/dnsmasq.conf

ipset=/speedtest.net/speedtest

a w mwan2

config rule 'speedtest'
    option proto 'tcp'
    option sticky '1'
    option ipset 'speedtest'
    option dest_port '80'
    option use_policy 'wan2_only'
    option timeout '10000'

A ping na tą witrynę może leci z innego portu niż 80 i dla tego.
Z speedtest jest o tyle prosto że pokazuje ip i dostawcę już na pierwszej stronie. Natomiast po prędkościach widzę że same speedtety robi na wan2(ale i prędzej tak było).

12

Odp: MWAN3 jak przekierować na konkretny WAN?

Zrobiłem dziś to samo rano - zawsze pokazywał wan2: http://eko.one.pl/?p=openwrt-mwan3#wymu … krelonecze tylko nie ograniczałem ani portu ani protokołu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13 (edytowany przez robertnik 2017-04-10 19:07:28)

Odp: MWAN3 jak przekierować na konkretny WAN?

Eureka. Wywalenie portu pomaga. Jak ja lubię jak się tak prosto naprawia smile
Dziękuję Ci bardzo, bo bez Ciebie siedział bym w googlach jeszcze z miesiąc.
To teraz facebooka muszę jeszcze dodać, bo czasem na http nie chce się otworzyć.
Jeszcze raz dziękuję.

EDIT
O dodałeś wpis z speedtestem jako przykład. Dziękuję Ci. Jestem pewien że pomoże wielu ludziom, którzy do tej pory rozbijali się o ścianę, bo jak ja w logi nie patrzyli smile

Dzięki.

EDIT2
Jednak z facegookiem jest inaczej.
Na multiwan potrafi się zawiesić i w pasku adresu migają naprzemiennie
facebook.com
web.facebook.com
Tu już nie trzeba ograniczać na konkretny wan, byle te 2 adresy szły z tego samego.
Dodałem

config rule 'facebook'
    option proto 'all'
    option sticky '1'
    option ipset 'facebook'
    option use_policy 'wan_wan2'

w pliku

ipset=/facebook.com/facebook
ipset=/web.facebook.com/facebook

I facebook się poprawił, ale interfejs mwan3 się wysypał:

http://i68.tinypic.com/4k7fye.png

Jak nie urok...

Log, który oczywiście nic mi nie mówi..

Mon Apr 10 19:45:15 2017 kern.info kernel: [   15.530000] usbcore: registered ne                                                      w interface driver qcserial
Mon Apr 10 19:45:15 2017 kern.info kernel: [   15.540000] usbserial: USB Serial                                                       support registered for Qualcomm USB modem
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.570000] ath: EEPROM regdomain                                                      : 0x0
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.570000] ath: EEPROM indicates                                                       default country code should be used
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.570000] ath: doing EEPROM cou                                                      ntry->regdmn map search
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.570000] ath: country maps to                                                       regdmn code: 0x3a
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.570000] ath: Country alpha2 b                                                      eing used: US
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.570000] ath: Regpair used: 0x                                                      3a
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.580000] ieee80211 phy0: Selec                                                      ted rate control algorithm 'minstrel_ht'
Mon Apr 10 19:45:15 2017 kern.info kernel: [   15.580000] ieee80211 phy0: Athero                                                      s AR9340 Rev:2 mem=0xb8100000, irq=47
Mon Apr 10 19:45:15 2017 kern.warn kernel: [   15.590000] PCI: Enabling device 0                                                      000:00:00.0 (0000 -> 0002)
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.600000] ath: EEPROM regdomain                                                      : 0x0
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.600000] ath: EEPROM indicates                                                       default country code should be used
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.600000] ath: doing EEPROM cou                                                      ntry->regdmn map search
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.600000] ath: country maps to                                                       regdmn code: 0x3a
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.600000] ath: Country alpha2 b                                                      eing used: US
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.600000] ath: Regpair used: 0x                                                      3a
Mon Apr 10 19:45:15 2017 kern.debug kernel: [   15.610000] ieee80211 phy1: Selec                                                      ted rate control algorithm 'minstrel_ht'
Mon Apr 10 19:45:15 2017 kern.info kernel: [   15.610000] ieee80211 phy1: Athero                                                      s AR9300 Rev:4 mem=0xb0000000, irq=40
Mon Apr 10 19:45:18 2017 user.emerg syslog: this file has been obseleted. please                                                       call "/sbin/block mount" directly
Mon Apr 10 19:45:19 2017 daemon.err block: /dev/mtdblock3 is already mounted
Mon Apr 10 19:45:20 2017 authpriv.info dropbear[1334]: Not backgrounding
Mon Apr 10 19:45:25 2017 kern.info kernel: [   27.490000] IPv6: ADDRCONF(NETDEV_                                                      UP): eth0: link is not ready
Mon Apr 10 19:45:25 2017 kern.info kernel: [   27.510000] device eth0.1 entered                                                       promiscuous mode
Mon Apr 10 19:45:25 2017 kern.info kernel: [   27.510000] device eth0 entered pr                                                      omiscuous mode
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'lan' is enabled
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'lan' is setting up now
Mon Apr 10 19:45:25 2017 kern.info kernel: [   27.530000] IPv6: ADDRCONF(NETDEV_                                                      UP): br-lan: link is not ready
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'lan' is now up
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'loopback' is enabled
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'loopback' is setting u                                                      p now
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'loopback' is now up
Mon Apr 10 19:45:25 2017 kern.info kernel: [   27.540000] IPv6: ADDRCONF(NETDEV_                                                      UP): eth0.2: link is not ready
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan' is enabled
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan' is setting up now
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan' is now up
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan6' is enabled
Mon Apr 10 19:45:25 2017 kern.info kernel: [   27.570000] IPv6: ADDRCONF(NETDEV_                                                      UP): eth0.3: link is not ready
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan2' is enabled
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan2' is setting up no                                                      w
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan2' is now up
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Network device 'lo' link is up
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'loopback' has link con                                                      nectivity
Mon Apr 10 19:45:25 2017 kern.info kernel: [   28.140000] eth0: link up (1000Mbp                                                      s/Full duplex)
Mon Apr 10 19:45:25 2017 kern.info kernel: [   28.140000] IPv6: ADDRCONF(NETDEV_                                                      CHANGE): eth0: link becomes ready
Mon Apr 10 19:45:25 2017 daemon.notice netifd: VLAN 'eth0.3' link is up
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan2' has link connect                                                      ivity
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Network device 'eth0' link is up
Mon Apr 10 19:45:25 2017 kern.info kernel: [   28.150000] br-lan: port 1(eth0.1)                                                       entered forwarding state
Mon Apr 10 19:45:25 2017 kern.info kernel: [   28.160000] br-lan: port 1(eth0.1)                                                       entered forwarding state
Mon Apr 10 19:45:25 2017 kern.info kernel: [   28.160000] IPv6: ADDRCONF(NETDEV_                                                      CHANGE): eth0.2: link becomes ready
Mon Apr 10 19:45:25 2017 kern.info kernel: [   28.170000] IPv6: ADDRCONF(NETDEV_                                                      CHANGE): eth0.3: link becomes ready
Mon Apr 10 19:45:25 2017 kern.info kernel: [   28.230000] IPv6: ADDRCONF(NETDEV_                                                      CHANGE): br-lan: link becomes ready
Mon Apr 10 19:45:25 2017 daemon.notice netifd: VLAN 'eth0.1' link is up
Mon Apr 10 19:45:25 2017 daemon.notice netifd: VLAN 'eth0.2' link is up
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan' has link connecti                                                      vity
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan6' has link connect                                                      ivity
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'wan6' is setting up no                                                      w
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Bridge 'br-lan' link is up
Mon Apr 10 19:45:25 2017 daemon.notice netifd: Interface 'lan' has link connecti                                                      vity
Mon Apr 10 19:45:27 2017 kern.info kernel: [   30.160000] br-lan: port 1(eth0.1)                                                       entered forwarding state
Mon Apr 10 19:45:29 2017 daemon.notice netifd: radio0 (1687): Configuration file                                                      : /var/run/hostapd-phy0.conf
Mon Apr 10 19:45:29 2017 kern.info kernel: [   31.410000] IPv6: ADDRCONF(NETDEV_                                                      UP): wlan0: link is not ready
Mon Apr 10 19:45:29 2017 kern.info kernel: [   31.420000] device wlan0 entered p                                                      romiscuous mode
Mon Apr 10 19:45:29 2017 daemon.notice netifd: radio0 (1687): wlan0: interface s                                                      tate UNINITIALIZED->COUNTRY_UPDATE
Mon Apr 10 19:45:29 2017 daemon.notice netifd: radio0 (1687): Using interface wl                                                      an0 with hwaddr e8:de:27:77:69:28 and ssid "Robertnik"
Mon Apr 10 19:45:29 2017 daemon.notice netifd: radio1 (1688): Configuration file                                                      : /var/run/hostapd-phy1.conf
Mon Apr 10 19:45:29 2017 kern.info kernel: [   31.560000] IPv6: ADDRCONF(NETDEV_                                                      UP): wlan1: link is not ready
Mon Apr 10 19:45:29 2017 kern.info kernel: [   31.740000] device wlan1 entered p                                                      romiscuous mode
Mon Apr 10 19:45:29 2017 kern.info kernel: [   31.740000] br-lan: port 3(wlan1)                                                       entered forwarding state
Mon Apr 10 19:45:29 2017 kern.info kernel: [   31.750000] br-lan: port 3(wlan1)                                                       entered forwarding state
Mon Apr 10 19:45:29 2017 daemon.notice netifd: radio1 (1688): wlan1: interface s                                                      tate UNINITIALIZED->COUNTRY_UPDATE
Mon Apr 10 19:45:29 2017 daemon.notice netifd: radio1 (1688): Using interface wl                                                      an1 with hwaddr e8:de:27:77:69:29 and ssid "Robertnik5"
Mon Apr 10 19:45:29 2017 user.notice firewall: Reloading firewall due to ifup of                                                       lan (br-lan)
Mon Apr 10 19:45:29 2017 user.emerg syslog: setting up led USB1
Mon Apr 10 19:45:29 2017 user.emerg syslog: setting up led USB2
Mon Apr 10 19:45:29 2017 user.emerg syslog: setting up led WLAN2G
Mon Apr 10 19:45:30 2017 kern.info kernel: [   32.420000] br-lan: port 3(wlan1)                                                       entered disabled state
Mon Apr 10 19:45:30 2017 daemon.info procd: - init complete -
Mon Apr 10 19:45:31 2017 kern.info kernel: [   33.360000] br-lan: port 2(wlan0)                                                       entered forwarding state
Mon Apr 10 19:45:31 2017 kern.info kernel: [   33.360000] br-lan: port 2(wlan0)                                                       entered forwarding state
Mon Apr 10 19:45:31 2017 kern.info kernel: [   33.370000] IPv6: ADDRCONF(NETDEV_                                                      CHANGE): wlan0: link becomes ready
Mon Apr 10 19:45:31 2017 daemon.notice netifd: radio0 (1687): wlan0: interface s                                                      tate COUNTRY_UPDATE->ENABLED
Mon Apr 10 19:45:31 2017 daemon.notice netifd: radio0 (1687): wlan0: AP-ENABLED
Mon Apr 10 19:45:31 2017 kern.info kernel: [   33.460000] br-lan: port 3(wlan1)                                                       entered forwarding state
Mon Apr 10 19:45:31 2017 kern.info kernel: [   33.460000] br-lan: port 3(wlan1)                                                       entered forwarding state
Mon Apr 10 19:45:31 2017 kern.info kernel: [   33.470000] IPv6: ADDRCONF(NETDEV_                                                      CHANGE): wlan1: link becomes ready
Mon Apr 10 19:45:31 2017 daemon.notice netifd: radio1 (1688): wlan1: interface s                                                      tate COUNTRY_UPDATE->ENABLED
Mon Apr 10 19:45:31 2017 daemon.notice netifd: radio1 (1688): wlan1: AP-ENABLED
Mon Apr 10 19:45:31 2017 daemon.notice netifd: Network device 'wlan0' link is up
Mon Apr 10 19:45:31 2017 daemon.notice netifd: Network device 'wlan1' link is up
Mon Apr 10 19:45:33 2017 kern.info kernel: [   35.360000] br-lan: port 2(wlan0)                                                       entered forwarding state
Mon Apr 10 19:45:33 2017 kern.info kernel: [   35.460000] br-lan: port 3(wlan1)                                                       entered forwarding state
Mon Apr 10 19:45:33 2017 daemon.warn odhcpd[1283]: DHCPV6 SOLICIT IA_NA from 000                                                      10001204feef7408d5c1dc9a7 on br-lan: ok fdfc:9f97:af9a::928/128
Mon Apr 10 19:45:33 2017 kern.debug kernel: [   35.740000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:45:33 2017 kern.debug kernel: [   35.740000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:45:33 2017 kern.debug kernel: [   35.740000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:45:33 2017 kern.debug kernel: [   35.750000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:45:33 2017 kern.debug kernel: [   35.750000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:45:33 2017 daemon.warn odhcpd[1283]: DHCPV6 REQUEST IA_NA from 000                                                      10001204feef7408d5c1dc9a7 on br-lan: ok fdfc:9f97:af9a::928/128
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: started, version 2.73 caches                                                      ize 150
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: compile time options: IPv6 G                                                      NU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth                                                       DNSSEC loop-detect inotify
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: DNS service limited to local                                                       subnets
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq-dhcp[2073]: DHCP, IP range 192.168.                                                      0.100 -- 192.168.0.249, lease time 12h
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: using local addresses only f                                                      or domain lan
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: reading /tmp/resolv.conf.aut                                                      o
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: using local addresses only f                                                      or domain lan
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: using nameserver 8.8.8.8#53
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: using nameserver 4.4.4.4#53
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: using nameserver 8.8.8.8#53
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: using nameserver 4.4.4.4#53
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: read /etc/hosts - 1 addresse                                                      s
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: read /tmp/hosts/dhcp - 1 add                                                      resses
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq[2073]: read /tmp/hosts/odhcpd - 1 a                                                      ddresses
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq-dhcp[2073]: read /etc/ethers - 0 ad                                                      dresses
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq-dhcp[2073]: DHCPREQUEST(br-lan) 192                                                      .168.0.111 40:8d:5c:1d:c9:a7
Mon Apr 10 19:45:35 2017 daemon.info dnsmasq-dhcp[2073]: DHCPACK(br-lan) 192.168                                                      .0.111 40:8d:5c:1d:c9:a7 DESKTOP-T4BJRJ6
Mon Apr 10 19:45:36 2017 kern.debug kernel: [   38.760000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:45:36 2017 kern.debug kernel: [   38.760000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:45:36 2017 kern.debug kernel: [   38.760000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:45:36 2017 kern.debug kernel: [   38.770000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:45:36 2017 kern.debug kernel: [   38.770000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:45:37 2017 daemon.warn odhcpd[1283]: DHCPV6 CONFIRM IA_NA from 000                                                      10001204feef7408d5c1dc9a7 on br-lan: not on-link fdfc:9f97:af9a::928/128
Mon Apr 10 19:45:37 2017 daemon.warn odhcpd[1283]: DHCPV6 SOLICIT IA_NA from 000                                                      10001204feef7408d5c1dc9a7 on br-lan: ok fdfc:9f97:af9a::928/128
Mon Apr 10 19:45:37 2017 daemon.info dnsmasq[2073]: read /etc/hosts - 1 addresse                                                      s
Mon Apr 10 19:45:37 2017 daemon.info dnsmasq[2073]: read /tmp/hosts/dhcp - 1 add                                                      resses
Mon Apr 10 19:45:37 2017 daemon.info dnsmasq[2073]: read /tmp/hosts/odhcpd - 0 a                                                      ddresses
Mon Apr 10 19:45:37 2017 daemon.info dnsmasq-dhcp[2073]: read /etc/ethers - 0 ad                                                      dresses
Mon Apr 10 19:45:37 2017 user.notice mwan3: ifup interface wan (eth0.2)
Mon Apr 10 19:45:38 2017 daemon.warn odhcpd[1283]: DHCPV6 REQUEST IA_NA from 000                                                      10001204feef7408d5c1dc9a7 on br-lan: ok fdfc:9f97:af9a::928/128
Mon Apr 10 19:45:38 2017 daemon.info dnsmasq[2073]: read /etc/hosts - 1 addresse                                                      s
Mon Apr 10 19:45:38 2017 daemon.info dnsmasq[2073]: read /tmp/hosts/dhcp - 1 add                                                      resses
Mon Apr 10 19:45:38 2017 daemon.info dnsmasq[2073]: read /tmp/hosts/odhcpd - 1 a                                                      ddresses
Mon Apr 10 19:45:38 2017 daemon.info dnsmasq-dhcp[2073]: read /etc/ethers - 0 ad                                                      dresses
Mon Apr 10 19:50:37 2017 kern.notice kernel: [   41.480000] random: nonblocking                                                       pool is initialized
Mon Apr 10 19:50:38 2017 user.notice firewall: Reloading firewall due to ifup of                                                       wan (eth0.2)
Mon Apr 10 19:50:40 2017 user.notice ddns-scripts[2550]: myddns_ipv4: PID '2550'                                                       started at 2017-04-10 19:50
Mon Apr 10 19:50:40 2017 user.warn ddns-scripts[2550]: myddns_ipv4: Service sect                                                      ion disabled! - TERMINATE
Mon Apr 10 19:50:40 2017 user.notice mwan3: ifup interface wan2 (eth0.3)
Mon Apr 10 19:50:40 2017 user.warn ddns-scripts[2550]: myddns_ipv4: PID '2550' e                                                      xit WITH ERROR '1' at 2017-04-10 19:50
Mon Apr 10 19:50:42 2017 kern.debug kernel: [   45.770000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:50:42 2017 kern.debug kernel: [   45.770000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:50:42 2017 kern.debug kernel: [   45.770000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:50:42 2017 kern.debug kernel: [   45.780000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:50:42 2017 kern.debug kernel: [   45.780000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:50:42 2017 kern.debug kernel: [   45.790000] icmp6_send: no reply                                                       to icmp error
Mon Apr 10 19:50:42 2017 user.notice firewall: Reloading firewall due to ifup of                                                       wan2 (eth0.3)
Mon Apr 10 19:51:08 2017 daemon.err uhttpd[1636]: /usr/lib/lua/luci/dispatcher.l                                                      ua:360: Failed to execute function dispatcher target for entry '/admin/network/m                                                      wan/configuration'.
Mon Apr 10 19:51:08 2017 daemon.err uhttpd[1636]: The called action terminated w                                                      ith an exception:
Mon Apr 10 19:51:08 2017 daemon.err uhttpd[1636]: /usr/lib/lua/luci/dispatcher.l                                                      ua:360: Failed to execute arcombine dispatcher target for entry '/admin/network/                                                      mwan/configuration/interface'.
Mon Apr 10 19:51:08 2017 daemon.err uhttpd[1636]: The called action terminated w                                                      ith an exception:
Mon Apr 10 19:51:08 2017 daemon.err uhttpd[1636]: /usr/lib/lua/luci/cbi.lua:241:                                                       Unable to read UCI data: mwan3
Mon Apr 10 19:51:08 2017 daemon.err uhttpd[1636]: stack traceback:
Mon Apr 10 19:51:08 2017 daemon.err uhttpd[1636]:       [C]: in function 'assert                                                      '
Mon Apr 10 19:51:08 2017 daemon.err uhttpd[1636]:       /usr/lib/lua/luci/dispat                                                      cher.lua:360: in function 'dispatch'
Mon Apr 10 19:51:08 2017 daemon.err uhttpd[1636]:       /usr/lib/lua/luci/dispat                                                      cher.lua:135: in function </usr/lib/lua/luci/dispatcher.lua:134>
Mon Apr 10 19:51:38 2017 daemon.err uhttpd[1636]: /usr/lib/lua/luci/dispatcher.l                                                      ua:360: Failed to execute function dispatcher target for entry '/admin/network/m                                                      wan/configuration'.
Mon Apr 10 19:51:38 2017 daemon.err uhttpd[1636]: The called action terminated w                                                      ith an exception:
Mon Apr 10 19:51:38 2017 daemon.err uhttpd[1636]: /usr/lib/lua/luci/dispatcher.l                                                      ua:360: Failed to execute arcombine dispatcher target for entry '/admin/network/                                                      mwan/configuration/interface'.
Mon Apr 10 19:51:38 2017 daemon.err uhttpd[1636]: The called action terminated w                                                      ith an exception:
Mon Apr 10 19:51:38 2017 daemon.err uhttpd[1636]: /usr/lib/lua/luci/cbi.lua:241:                                                       Unable to read UCI data: mwan3
Mon Apr 10 19:51:38 2017 daemon.err uhttpd[1636]: stack traceback:
Mon Apr 10 19:51:38 2017 daemon.err uhttpd[1636]:       [C]: in function 'assert                                                      '
Mon Apr 10 19:51:38 2017 daemon.err uhttpd[1636]:       /usr/lib/lua/luci/dispat                                                      cher.lua:360: in function 'dispatch'
Mon Apr 10 19:51:38 2017 daemon.err uhttpd[1636]:       /usr/lib/lua/luci/dispat                                                      cher.lua:135: in function </usr/lib/lua/luci/dispatcher.lua:134>
Mon Apr 10 19:56:38 2017 daemon.info hostapd: wlan0: STA 88:44:f6:25:09:d4 IEEE                                                       802.11: authenticated
Mon Apr 10 19:56:38 2017 daemon.info hostapd: wlan0: STA 88:44:f6:25:09:d4 IEEE                                                       802.11: associated (aid 1)
Mon Apr 10 19:56:39 2017 daemon.info hostapd: wlan0: STA 88:44:f6:25:09:d4 WPA:                                                       pairwise key handshake completed (RSN)
Mon Apr 10 19:56:40 2017 daemon.warn odhcpd[1283]: DHCPV6 CONFIRM IA_NA from 000                                                      100011ab9f1388844f62509d4 on br-lan: not on-link
Mon Apr 10 19:56:41 2017 daemon.warn odhcpd[1283]: DHCPV6 CONFIRM IA_NA from 000                                                      100011ab9f1388844f62509d4 on br-lan: not on-link
Mon Apr 10 19:56:41 2017 daemon.warn odhcpd[1283]: DHCPV6 SOLICIT IA_NA from 000                                                      100011ab9f1388844f62509d4 on br-lan: ok fdfc:9f97:af9a::38e/128
Mon Apr 10 19:56:42 2017 daemon.info dnsmasq-dhcp[2073]: DHCPDISCOVER(br-lan) 88                                                      :44:f6:25:09:d4
Mon Apr 10 19:56:42 2017 daemon.info dnsmasq-dhcp[2073]: DHCPOFFER(br-lan) 192.1                                                      68.0.184 88:44:f6:25:09:d4
Mon Apr 10 19:56:42 2017 daemon.info dnsmasq-dhcp[2073]: DHCPREQUEST(br-lan) 192                                                      .168.0.184 88:44:f6:25:09:d4
Mon Apr 10 19:56:42 2017 daemon.info dnsmasq-dhcp[2073]: DHCPACK(br-lan) 192.168                                                      .0.184 88:44:f6:25:09:d4 Windows-Phone
Mon Apr 10 19:56:42 2017 daemon.warn odhcpd[1283]: DHCPV6 REQUEST IA_NA from 000                                                      100011ab9f1388844f62509d4 on br-lan: ok fdfc:9f97:af9a::38e/128
Mon Apr 10 19:56:42 2017 daemon.info dnsmasq[2073]: read /etc/hosts - 1 addresse                                                      s
Mon Apr 10 19:56:42 2017 daemon.info dnsmasq[2073]: read /tmp/hosts/dhcp - 1 add                                                      resses
Mon Apr 10 19:56:42 2017 daemon.info dnsmasq[2073]: read /tmp/hosts/odhcpd - 2 a                                                      ddresses
Mon Apr 10 19:56:42 2017 daemon.info dnsmasq-dhcp[2073]: read /etc/ethers - 0 ad                                                      dresses
Mon Apr 10 20:00:29 2017 daemon.info hostapd: wlan0: STA 88:44:f6:25:09:d4 WPA:                                                       group key handshake completed (RSN)
Mon Apr 10 20:00:39 2017 authpriv.info dropbear[4101]: Child connection from 192                                                      .168.0.111:58014
Mon Apr 10 20:00:41 2017 authpriv.notice dropbear[4101]: Password auth succeeded                                                       for 'root' from 192.168.0.111:58014
Mon Apr 10 20:03:06 2017 authpriv.info dropbear[4589]: Child connection from 192                                                      .168.0.111:58046
Mon Apr 10 20:03:18 2017 authpriv.notice dropbear[4589]: Password auth succeeded                                                       for 'root' from 192.168.0.111:58046

14

Odp: MWAN3 jak przekierować na konkretny WAN?

Errory zaczynają się od

Mon Apr 10 19:51:08 2017 daemon.err uhttpd[1636]: /usr/lib/lua/luci/dispatcher.l                                                      ua:360: Failed to execute function dispatcher target for entry '/admin/network/m                                                      wan/configuration'.

Resinstalacja mwan3 pomoże, nie zginie mi to co już skonfigurowałem?

15

Odp: MWAN3 jak przekierować na konkretny WAN?

Raczej popraw plik bo jakąś literówkę zrobiłeś

uci show mwan3

zrób.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16 (edytowany przez robertnik 2017-04-10 19:55:37)

Odp: MWAN3 jak przekierować na konkretny WAN?

uci: Parse error (invalid character in name field) at line 102, byte 24

EDIT
W dnsmasq.conf mam dopisane

ipset=/youtube.com/youtube
ipset=/speedtest.net/speedtest
ipset=/facebook.com/facebook
ipset=/bez-kabli.pl/bez-kabli

Może myślnik to rowala?

17

Odp: MWAN3 jak przekierować na konkretny WAN?

Zrobiłeś litrówkę. W linii 102 smile

Pewnie apostrofu nie masz przy opcji czy coś takiego. mwan3 się nie wysypał tylko źle edytowałeś plik. Popraw to co zepsułeś.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18

Odp: MWAN3 jak przekierować na konkretny WAN?

Ale w jakim pliku. Edytowałem jedynie dnsmasq.conf i mój ma 41 linii w notepad++

19

Odp: MWAN3 jak przekierować na konkretny WAN?

/etc/config/mwan3

przecież tam jest konfiguracja mwan3 i tam to zmieniasz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

20

Odp: MWAN3 jak przekierować na konkretny WAN?

Linia od 102

config rule 'bez-kabli'
    option proto 'all'
    option sticky '1'
    option ipset 'bez-kabli'
    option use_policy 'wan_wan2'

Czyli myślnik w adresie rozwala system smile ok usunę go.

21

Odp: MWAN3 jak przekierować na konkretny WAN?

Czyli reguła nie może mieć myślnika. Tu adresów nie ma w tej regule.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

22

Odp: MWAN3 jak przekierować na konkretny WAN?

Acha, ale to i tak zdrada wink Nazwa to nazwa.

23 (edytowany przez Heinz 2017-04-10 20:34:16)

Odp: MWAN3 jak przekierować na konkretny WAN?

Z GUI LuCI:

Rules specify which traffic will use a particular MWAN policy based on IP address, port or protocol
Rules are matched from top to bottom. Rules below a matching rule are ignored. Traffic not matching any rule is routed using the main routing table
Traffic destined for known (other than default) networks is handled by the main routing table. Traffic matching a rule, but all WAN interfaces for that policy are down will be blackholed
Names may contain characters A-Z, a-z, 0-9, _ and no spaces
Rules may not share the same name as configured interfaces, members or policies

https://tplinkforum.pl - Polskie forum poświęcone tematyce urządzeń firmy TP-Link i Neffos

24

Odp: MWAN3 jak przekierować na konkretny WAN?

Tak tak, ale to i tak zdrada. Zwyczajnie czytelnie nazwać reguły od witryn. Puki jest ich niewiele to problemu nie ma.

25 (edytowany przez robertnik 2017-04-21 03:33:11)

Odp: MWAN3 jak przekierować na konkretny WAN?

Tak jeszcze dopytam, bo to nie HTTP. Stream jak puścić przez wybrany WAN?
Np youtube ma taki adres rtmp://a.rtmp.youtube.com/live2 zapewne bywają różne jeśli chodzi o składnie, ale ten protokół.
Jak powinna wyglądać składnia?
ipset=rtmp://a.rtmp.youtube.com/costamcostam