Cezary napisał/a:To jest temat który dałeś w zleceniu z dziale inne.
- robisz cztery sieci "gościnne" (opisane na eko.one.pl)
- firewall dajesz na REJECT, dodajesz tylko forwarding poszczególnych sieci do wanu
- robisz cztery ssid przypisane do tych sieci jeżeli tak chcesz
- dzielisz switch na cztery porty i dodajesz każdy z nich do innej sieci jeżeli tak chcesz
- instalujesz openvpn, robisz dwie sekcje, modyfikujesz konfigi żeby nie było w nich tras domyślnych
- instalujesz mwan3 robisz reguły żeby dwie sieci szły na dwa vpny.
W ten sposób załapałem się na realizację zlecenia 
No tak 
Szczerze mówiąc po prostu przez to, że nie mam zbyt dużo czasu, a nie chciałem już ciągnąć na litość, gdzie już na samym początku z firewallem miałem problemy, a co dopiero dalej...zdecydowałem się dać zlecenie. Po prostu tego potrzebuję i chyba nie będę w stanie tego sam zrobić...
No ale nadal mam problemy...Już na samym początku.
Od razu update do najnowszego 21.02, reset do fabrycznych...i robię 4 osobne według tutoriala sieci gościnnych..
dodałem LAN2,3,4 i po dodaniu LAN5 router nagle przestaje nadawać wifi, ale jeszcze da się do niego zalogować. Raczej wykluczam błąd bo konfiga kopiowałem i zmieniałem tylko cyfrę LAN'a i IP.
oto część loga (w późniejszej części pojawiają się errory):
Wed Apr 7 20:34:44 2021 kern.info kernel: [ 24.250639] mt7530 mdio-bus:1f wan: configuring for phy/gmii link mode
Wed Apr 7 20:34:44 2021 kern.info kernel: [ 24.257755] 8021q: adding VLAN 0 to HW filter on device wan
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'wan' is enabled
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN2' is enabled
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN2' is setting up now
Wed Apr 7 20:34:44 2021 daemon.debug dnsmasq[1694]: listening on br-LAN2(#9): 10.0.2.1 port 53
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN2' is now up
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN3' is enabled
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN3' is setting up now
Wed Apr 7 20:34:44 2021 daemon.debug dnsmasq[1694]: listening on br-LAN3(#10): 10.0.3.1 port 53
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN3' is now up
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN4' is enabled
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN4' is setting up now
Wed Apr 7 20:34:44 2021 daemon.debug dnsmasq[1694]: listening on br-LAN4(#11): 10.0.4.1 port 53
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN4' is now up
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN5' is enabled
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN5' is setting up now
Wed Apr 7 20:34:44 2021 daemon.debug dnsmasq[1694]: listening on br-LAN5(#12): 10.0.5.1 port 53
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'LAN5' is now up
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Network device 'eth0' link is up
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Network device 'lo' link is up
Wed Apr 7 20:34:44 2021 daemon.notice netifd: Interface 'loopback' has link connectivity
Wed Apr 7 20:34:44 2021 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Wed Apr 7 20:34:45 2021 user.info adblock-4.1.0[2168]: backup directory '/tmp/adblock-Backup' created
Wed Apr 7 20:34:46 2021 daemon.info dnsmasq[1694]: exiting on receipt of SIGTERM
Wed Apr 7 20:34:46 2021 daemon.err odhcpd[2327]: Failed to send to ff02::1%lan@br-lan (Address not available)
Wed Apr 7 20:34:46 2021 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Wed Apr 7 20:34:46 2021 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Wed Apr 7 20:34:46 2021 user.notice dnsmasq: Allowing RFC1918 responses for domain free.aero2.net.pl
Wed Apr 7 20:34:46 2021 user.notice dnsmasq: Allowing RFC1918 responses for domain free.aero2.net.pl
Wed Apr 7 20:34:47 2021 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/dhcp
Wed Apr 7 20:34:47 2021 user.notice ucitrack: Setting up /etc/config/wireless reload dependency on /etc/config/network
Wed Apr 7 20:34:47 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/luci-splash
Wed Apr 7 20:34:47 2021 kern.info kernel: [ 27.334873] mt7530 mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control off
Wed Apr 7 20:34:47 2021 kern.info kernel: [ 27.352436] IPv6: ADDRCONF(NETDEV_CHANGE): wan: link becomes ready
Wed Apr 7 20:34:47 2021 daemon.notice netifd: Network device 'wan' link is up
Wed Apr 7 20:34:47 2021 daemon.notice netifd: Interface 'wan' has link connectivity
Wed Apr 7 20:34:47 2021 daemon.notice netifd: Interface 'wan' is setting up now
Wed Apr 7 20:34:47 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/qos
Wed Apr 7 20:34:47 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/miniupnpd
Wed Apr 7 20:34:47 2021 daemon.notice netifd: wan (3137): udhcpc: started, v1.33.0
Wed Apr 7 20:34:47 2021 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/odhcpd
Wed Apr 7 20:34:48 2021 daemon.notice netifd: wan (3137): udhcpc: sending discover
Wed Apr 7 20:34:48 2021 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Wed Apr 7 20:34:48 2021 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Wed Apr 7 20:34:48 2021 kern.info kernel: [ 28.260614] mt7530 mdio-bus:1f lan1: Link is Up - 10Mbps/Full - flow control off
Wed Apr 7 20:34:48 2021 kern.info kernel: [ 28.268176] br-lan: port 1(lan1) entered blocking state
Wed Apr 7 20:34:48 2021 kern.info kernel: [ 28.273526] br-lan: port 1(lan1) entered forwarding state
Wed Apr 7 20:34:48 2021 daemon.notice netifd: Network device 'lan1' link is up
Wed Apr 7 20:34:48 2021 kern.info kernel: [ 28.281081] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Wed Apr 7 20:34:48 2021 daemon.notice netifd: bridge 'br-lan' link is up
Wed Apr 7 20:34:48 2021 daemon.notice netifd: Interface 'lan' has link connectivity
Wed Apr 7 20:34:48 2021 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/luci_statistics
Wed Apr 7 20:34:48 2021 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/dhcp
Wed Apr 7 20:34:48 2021 user.notice firewall: Reloading firewall due to ifup of LAN2 (br-LAN2)
Wed Apr 7 20:34:49 2021 daemon.notice hostapd: Configuration file: /var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 28.815727] br-lan: port 3(wlan0) entered blocking state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 28.821189] br-lan: port 3(wlan0) entered disabled state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 28.827440] device wlan0 entered promiscuous mode
Wed Apr 7 20:34:49 2021 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 28.963971] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 28.971052] br-lan: port 3(wlan0) entered blocking state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 28.976499] br-lan: port 3(wlan0) entered forwarding state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 28.988419] br-LAN2: port 1(wlan0-1) entered blocking state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 28.994059] br-LAN2: port 1(wlan0-1) entered disabled state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.000566] device wlan0-1 entered promiscuous mode
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.007210] br-LAN2: port 1(wlan0-1) entered blocking state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.012866] br-LAN2: port 1(wlan0-1) entered forwarding state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.019281] IPv6: ADDRCONF(NETDEV_CHANGE): br-LAN2: link becomes ready
Wed Apr 7 20:34:49 2021 daemon.notice netifd: bridge 'br-LAN2' link is up
Wed Apr 7 20:34:49 2021 daemon.notice netifd: Interface 'LAN2' has link connectivity
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.148341] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.171505] br-LAN3: port 1(wlan0-2) entered blocking state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.177204] br-LAN3: port 1(wlan0-2) entered disabled state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.183672] device wlan0-2 entered promiscuous mode
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.190430] br-LAN3: port 1(wlan0-2) entered blocking state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.196101] br-LAN3: port 1(wlan0-2) entered forwarding state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.202533] IPv6: ADDRCONF(NETDEV_CHANGE): br-LAN3: link becomes ready
Wed Apr 7 20:34:49 2021 daemon.notice netifd: bridge 'br-LAN3' link is up
Wed Apr 7 20:34:49 2021 daemon.notice netifd: Interface 'LAN3' has link connectivity
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.284355] mt7530 mdio-bus:1f lan1: Link is Down
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.289583] br-lan: port 1(lan1) entered disabled state
Wed Apr 7 20:34:49 2021 daemon.notice netifd: Network device 'lan1' link is down
Wed Apr 7 20:34:49 2021 daemon.err odhcpd[2327]: Failed to send to ff02::1%lan@br-lan (Address not available)
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.334216] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-2: link becomes ready
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.361794] br-LAN4: port 1(wlan0-3) entered blocking state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.367466] br-LAN4: port 1(wlan0-3) entered disabled state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.373959] device wlan0-3 entered promiscuous mode
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.385784] br-LAN4: port 1(wlan0-3) entered blocking state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.391439] br-LAN4: port 1(wlan0-3) entered forwarding state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.398871] IPv6: ADDRCONF(NETDEV_CHANGE): br-LAN4: link becomes ready
Wed Apr 7 20:34:49 2021 daemon.notice netifd: bridge 'br-LAN4' link is up
Wed Apr 7 20:34:49 2021 daemon.notice netifd: Interface 'LAN4' has link connectivity
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.547363] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-3: link becomes ready
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.568049] br-LAN5: port 1(wlan0-4) entered blocking state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.573776] br-LAN5: port 1(wlan0-4) entered disabled state
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.581840] device wlan0-4 entered promiscuous mode
Wed Apr 7 20:34:49 2021 daemon.err hostapd: Could not set interface wlan0-4 flags (UP): Resource busy
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.614460] device wlan0-4 left promiscuous mode
Wed Apr 7 20:34:49 2021 kern.info kernel: [ 29.619259] br-LAN5: port 1(wlan0-4) entered disabled state
Wed Apr 7 20:34:50 2021 daemon.err hostapd: Failed to add BSS (BSSID=5e:64:2b:1a:b0:0d)
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 29.767788] br-LAN4: port 1(wlan0-3) entered disabled state
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 29.776220] device wlan0-3 left promiscuous mode
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 29.780977] br-LAN4: port 1(wlan0-3) entered disabled state
Wed Apr 7 20:34:50 2021 daemon.notice netifd: bridge 'br-LAN4' link is down
Wed Apr 7 20:34:50 2021 daemon.notice netifd: Interface 'LAN4' has link connectivity loss
Wed Apr 7 20:34:50 2021 daemon.notice netifd: wan (3137): udhcpc: sending select for 192.168.100.6
Wed Apr 7 20:34:50 2021 daemon.notice netifd: wan (3137): udhcpc: lease of 192.168.100.6 obtained, lease time 86400
Wed Apr 7 20:34:50 2021 user.notice vpnbypass [3749]: service monitoring interfaces:
Wed Apr 7 20:34:50 2021 daemon.notice hostapd: nl80211: Failed to remove interface wlan0-3 from bridge br-LAN4: No such device
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 30.115191] br-LAN3: port 1(wlan0-2) entered disabled state
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 30.124225] device wlan0-2 left promiscuous mode
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 30.129017] br-LAN3: port 1(wlan0-2) entered disabled state
Wed Apr 7 20:34:50 2021 daemon.notice netifd: bridge 'br-LAN3' link is down
Wed Apr 7 20:34:50 2021 daemon.notice netifd: Interface 'LAN3' has link connectivity loss
Wed Apr 7 20:34:50 2021 user.notice firewall: Reloading firewall due to ifup of LAN3 (br-LAN3)
Wed Apr 7 20:34:50 2021 daemon.notice netifd: Interface 'wan' is now up
Wed Apr 7 20:34:50 2021 daemon.notice hostapd: nl80211: Failed to remove interface wlan0-2 from bridge br-LAN3: No such device
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 30.434492] br-LAN2: port 1(wlan0-1) entered disabled state
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 30.442355] device wlan0-1 left promiscuous mode
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 30.447224] br-LAN2: port 1(wlan0-1) entered disabled state
Wed Apr 7 20:34:50 2021 daemon.notice netifd: bridge 'br-LAN2' link is down
Wed Apr 7 20:34:50 2021 daemon.notice netifd: Interface 'LAN2' has link connectivity loss
Wed Apr 7 20:34:50 2021 daemon.notice hostapd: nl80211: Failed to remove interface wlan0-1 from bridge br-LAN2: No such device
Wed Apr 7 20:34:50 2021 daemon.err hostapd: Interface initialization failed
Wed Apr 7 20:34:50 2021 daemon.notice hostapd: wlan0: interface state COUNTRY_UPDATE->DISABLED
Wed Apr 7 20:34:50 2021 daemon.notice hostapd: wlan0: AP-DISABLED
Wed Apr 7 20:34:50 2021 daemon.err hostapd: wlan0: Unable to setup interface.
Wed Apr 7 20:34:50 2021 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 30.711087] device wlan0 left promiscuous mode
Wed Apr 7 20:34:50 2021 kern.info kernel: [ 30.716115] br-lan: port 3(wlan0) entered disabled state
Wed Apr 7 20:34:51 2021 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
Wed Apr 7 20:34:51 2021 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
Wed Apr 7 20:34:51 2021 daemon.notice hostapd: wlan0-1: CTRL-EVENT-TERMINATING
Wed Apr 7 20:34:51 2021 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0-1 wasn't started
Wed Apr 7 20:34:51 2021 daemon.notice hostapd: wlan0-2: CTRL-EVENT-TERMINATING
Wed Apr 7 20:34:51 2021 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0-2 wasn't started
Wed Apr 7 20:34:51 2021 daemon.notice hostapd: wlan0-3: CTRL-EVENT-TERMINATING
Wed Apr 7 20:34:51 2021 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0-3 wasn't started
Wed Apr 7 20:34:51 2021 daemon.notice hostapd: wlan0-4: CTRL-EVENT-TERMINATING
Wed Apr 7 20:34:51 2021 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0-4 wasn't started
Wed Apr 7 20:34:51 2021 daemon.notice hostapd: netlink: recvfrom failed: No buffer space available
Wed Apr 7 20:34:51 2021 daemon.notice netifd: radio0 (2134): Command failed: Invalid argument
Wed Apr 7 20:34:51 2021 daemon.notice netifd: radio0 (2134): Device setup failed: HOSTAPD_START_FAILED
Wed Apr 7 20:34:51 2021 daemon.notice netifd: bridge 'br-lan' link is down
Wed Apr 7 20:34:51 2021 daemon.notice netifd: Interface 'lan' has link connectivity loss
Wed Apr 7 20:34:51 2021 daemon.notice ksmbd: Starting Ksmbd userspace service.
Wed Apr 7 20:34:51 2021 kern.info kernel: [ 31.444871] mt7530 mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control off
Wed Apr 7 20:34:51 2021 kern.info kernel: [ 31.452355] br-lan: port 1(lan1) entered blocking state
Wed Apr 7 20:34:51 2021 kern.info kernel: [ 31.457744] br-lan: port 1(lan1) entered forwarding state
Wed Apr 7 20:34:51 2021 daemon.notice netifd: Network device 'lan1' link is up
Wed Apr 7 20:34:51 2021 daemon.notice netifd: bridge 'br-lan' link is up
Wed Apr 7 20:34:51 2021 daemon.notice netifd: Interface 'lan' has link connectivity
Wed Apr 7 20:34:51 2021 user.notice firewall: Reloading firewall due to ifup of LAN4 (br-LAN4)
Wed Apr 7 20:34:53 2021 user.notice firewall: Reloading firewall due to ifup of LAN5 (br-LAN5)
Wed Apr 7 20:34:53 2021 daemon.info procd: - init complete -
Wed Apr 7 20:34:53 2021 user.info wsdd2[4991]: starting.
Wed Apr 7 20:34:53 2021 user.err wsdd2[4991]: error: wsdd-mcast-v4: wsd_send_soap_msg: send: Operation not permitted
Wed Apr 7 20:34:54 2021 user.notice firewall: Reloading firewall due to ifup of wan (wan)
Wed Apr 7 20:34:55 2021 user.notice ddns-scripts[5204]: myddns_ipv4: PID '5204' started at 2021-04-07 20:34
Wed Apr 7 20:34:55 2021 user.warn ddns-scripts[5204]: myddns_ipv4: Service section disabled! - TERMINATE
Wed Apr 7 20:34:55 2021 user.warn ddns-scripts[5204]: myddns_ipv4: PID '5204' exit WITH ERROR '1' at 2021-04-07 20:34
Wed Apr 7 20:36:09 2021 daemon.info dnsmasq[5432]: Connected to system UBus
Wed Apr 7 20:36:09 2021 daemon.info dnsmasq[5432]: started, version 2.84 cachesize 150
Wed Apr 7 20:36:09 2021 daemon.info dnsmasq[5432]: DNS service limited to local subnets
Wed Apr 7 20:36:09 2021 daemon.info dnsmasq[5432]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Wed Apr 7 20:36:09 2021 daemon.info dnsmasq[5432]: UBus support enabled: connected to system bus
Wed Apr 7 20:36:09 2021 daemon.info dnsmasq-dhcp[5432]: DHCP, IP range 10.0.5.100 -- 10.0.5.249, lease time 2h
Wed Apr 7 20:36:09 2021 daemon.info dnsmasq-dhcp[5432]: DHCP, IP range 10.0.4.100 -- 10.0.4.249, lease time 2h
Wed Apr 7 20:36:09 2021 daemon.info dnsmasq-dhcp[5432]: DHCP, IP range 10.0.3.100 -- 10.0.3.249, lease time 2h
Wed Apr 7 20:36:09 2021 daemon.info dnsmasq-dhcp[5432]: DHCP, IP range 10.0.2.100 -- 10.0.2.249, lease time 2h
Wed Apr 7 20:36:09 2021 daemon.info dnsmasq-dhcp[5432]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Router to Xiaomi 3Gv1
Czy to znaczy że on nie wydala ?