Dziękuję Wam za odpowiedzi - wiele mi pomogły.
Postanowiłem jednak dać szansę Wirguardowi - zwłaszcza, że podobno potrzebuje mniej zasobów i jest bardziej wydajny.
Zabrałem się również za konfigurację vlan i firewalla w openwrt.
Dla przypomnienia:
vlan 10: kamery (bez dostępu do internetu)
vlan 20: IoT wybiórczy dostęp do internetu (konkretne adresy i porty) - w trakcie
vlan 30: sieć normalna kliencka
wg0 - wireguard, on ma mieć dostęp tylko do vlan10 (jeśli da się jeszcze ustawić reguły dostępu na poszczególne porty, adresy - super)
Vlan 10 - na wszystkich 4 portach switcha, nietagowany, dodany do zony camzone
vlan 20 - na wifi jako odrębne ssid (w trakcie)
vlan 30 - na wifi odrębne ssid, umieszczony w zonie lan
Mam pewien problem ze zrozumieniem, a co za tym idzie wycięciem ruchu.
Na chwilę obecną wszystko ze sobą rozmawia tzn. z jednego vlanu mogę dostać sie do drugiego itd. Jedyne co - w jakiś sposób udało mi się wyciąc ruch do internetu w vlan10 (co jest ok, ale nie wiem czy do końca zrobione zgodnie ze sztuką.
Ze wsząd mogę się też dostać na router - to tez chciałbym ograniczyć tylko do jednego adresu.
Czy mógłbym prosic o zerknięcie na konfig i wskazówki czy jest to dobrze skonfigurowane i jak dalej skonfigurowac?
root@OpenWrt:~# uci show firewall
firewall.@defaults[0]=defaults
firewall.@defaults[0].input='ACCEPT'
firewall.@defaults[0].output='ACCEPT'
firewall.@defaults[0].forward='REJECT'
firewall.@defaults[0].synflood_protect='1'
firewall.@zone[0]=zone
firewall.@zone[0].name='lan'
firewall.@zone[0].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[0].network='Wifi_plac'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
firewall.@zone[1].input='REJECT'
firewall.@zone[1].output='ACCEPT'
firewall.@zone[1].forward='REJECT'
firewall.@zone[1].masq='1'
firewall.@zone[1].mtu_fix='1'
firewall.@zone[1].network='wan'
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src='lan'
firewall.@forwarding[0].dest='wan'
firewall.@rule[0]=rule
firewall.@rule[0].name='Allow-DHCP-Renew'
firewall.@rule[0].src='wan'
firewall.@rule[0].proto='udp'
firewall.@rule[0].dest_port='68'
firewall.@rule[0].target='ACCEPT'
firewall.@rule[0].family='ipv4'
firewall.@rule[1]=rule
firewall.@rule[1].name='Allow-Ping'
firewall.@rule[1].src='wan'
firewall.@rule[1].proto='icmp'
firewall.@rule[1].icmp_type='echo-request'
firewall.@rule[1].family='ipv4'
firewall.@rule[1].target='ACCEPT'
firewall.@rule[2]=rule
firewall.@rule[2].name='Allow-IGMP'
firewall.@rule[2].src='wan'
firewall.@rule[2].proto='igmp'
firewall.@rule[2].family='ipv4'
firewall.@rule[2].target='ACCEPT'
firewall.@rule[3]=rule
firewall.@rule[3].name='Allow-DHCPv6'
firewall.@rule[3].src='wan'
firewall.@rule[3].proto='udp'
firewall.@rule[3].src_ip='fc00::/6'
firewall.@rule[3].dest_ip='fc00::/6'
firewall.@rule[3].dest_port='546'
firewall.@rule[3].family='ipv6'
firewall.@rule[3].target='ACCEPT'
firewall.@rule[3].enabled='0'
firewall.@rule[4]=rule
firewall.@rule[4].name='Allow-MLD'
firewall.@rule[4].src='wan'
firewall.@rule[4].proto='icmp'
firewall.@rule[4].src_ip='fe80::/10'
firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0'
firewall.@rule[4].family='ipv6'
firewall.@rule[4].target='ACCEPT'
firewall.@rule[4].enabled='0'
firewall.@rule[5]=rule
firewall.@rule[5].name='Allow-ICMPv6-Input'
firewall.@rule[5].src='wan'
firewall.@rule[5].proto='icmp'
firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement'
firewall.@rule[5].limit='1000/sec'
firewall.@rule[5].family='ipv6'
firewall.@rule[5].target='ACCEPT'
firewall.@rule[5].enabled='0'
firewall.@rule[6]=rule
firewall.@rule[6].name='Allow-ICMPv6-Forward'
firewall.@rule[6].src='wan'
firewall.@rule[6].dest='*'
firewall.@rule[6].proto='icmp'
firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type'
firewall.@rule[6].limit='1000/sec'
firewall.@rule[6].family='ipv6'
firewall.@rule[6].target='ACCEPT'
firewall.@rule[6].enabled='0'
firewall.@rule[7]=rule
firewall.@rule[7].name='Allow-IPSec-ESP'
firewall.@rule[7].src='wan'
firewall.@rule[7].dest='lan'
firewall.@rule[7].proto='esp'
firewall.@rule[7].target='ACCEPT'
firewall.@rule[7].enabled='0'
firewall.@rule[8]=rule
firewall.@rule[8].name='Allow-ISAKMP'
firewall.@rule[8].src='wan'
firewall.@rule[8].dest='lan'
firewall.@rule[8].dest_port='500'
firewall.@rule[8].proto='udp'
firewall.@rule[8].target='ACCEPT'
firewall.@rule[8].enabled='0'
firewall.@include[0]=include
firewall.@include[0].path='/etc/firewall.user'
firewall.@zone[2]=zone
firewall.@zone[2].name='camzone'
firewall.@zone[2].input='ACCEPT'
firewall.@zone[2].forward='REJECT'
firewall.@zone[2].network='Cam'
firewall.@zone[2].output='ACCEPT'
firewall.@rule[9]=rule
firewall.@rule[9].src='*'
firewall.@rule[9].target='ACCEPT'
firewall.@rule[9].proto='udp'
firewall.@rule[9].dest_port='24258'
firewall.@rule[9].name='Allow-Wireguard-Inbound'
firewall.@zone[3]=zone
firewall.@zone[3].name='vpnzone'
firewall.@zone[3].input='ACCEPT'
firewall.@zone[3].output='ACCEPT'
firewall.@zone[3].network='wg0'
firewall.@zone[3].forward='ACCEPT'
firewall.@forwarding[1]=forwarding
firewall.@forwarding[1].dest='wan'
firewall.@forwarding[1].src='vpnzone'
root@OpenWrt:~# uci show network
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.globals=globals
network.globals.ula_prefix='fdd5:f21d:426a::/48'
network.wan=interface
network.wan.ifname='eth1'
network.wan.proto='dhcp'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='2'
network.@switch_vlan[0].vid='10'
network.@switch_vlan[0].ports='0t 1 2 3 4'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='3'
network.@switch_vlan[1].ports='0t'
network.@switch_vlan[1].vid='20'
network.@switch_vlan[2]=switch_vlan
network.@switch_vlan[2].device='switch0'
network.@switch_vlan[2].vlan='4'
network.@switch_vlan[2].ports='0t'
network.@switch_vlan[2].vid='30'
network.Wifi_plac=interface
network.Wifi_plac.ifname='eth0.30'
network.Wifi_plac.proto='static'
network.Wifi_plac.netmask='255.255.255.0'
network.Wifi_plac.delegate='0'
network.Wifi_plac.ipaddr='192.168.30.1'
network.Wifi_plac.type='bridge'
network.Cam=interface
network.Cam.proto='static'
network.Cam.netmask='255.255.255.0'
network.Cam.delegate='0'
network.Cam.ipaddr='192.168.10.1'
network.Cam.ifname='eth0.10'
network.wg0=interface
network.wg0.proto='wireguard'
network.wg0.addresses='10.0.0.1/24'
network.wg0.delegate='0'
network.wg0.listen_port='333'
network.wg0.private_key='dd/tY4k4='
network.@wireguard_wg0[0]=wireguard_wg0
network.@wireguard_wg0[0].public_key='ddd='
network.@wireguard_wg0[0].description='eee'
network.@wireguard_wg0[0].allowed_ips='10.0.0.2/32'
network.@wireguard_wg0[0].route_allowed_ips='1'
network.@wireguard_wg0[0].persistent_keepalive='25'
Pozdrawiam