WNIOSEK3.
Sam iptv działa dobrze, problemy zaczynają się gdy jest jeszcze sieć nietagowana.
W tej chwili na routerze mam
- net z nietagowanej
- iptv

Z routera NIE mogę pingować podsieci iptv.
Sprawdzę jeszcze jak będzie gdy będzie tylko vlan350 i vlan400.

WNIOSEK 2. Dostęp do netu (sieć nietagowana) mam poprzez adres MAC,
jeśli jest poprawny trafiam do podsieci 213.x.x.x
jeśli niepoprawny trafiam do podsieci 10.x.x.x
być może to powoduje problemy.

Zrobiłem wszystko od podstaw
wyszedłem od defaultowej, potem dołożyłem tylko vlan350, itdp.
ogólnie następujące wnioski:
WNIOSEK 1. potwierdzam to już pewność że kolejność w 'network' ma znaczenie
ostatnie dwie sekcje jeśli mam tak jest

config 'switch_vlan'
    option 'device' 'rtl8366rb'
    option 'vlan' '350'
    option 'ports' '0t 4 5t'

config 'switch_vlan'
    option 'device' 'rtl8366rb'
    option 'vlan' '2'
    option 'ports' '0 5t'

to są obie sieci,

Jeśli zamienię sekcje mam tylko vlan350

Kurcze będę dziś w rozjazdach i wrócę do tematu dopiero pod wieczór.
Sugestię z ostatniego posta, wypróbuje wieczorem.

Fakt ze po zmianie 'network' (post 21) coś się stało z eth0.2
i przestał dostawać ip i nie miałem wtedy internetu.

Faktem też jest że 'route -n' trzy razy wyglądał inaczej.
choć pierwszy był przed zmianą 'network'.

Zresztą zauważyłem wcześniej dziwną rzecz,
wydawało mi się że kolejność wpisów w 'network' (dla vlanów)
miała znaczenie, i podczas porządków (wyłącznie w kolejności)
ifconfig potrafił wyglądać po restartach różnie (np. nie było vlan350 i vlan400).

Odezwę się wieczorem po próbie i podeśle wyniki oraz route -n.
Pozdrawiam!

Dobra uciekam, jutro od rana podejmę dalszą walkę i się odezwę.
Jak będzie potrzeba będę dalej podsyłać.
Dzięki za zaangażowanie.
Pozdrawiam!

to jeszcze bez getway'a

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.lan=interface
network.lan.ifname=eth0.1
network.lan.type=bridge
network.lan.proto=static
network.lan.netmask=255.255.255.0
network.lan.ipaddr=192.168.10.1
network.wan=interface
network.wan.ifname=eth0.2
network.wan.proto=dhcp
network.vlan400=interface
network.vlan400.ifname=eth0.400
network.vlan400.proto=dhcp
network.vlan350=interface
network.vlan350.ifname=eth0.350
network.vlan350.proto=dhcp
network.@switch[0]=switch
network.@switch[0].name=rtl8366rb
network.@switch[0].reset=1
network.@switch[0].enable_vlan=1
network.@switch[0].enable_vlan4k=1
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device=rtl8366rb
network.@switch_vlan[0].vlan=1
network.@switch_vlan[0].ports=1 2 3 5t
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device=rtl8366rb
network.@switch_vlan[1].vlan=2
network.@switch_vlan[1].ports=0 5t
network.@switch_vlan[2]=switch_vlan
network.@switch_vlan[2].device=rtl8366rb
network.@switch_vlan[2].vlan=350
network.@switch_vlan[2].ports=0t 4 5t
network.@switch_vlan[3]=switch_vlan
network.@switch_vlan[3].device=rtl8366rb
network.@switch_vlan[3].vlan=400
network.@switch_vlan[3].ports=0t 5t
root@OpenWrt:~# uci show dhcp
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].rebind_protection=1
dhcp.@dnsmasq[0].rebind_localhost=1
dhcp.@dnsmasq[0].local=/lan/
dhcp.@dnsmasq[0].domain=lan
dhcp.@dnsmasq[0].expandhosts=1
dhcp.@dnsmasq[0].nonegcache=0
dhcp.@dnsmasq[0].authoritative=1
dhcp.@dnsmasq[0].readethers=1
dhcp.@dnsmasq[0].leasefile=/tmp/dhcp.leases
dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto
dhcp.lan=dhcp
dhcp.lan.interface=lan
dhcp.lan.start=100
dhcp.lan.limit=150
dhcp.lan.leasetime=12h
dhcp.wan=dhcp
dhcp.wan.interface=wan
dhcp.wan.ignore=1
dhcp.vlan350=dhcp
dhcp.vlan350.interface=vlan350
dhcp.vlan350.ignore=1
dhcp.vlan400=dhcp
dhcp.vlan400.interface=vlan400
dhcp.vlan400.ignore=1

Co do konfiguracji 'network' jest różnica w 2 miejscach
nie mam "option 'gateway' '0.0.0.0'" ale zaraz dodam i sprawdzę,
i nie mam

config 'switch_vlan'
    option 'device' 'rtl8366rb'
    option 'vlan' '350'
    option 'ports' '0t 4t 5t'

tylko

config 'switch_vlan'
    option 'device' 'rtl8366rb'
    option 'vlan' '350'
    option 'ports' '0t 4 5t'

ale tak ma być bo na 4 musze mieć untagged

rpc napisał/a:

ok teraz vlan jest ok. I są poprawnie ustawione
co było że poprzednio miałeś vlan4000 i vlan3500 źle przepisałeś czy co ?

Tak coś popieprzyłem sam nie wiem, przepraszam za zamieszanie, te swconfig są już poprawne.

działam na wersji Backfire (10.03.1, r29592)

root@OpenWrt:~# cat /proc/net/vlan/config
VLAN Dev name    | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.1         | 1  | eth0
eth0.2         | 2  | eth0
eth0.350       | 350  | eth0
eth0.400       | 400  | eth0

jeszcze raz swconfig'i :

root@OpenWrt:~# swconfig dev rtl8366rb vlan 1 show
VLAN 1:
        info: VLAN 1: Ports: '1235t', members=002e, untag=000e, fid=0
        fid: 0
        ports: 1 2 3 5t
root@OpenWrt:~# swconfig dev rtl8366rb vlan 2 show
VLAN 2:
        info: VLAN 2: Ports: '05t', members=0021, untag=0001, fid=0
        fid: 0
        ports: 0 5t
root@OpenWrt:~# swconfig dev rtl8366rb vlan 400 show
VLAN 400:
        info: VLAN 400: Ports: '0t5t', members=0021, untag=0000, fid=0
        fid: 0
        ports: 0t 5t
root@OpenWrt:~# swconfig dev rtl8366rb vlan 350 show
VLAN 350:
        info: VLAN 350: Ports: '0t45t', members=0031, untag=0010, fid=0
        fid: 0
        ports: 0t 4 5t

Dziwne po kolejnym restarcie (wcześniej także restartowałem po każdej zmianie)
mam inne wartości dla route -n

root@OpenWrt:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 br-lan
172.18.15.0     0.0.0.0         255.255.254.0   U     0      0        0 eth0.350
172.14.18.0     0.0.0.0         255.255.252.0   U     0      0        0 eth0.400
0.0.0.0         172.14.18.2     0.0.0.0         UG    0      0        0 eth0.400
rpc napisał/a:

dobrze by było zwrócić uwagę aby nie było dwóch tras domyślnych w routingu

Hmm, nie bardzo wiem jak to sprawdzić

Chain PREROUTING (policy ACCEPT 122 packets, 21677 bytes)
 pkts bytes target     prot opt in     out     source               destination         
  967  147K prerouting_rule  all  --  any    any     anywhere             anywhere            
   16  1761 zone_lan_prerouting  all  --  br-lan any     anywhere             anywhere            
   10   280 zone_vlan350_prerouting  all  --  eth0.350 any     anywhere             anywhere            

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
  515 46672 postrouting_rule  all  --  any    any     anywhere             anywhere            
    0     0 zone_lan_nat  all  --  any    br-lan  anywhere             anywhere            
  147 11393 zone_vlan350_nat  all  --  any    eth0.350  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT 136 packets, 10286 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain nat_reflection_in (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain nat_reflection_out (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain postrouting_rule (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  515 46672 nat_reflection_out  all  --  any    any     anywhere             anywhere            

Chain prerouting_lan (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain prerouting_rule (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  961  146K nat_reflection_in  all  --  any    any     anywhere             anywhere            

Chain prerouting_wan (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain prerouting_vlan350 (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain zone_lan_nat (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain zone_lan_prerouting (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  260 49864 prerouting_lan  all  --  any    any     anywhere             anywhere            

Chain zone_vlan350_nat (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  147 11393 MASQUERADE  all  --  any    any     anywhere             anywhere            

Chain zone_vlan350_prerouting (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  439 42389 prerouting_vlan350  all  --  any    any     anywhere             anywhere            

Chain zone_wan_nat (0 references)
 pkts bytes target     prot opt in     out     source               destination         
  353 33437 MASQUERADE  all  --  any    any     anywhere             anywhere            

Chain zone_wan_prerouting (0 references)
 pkts bytes target     prot opt in     out     source               destination         
  155 31587 prerouting_wan  all  --  any    any     anywhere             anywhere
Chain INPUT (policy ACCEPT 35 packets, 7092 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 DROP       all  --  any    any     anywhere             anywhere            state INVALID 
  633 70318 ACCEPT     all  --  any    any     anywhere             anywhere            state RELATED,ESTABLISHED 
    8   544 ACCEPT     all  --  lo     any     anywhere             anywhere            
    4   208 syn_flood  tcp  --  any    any     anywhere             anywhere            tcp flags:FIN,SYN,RST,ACK/SYN 
  663 79895 input_rule  all  --  any    any     anywhere             anywhere            
  663 79895 input      all  --  any    any     anywhere             anywhere            

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 DROP       all  --  any    any     anywhere             anywhere            state INVALID 
  126 50315 ACCEPT     all  --  any    any     anywhere             anywhere            state RELATED,ESTABLISHED 
  444 94265 forwarding_rule  all  --  any    any     anywhere             anywhere            
  444 94265 forward    all  --  any    any     anywhere             anywhere            
  190 62320 reject     all  --  any    any     anywhere             anywhere            

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 DROP       all  --  any    any     anywhere             anywhere            state INVALID 
  927  169K ACCEPT     all  --  any    any     anywhere             anywhere            state RELATED,ESTABLISHED 
    8   544 ACCEPT     all  --  any    lo      anywhere             anywhere            
  365 28807 output_rule  all  --  any    any     anywhere             anywhere            
  365 28807 output     all  --  any    any     anywhere             anywhere            

Chain forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         
   23  2004 zone_lan_forward  all  --  br-lan any     anywhere             anywhere            
    0     0 zone_vlan350_forward  all  --  eth0.350 any     anywhere             anywhere            

Chain forwarding_lan (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain forwarding_rule (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  444 94265 nat_reflection_fwd  all  --  any    any     anywhere             anywhere            

Chain forwarding_wan (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain forwarding_vlan350 (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain input (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    5   654 zone_lan   all  --  br-lan any     anywhere             anywhere            
    9   252 zone_vlan350  all  --  eth0.350 any     anywhere             anywhere            

Chain input_lan (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain input_rule (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain input_wan (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain input_vlan350 (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain nat_reflection_fwd (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain output (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  365 28807 zone_lan_ACCEPT  all  --  any    any     anywhere             anywhere            
  361 27485 zone_wan_ACCEPT  all  --  any    any     anywhere             anywhere            
  136 10286 zone_vlan350_ACCEPT  all  --  any    any     anywhere             anywhere            

Chain output_rule (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain reject (5 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 REJECT     tcp  --  any    any     anywhere             anywhere            reject-with tcp-reset 
  258 70437 REJECT     all  --  any    any     anywhere             anywhere            reject-with icmp-port-unreachable 

Chain syn_flood (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    4   208 RETURN     tcp  --  any    any     anywhere             anywhere            tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 25/sec burst 50 
    0     0 DROP       all  --  any    any     anywhere             anywhere            

Chain zone_lan (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  491 42151 input_lan  all  --  any    any     anywhere             anywhere            
  491 42151 zone_lan_ACCEPT  all  --  any    any     anywhere             anywhere            

Chain zone_lan_ACCEPT (2 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     all  --  any    br-lan  anywhere             anywhere            
    5   654 ACCEPT     all  --  br-lan any     anywhere             anywhere            

Chain zone_lan_DROP (0 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 DROP       all  --  any    br-lan  anywhere             anywhere            
    0     0 DROP       all  --  br-lan any     anywhere             anywhere            

Chain zone_lan_REJECT (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 reject     all  --  any    br-lan  anywhere             anywhere            
    0     0 reject     all  --  br-lan any     anywhere             anywhere            

Chain zone_lan_forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  254 31945 zone_vlan350_ACCEPT  all  --  any    any     anywhere             anywhere            
  231 29941 zone_wan_ACCEPT  all  --  any    any     anywhere             anywhere            
    0     0 forwarding_lan  all  --  any    any     anywhere             anywhere            
    0     0 zone_lan_REJECT  all  --  any    any     anywhere             anywhere            

Chain zone_wan (0 references)
 pkts bytes target     prot opt in     out     source               destination         
   68 22388 ACCEPT     udp  --  any    any     anywhere             anywhere            udp dpt:bootpc 
    0     0 ACCEPT     icmp --  any    any     anywhere             anywhere            icmp echo-request 
   44  7445 input_wan  all  --  any    any     anywhere             anywhere            
   44  7445 zone_wan_REJECT  all  --  any    any     anywhere             anywhere            

Chain zone_wan_ACCEPT (2 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain zone_wan_DROP (0 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain zone_wan_REJECT (2 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain zone_wan_forward (0 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 forwarding_wan  all  --  any    any     anywhere             anywhere            
    0     0 zone_wan_REJECT  all  --  any    any     anywhere             anywhere            

Chain zone_vlan350 (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     udp  --  any    any     anywhere             anywhere            udp dpt:bootpc 
    0     0 ACCEPT     icmp --  any    any     anywhere             anywhere            icmp echo-request 
   24   672 input_vlan350  all  --  any    any     anywhere             anywhere            
   24   672 zone_vlan350_REJECT  all  --  any    any     anywhere             anywhere            

Chain zone_vlan350_ACCEPT (2 references)
 pkts bytes target     prot opt in     out     source               destination         
  155 11986 ACCEPT     all  --  any    eth0.350  anywhere             anywhere            
    0     0 ACCEPT     all  --  eth0.350 any     anywhere             anywhere            

Chain zone_vlan350_DROP (0 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 DROP       all  --  any    eth0.350  anywhere             anywhere            
    0     0 DROP       all  --  eth0.350 any     anywhere             anywhere            

Chain zone_vlan350_REJECT (2 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 reject     all  --  any    eth0.350  anywhere             anywhere            
    9   252 reject     all  --  eth0.350 any     anywhere             anywhere            

Chain zone_vlan350_forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 forwarding_vlan350  all  --  any    any     anywhere             anywhere            
    0     0 zone_vlan350_REJECT  all  --  any    any     anywhere             anywhere            
root@OpenWrt:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 br-lan
172.18.15.0     0.0.0.0         255.255.254.0   U     0      0        0 eth0.350
172.14.18.0     0.0.0.0         255.255.252.0   U     0      0        0 eth0.400
0.0.0.0         172.18.15.1     0.0.0.0         UG    0      0        0 eth0.350

swconfig'i :

root@OpenWrt:~# swconfig dev rtl8366rb vlan 1 show
VLAN 1:
        info: VLAN 1: Ports: '1235t', members=002e, untag=000e, fid=0
        fid: 0
        ports: 1 2 3 5t
root@OpenWrt:~# swconfig dev rtl8366rb vlan 2 show
VLAN 2:
        info: VLAN 2: Ports: '05t', members=0021, untag=0001, fid=0
        fid: 0
        ports: 0 5t
root@OpenWrt:~# swconfig dev rtl8366rb vlan 400 show
VLAN 400:
        info: VLAN 400: Ports: '0t5t', members=0021, untag=0000, fid=0
        fid: 0
        ports: 0t 5t
root@OpenWrt:~# swconfig dev rtl8366rb vlan 350 show
VLAN 350:
        info: VLAN 350: Ports: '0t45t', members=0031, untag=0010, fid=0
        fid: 0
        ports: 0t 4 5t
rpc napisał/a:

no bo nie tak masz plik network jak chcesz na rysunku . Nie sprawdzałem go bo pisałeś że jest ok.

Ok, faktycznie miałem troszkę inaczej, ale zamysł był zachowany.
(w tej poprzedniej konfiguracji na port 4 dawałem wszystko co mam na WAN
a na port 2,3 nietagowany vlan350, a na port 1 tylko lan, jednym słowem
to co na rysunku było portem 4 u mnie było portem 2 i 3 a na 4 miałem wszystko to co na WAN).

Ale nie ważne, żeby już nie mieszać zrobiłem dokładnie tak jak napisałeś.
Dodałem także wpisy w dhcp dla vlan400.
Bez zmian, ifconfig taki sam. pingi tak samo się zachowują.
W kolejnych postach wklejam to o co prosiłeś.

Dziwne jest to że klient na porcie 2 i 3
może pingować sieć 172.18.15.x
a z routera nie mogę jej pingować.

rpc napisał/a:

no i co wprowadziłeś zmiany już ? masz tego nata ?

Wprowadziłem sugerowane zmiany. Dwa razy sprawdziłem.
Nadal nie działa.

Mam taki efekt jak pinguje z routera lub klienta Windows:
- lan 192.168.10.1,
- lan 192.168.10.105 końcówka na której siedzę z Windows
- vlan350 172.18.15.1
- vlan400 172.14.18.1
- wan 213.154.24.1

to odpowiadają mi pingi tylko z lan i wan

Jak podłączę się z klienta Windows bezpośrednio pod port 2 lub 3
wówczas jestem w podsieci 172.18.15.x
i odpowiadają mi pingi.

Próbowałem też:

config dhcp 'vlan350'
        option 'interface' 'vlan350'
        option 'ignore' '1'

Zamiast

config dhcp 'wan'
        option 'interface' 'vlan350'
        option 'ignore' '1'

bo miałem już wpis

config dhcp 'wan'
        option 'interface' 'wan'
        option 'ignore' '1'

i bałem że się gryzie,
ale to nic nie zmieniło.

Co jeszcze mam sprawdzić ? co ustawić ?

root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 54:E6:FC:1C:41:C4
          inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:403 errors:0 dropped:0 overruns:0 frame:0
          TX packets:89 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:34313 (33.5 KiB)  TX bytes:11524 (11.2 KiB)

eth0      Link encap:Ethernet  HWaddr 54:E6:FC:1C:41:C4
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:933 errors:0 dropped:0 overruns:92754 frame:0
          TX packets:415 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:86968 (84.9 KiB)  TX bytes:45900 (44.8 KiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr 54:E6:FC:1C:41:C4
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:341 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:33982 (33.1 KiB)

eth0.2    Link encap:Ethernet  HWaddr 54:E6:FC:1C:41:C4
          inet addr:213.154.24.43  Bcast:213.154.24.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:536 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:32666 (31.9 KiB)  TX bytes:2085 (2.0 KiB)

eth0.350 Link encap:Ethernet  HWaddr 54:E6:FC:1C:41:C4
          inet addr:172.18.15.29  Bcast:172.18.15.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1549 (1.5 KiB)  TX bytes:1636 (1.5 KiB)

eth0.400 Link encap:Ethernet  HWaddr 54:E6:FC:1C:41:C4
          inet addr:172.14.18.165  Bcast:172.14.18.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:330 errors:0 dropped:0 overruns:0 frame:0
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:37029 (36.1 KiB)  TX bytes:6748 (6.5 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3426 (3.3 KiB)  TX bytes:3426 (3.3 KiB)

mon.wlan0 Link encap:UNSPEC  HWaddr 54-E6-FC-1C-41-C4-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6274 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:1206595 (1.1 MiB)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 54:E6:FC:1C:41:C4
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:406 errors:0 dropped:0 overruns:0 frame:0
          TX packets:421 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:40279 (39.3 KiB)  TX bytes:50998 (49.8 KiB)

route -n

213.154.24.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0.2
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 br-lan
172.14.18.0    0.0.0.0         255.255.254.0   U     0      0        0 eth0.400
172.18.15.0     0.0.0.0         255.255.252.0   U     0      0        0 eth0.350
0.0.0.0         172.14.18.1    0.0.0.0         UG    0      0        0 eth0.400
rpc napisał/a:

cat /etc/firewall.user

Jest powyżej, ale wklejam jeszcze raz

root@OpenWrt:~# vi /etc/firewall.user
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.
root@OpenWrt:~# cat /etc/firewall_user
cat: can't open '/etc/firewall_user': No such file or directory
root@OpenWrt:~# vi /etc/firewall.user
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.