1

(19 odpowiedzi, napisanych Oprogramowanie / Software)

MrB, tak w konfiguracji na kliencie sie dodaje jakie ipki/sieci ma widziec dany klient.
W kazdym badz razie, presharedkey usuniety z configa serwera wireguard i gargoyle laczy sie bez problemu.
z edytowalem plik config/network config/firewall i usunalem z nich wszystko co bylo od wg. zaladowalem z gui gargoyle plik konfiguracyjny wygenerowany z wg-web i wszystko dziala. wszystkie kompy sie widza miedzy lokalizacjami smile i transfery sa takie jakie byc powinny czyli maks lacze przy minimalnym zuzyciu cpu smile
dziekuje wszystkim za pomoc.

2

(19 odpowiedzi, napisanych Oprogramowanie / Software)

w cliencie na gargoyle dodalem:

    list allowed_ips '192.168.1.0/24' <- to jest siec drugiej lokalizacji
    list allowed_ips '192.168.6.0/24' <- to jest siec klientow vpna

pingi z gargoyle do drugiej sieci ida:

oot@Gargoyle:~# ping 192.168.1.21
PING 192.168.1.21 (192.168.1.21): 56 data bytes
64 bytes from 192.168.1.21: seq=0 ttl=64 time=8.641 ms
64 bytes from 192.168.1.21: seq=1 ttl=64 time=9.138 ms

route'y sa poprawne jak mniemam:

root@Gargoyle:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         xxx1    0.0.0.0         UG    0      0        0 eth0.2
10.8.0.0        0.0.0.0         255.255.255.0   U     0      0        0 tun0
xxx0    0.0.0.0         255.255.255.0   U     0      0        0 eth0.2
xxx5    8xxxx.1    255.255.255.255 UGH   0      0        0 eth0.2
172.16.1.0      0.0.0.0         255.255.255.0   U     0      0        0 br-lan
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wg0
192.168.6.0     0.0.0.0         255.255.255.0   U     0      0        0 wg0
root@Gargoyle:~# ip route show
default via xxx dev eth0.2  src 8xxxx
10.8.0.0/24 dev tun0 scope link  src 10.8.0.1 
8xxxxx.0/24 dev eth0.2 scope link  src xxxx
8xxxx5 via xxx dev eth0.2 
172.16.1.0/24 dev br-lan scope link  src 172.16.1.1 
192.168.1.0/24 dev wg0 scope link 
192.168.6.0/24 dev wg0 scope link 
root@Gargoyle:~# 

telnet/nc przechodza z routera gargoyle:

root@Gargoyle:~# nc 192.168.1.21 9910
220 "Welcome to rpi"
^C

te same komendy na kompie wpietym do gargoyle router nie przechodza.

3

(19 odpowiedzi, napisanych Oprogramowanie / Software)

udalo sie polaczyc, wywalilem z konfiguracji serwera wireguard linijke presharedkey i poszlo. router gargoyle widzi sieci z drugiej lokalizacji, pingi i telnety na porty przechodza. niestety komputery za routerem gargoylem (czyli klientem wireguarda) nie widza (nie pinguja nie telnetuja) sieci z serwera wireguard.

4

(19 odpowiedzi, napisanych Oprogramowanie / Software)

ad2014 napisał/a:

Na tym gargoyle nie masz forward wg-wan  i wan -wg

Hm, ma to chyba sens.
czyli musialbym dodac cos takeigo:

config forwarding 'wg_wan_forwarding'
        option src 'wan'
        option dest 'wg'

config forwarding 'wan_wg_forwarding'
        option src 'wg'
        option dest 'wan'

?

5

(19 odpowiedzi, napisanych Oprogramowanie / Software)

MrB napisał/a:

Nijak bym tego S2S nie nazwał.

Konfiguracja serwera WG(ukryj klucze) bo dużo gadania a najważniejszej części nie ma.

A to jak nazywa sie tunel ktory spina dwie sieci lokalne w dwoch odleglych lokalizacjach w jedna? wink
Tu nie chodzi o config serwera bo ten jak mniemam jest dobry. Spialem inna lokalizacje gdzie klientem jest ubuntu i dziala.tu chodzi o to czemu klient na routerze gargoyle nie laczy sie i wpada w loopa z handshakami. Tam gdzie jest ten router gargoyle jest rowniez pc z windowsem.zainstalowalem tam klienta wireguard i spial sie bez problemu z site A rpi.

ponizej config serwera na rpi:

## Set Up WireGuard VPN on Ubuntu By Editing/Creating wg0.conf File ##
[Interface]
## My VPN server private IP address ##
Address = 192.168.6.1/24
 
## My VPN server port ##
ListenPort = 

PostUp = echo WireGuard PostUp iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

PostDown = echo WireGuard PostDown iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
 
## VPN server's private key i.e. /etc/wireguard/privatekey ##
PrivateKey =


[Peer]
PublicKey = 
PresharedKey = 
AllowedIPs = 192.168.6.2/32


[Peer]
PublicKey = 
PresharedKey = 
AllowedIPs = 192.168.6.3/32, 172.16.1.0/24

6

(19 odpowiedzi, napisanych Oprogramowanie / Software)

glownym problemem jest to ze router z gargoyle nie moze sie podpiac do serwera wireguard.
wyglada to tak:
1. lokalizacja A:
router z fresh tomato z siecia 192.168.1.0/24
do tego routera podpiete rpi z serwerem wireguard
2. lokalizacja B:
router gargoyle z siecia 172.16.1.0/24 z klientem wireguard.

osiagnac chce tunel site to site.

mam zrobiony tunel site to site przez openvpn miedzy tymi lokalizacjami ale transfery sa niezadowolajace.

7

(19 odpowiedzi, napisanych Oprogramowanie / Software)

MrB napisał/a:

config wireguard_wg0 'wgserver'
        option public_key 'xxx='
        list allowed_ips '192.168.1.0/24' < tutaj masz błąd
        option route_allowed_ips '1'
        option endpoint_host 'xxx'
        option endpoint_port 'xxx'

A to nie tak jest ze allowuje temu klientowi dostep do sieci 192.168.1.x?bo tak ma w sumie byc.wg Ciebie dac 172.16.1.0/24¿

8

(19 odpowiedzi, napisanych Oprogramowanie / Software)

wg z router gargoyle:

transfer: 0 B received, 2.89 KiB sent

wg z serwer wireguard:

 transfer: 2.89 KiB received, 1.80 KiB sent

jakby nie docieralo te 1.80KiB do klienta.

9

(19 odpowiedzi, napisanych Oprogramowanie / Software)

raczej napewno nie smile
zrobilem teraz tak ze wygenerowalem na gui gargoyle klucze. pomylilem sie specjalnie przy wpisywaniu tych kluczy w konfiguracji serwera,restart wireguard serwer. dostawalem:

Invalid handshake initiation from 89.2xxx

czyli poprawnie.

jak poprawilem klucze na serwerze wireguard i zrobilem restart (wkleilem te wygenerowane z gui gargoyle) to znowu jakby loop na handshake:

[  +2.238708] wireguard: wg0: Receiving handshake initiation from peer 95 (8xxxx5:51820)
[  +0.000040] wireguard: wg0: Sending handshake response to peer 95 (89xxxx5:51820)
[  +0.001266] wireguard: wg0: Keypair 1574 created for peer 95
[  +2.761728] wireguard: wg0: No peer has allowed IPs matching 239.255.255.250
[  +2.503523] wireguard: wg0: Receiving handshake initiation from peer 95 (8xxx35:51820)
[  +0.000052] wireguard: wg0: Sending handshake response to peer 95 (89xxxx5:51820)
[  +0.001810] wireguard: wg0: Keypair 1574 destroyed for peer 95
[  +0.000023] wireguard: wg0: Keypair 1575 created for peer 95
[  +2.510174] wireguard: wg0: No peer has allowed IPs matching 239.255.255.250
[  +3.247448] wireguard: wg0: Receiving handshake initiation from peer 95 (xxx5:51820)
[  +0.000028] wireguard: wg0: Sending handshake response to peer 95 (xx35:51820)

no i widac ze juz chyab ktos probuje sie dobic do vpna smile

No peer has allowed IPs matching 239.255.255.250

co moge sprawdzic? nie widze nic w logach.

zastanawia mnie jedna rzecz, jak wklepiemy wg na router gargoyle widac ze received jest 0. czy ten port ktory slucha po stronie gargoyle router powinien byc otwarty?

10

(19 odpowiedzi, napisanych Oprogramowanie / Software)

Cześć,
juz x godzin probuje to skonfigurowac. postawilem serwer wireguard u siebie w domu na raspberry. skonfigurowalem klientow, jeden to telefon drugi to router z gargoyle w drugiej lokalizacji. telefon dziala na configu od telefonu. telefon rowniez dziala na configu od drugiej lokalizacji. niestety przy wklejaniu configu do routera w drugiej lokalizacji ten pokazuje ze jest online ale niestety ciagle wysyla handshake;i:

[  +5.757296] wireguard: wg0: Receiving handshake initiation from peer 89 (89.23xxx:51820)
[  +0.000027] wireguard: wg0: Sending handshake response to peer 89 (89.230xxx:51820)
[  +0.000594] wireguard: wg0: Keypair 1568 destroyed for peer 89
[  +0.000008] wireguard: wg0: Keypair 1569 created for peer 89
[  +5.759732] wireguard: wg0: Receiving handshake initiation from peer 89 (89.2xxx235:51820)
[  +0.000027] wireguard: wg0: Sending handshake response to peer 89 (89.23xxx35:51820)
[  +0.000596] wireguard: wg0: Keypair 1569 destroyed for peer 89
[  +0.000008] wireguard: wg0: Keypair 1570 created for peer 89
[  +5.759343] wireguard: wg0: Receiving handshake initiation from peer 89 (89.2xxx235:51820)
[  +0.000028] wireguard: wg0: Sending handshake response to peer 89 (89.2xxx:51820)
[  +0.000607] wireguard: wg0: Keypair 1570 destroyed for peer 89

komenda wg z routera gargoyle:

root@Gargoyle:/etc/config# wg
interface: wg0
  public key: ciach
  private key: (hidden)
  listening port: 51820

peer: ciach
  endpoint: 89.231.xxxx:41194
  allowed ips: 192.168.1.0/24
  transfer: 0 B received, 5.78 KiB sent
komenda wg z serwera wireguard:
root@rpi:/etc/wireguard# wg
interface: wg0
  public key: xxxx
  private key: (hidden)
  listening port: 41194

peer: xxxx (to jest router gargoyle)
  preshared key: (hidden)
  endpoint: 89.2xxxxxx:51820
  allowed ips: 192.168.6.4/32
  latest handshake: 22 minutes, 39 seconds ago
  transfer: 24.14 KiB received, 64.27 KiB sent

peer: xxx (to jest telefon)
  preshared key: (hidden)
  endpoint: 37.47.2xx:4879
  allowed ips: 192.168.6.2/32
  latest handshake: 39 minutes, 39 seconds ago
  transfer: 199.72 KiB received, 913.50 KiB sent

ponizej konfigi z routera gargoyle (klient)

root@Gargoyle:/etc/config# cat firewall

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

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

config zone
        option name 'wan'
        list network 'wan'
        list network 'wan6'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'

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

config rule
        option name 'Allow-DHCP-Renew'
        option src 'wan'
        option proto 'udp'
        option dest_port '68'
        option target 'ACCEPT'
        option family 'ipv4'

config rule
        option name 'Allow-Ping'
        option src 'wan'
        option proto 'icmp'
        option icmp_type 'echo-request'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-IGMP'
        option src 'wan'
        option proto 'igmp'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-DHCPv6'
        option src 'wan'
        option proto 'udp'
        option src_ip 'fc00::/6'
        option dest_ip 'fc00::/6'
        option dest_port '546'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-MLD'
        option src 'wan'
        option proto 'icmp'
        option src_ip 'fe80::/10'
        list icmp_type '130/0'
        list icmp_type '131/0'
        list icmp_type '132/0'
        list icmp_type '143/0'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Input'
        option src 'wan'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        list icmp_type 'router-solicitation'
        list icmp_type 'neighbour-solicitation'
        list icmp_type 'router-advertisement'
        list icmp_type 'neighbour-advertisement'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Forward'
        option src 'wan'
        option dest '*'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-IPSec-ESP'
        option src 'wan'
        option dest 'lan'
        option proto 'esp'
        option target 'ACCEPT'

config rule
        option name 'Allow-ISAKMP'
        option src 'wan'
        option dest 'lan'
        option dest_port '500'
        option proto 'udp'
        option target 'ACCEPT'

config include
        option path '/etc/firewall.user'
        option reload '1'

config include
        option type 'script'
        option path '/usr/lib/gargoyle_firewall_util/gargoyle_additions.firewall'
        option family 'any'
        option reload '1'

config include 'wireguard_include_file'
        option path '/etc/wireguard.firewall'
        option reload '1'

config zone 'wg_zone'
        option name 'wg'
        option device 'wg0'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
        option mtu_fix '1'
        option masq '1'

config forwarding 'wg_lan_forwarding'
        option src 'lan'
        option dest 'wg'

config forwarding 'lan_wg_forwarding'
        option src 'wg'
        option dest 'lan'

config redirect 'redirect_enabled_number_0'
        option name 'ftp'
        option src 'wan'
        option dest 'lan'
        option family 'ipv4'
        option proto 'tcp'
        option src_dport '9988-9988'
        option dest_port '9988-9988'
        option dest_ip '172.16.1.10'

config redirect 'redirect_enabled_number_1'
        option name 'ftp'
        option src 'wan'
        option dest 'lan'
        option family 'ipv4'
        option proto 'udp'
        option src_dport '9988-9988'
        option dest_port '9988-9988'
        option dest_ip '172.16.1.10'
root@Gargoyle:/etc/config# cat network

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

config globals 'globals'
        option ula_prefix 'fd95:a904:84cf::/48'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth1.1'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '172.16.1.1'
        option ip6ifaceid '::1'
        option dns '1.1.1.1 '

config interface 'wan'
        option ifname 'eth0.2'
        option proto 'dhcp'
        option ipv6 '0'
        option dns '1.1.1.1'
        option peerdns '0'

config interface 'wan6'
        option ifname 'eth0.2'
        option proto 'none'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '1 2 3 4 0t'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '5 6t'

config interface 'wg0'
        option proto 'wireguard'
        option private_key 'xxxx'
        option listen_port '51820'
        list addresses '192.168.6.4/32'

config wireguard_wg0 'wgserver'
        option public_key 'xxx='
        list allowed_ips '192.168.1.0/24'
        option route_allowed_ips '1'
        option endpoint_host 'xxx'
        option endpoint_port 'xxx'

powtarzam, config wygenerowany dla router gargoyle na telefonie dziala. problem jest tylko klient gargoyle. co moge jeszcze sprawdzic? w tcpdump serwera widac ze komunikacja wpada poprawnie. jest jakby jakis problem z wymiana kluczy.

Zmieniłem na tej konfiguracji z eth0.3 na eth1.3 i poprostu zaczeło działać. Dziwne bo wcześniej na troche innej konfiguracji zmieniałem to samo i nie poszło - zmieniałem numerek pod lan. W każdym razie dziękuje wszystkim i mar_w za pomoc.

Przywróciłem z backupu ustawienia. Aktualnie WANA mam odłączonego. Skupiam się na uzyskaniu adresu ip z 192.168.2.x i nie potrafie tego uzyskać.

network:

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

config globals 'globals'
        option ula_prefix 'fd6a:127c:3e9d::/48'

config interface 'lan'
        option ifname 'eth1'
        option force_link '1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan'
        option ifname 'eth0'
        option proto 'dhcp'

config interface 'wan6'
        option ifname 'eth0'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'
        option mirror_source_port '0'
        option mirror_monitor_port '0'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option vid '1'
        option ports '0 2 3 4'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '5 6'
        option vid '2'

config switch_vlan
        option device 'switch0'
        option vlan '3'
        option vid '3'
        option ports '0t 1'

config interface 'vlan'
        option proto 'static'
        option ifname 'eth0.3'
        option ipaddr '192.168.2.1'
        option netmask '255.255.255.0'

dhcp

config dnsmasq
        option domainneeded '1'
        option boguspriv '1'
        option filterwin2k '0'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option nonegcache '0'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.auto'
        option localservice '1'
        list rebind_domain 'free.aero2.net.pl'

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'
        option dhcpv6 'server'
        option ra 'server'

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

config odhcpd 'odhcpd'
        option maindhcp '0'
        option leasefile '/tmp/hosts/odhcpd'
        option leasetrigger '/usr/sbin/odhcpd-update'

config dhcp 'vlan'
        option start '100'
        option leasetime '12h'
        option limit '150'
        option interface 'vlan'

firewal:

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'
        option network 'lan'

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

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

config rule
        option name 'Allow-DHCP-Renew'
        option src 'wan'
        option proto 'udp'
        option dest_port '68'
        option target 'ACCEPT'
        option family 'ipv4'

config rule
        option name 'Allow-Ping'
        option src 'wan'
        option proto 'icmp'
        option icmp_type 'echo-request'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-IGMP'
        option src 'wan'
        option proto 'igmp'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-DHCPv6'
        option src 'wan'
        option proto 'udp'
        option src_ip 'fe80::/10'
        option src_port '547'
        option dest_ip 'fe80::/10'
        option dest_port '546'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-MLD'
        option src 'wan'
        option proto 'icmp'
        option src_ip 'fe80::/10'
        list icmp_type '130/0'
        list icmp_type '131/0'
        list icmp_type '132/0'
        list icmp_type '143/0'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Input'
        option src 'wan'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        list icmp_type 'router-solicitation'
        list icmp_type 'neighbour-solicitation'
        list icmp_type 'router-advertisement'
        list icmp_type 'neighbour-advertisement'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Forward'
        option src 'wan'
        option dest '*'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'
config include
        option path '/etc/firewall.user'

config rule
        option src 'wan'
        option dest 'lan'
        option proto 'esp'
        option target 'ACCEPT'

config rule
        option src 'wan'
        option dest 'lan'
        option dest_port '500'
        option proto 'udp'
        option target 'ACCEPT'

config zone
        option name 'vlan'
        option input 'ACCEPT'
        option forward 'REJECT'
        option output 'ACCEPT'
        option network 'vlan'

config forwarding
        option dest 'wan'
        option src 'vlan'

Jestem pewny tego kabla pozatym sprawdzałem jeszcze na dwóch innych. Bardzo dziwnie to sie zachowuje, teraz 3 razy restartowałem router i na każdym z portów dostawałem prywatne ip mimo restartowania sieciówki itd. Zaraz koniec pracy, wezmę router do domu i będę walczył dalej. Może gargoyle wrzuce.. Pierwszy raz mam taki duży problem.

około godziny 15:08 podłączyłem dwa kompy jeden w jednego lana drugi w vlana:

AR8316 ag71xx-mdio.0:00: Port 4 is up
Thu Oct 13 14:57:26 2016 kern.info kernel: [  613.440000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 4 is down
Thu Oct 13 14:57:36 2016 kern.info kernel: [  623.490000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up
Thu Oct 13 14:57:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 14:57:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:57:50 2016 kern.info kernel: [  637.560000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is down
Thu Oct 13 14:57:51 2016 daemon.info dnsmasq-dhcp[3551]: DHCPREQUEST(br-lan) 192.168.3.212 20:cf:30:bb:75:56
Thu Oct 13 14:57:51 2016 daemon.info dnsmasq-dhcp[3551]: DHCPACK(br-lan) 192.168.3.212 20:cf:30:bb:75:56 WDF6
Thu Oct 13 14:57:52 2016 kern.info kernel: [  639.570000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 4 is up
Thu Oct 13 14:58:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 14:58:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:58:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 14:58:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:59:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 14:59:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:59:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 14:59:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:00:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:00:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:00:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:00:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:01:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:01:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:01:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:01:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:02:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:02:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:02:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:02:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:03:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:03:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:03:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:03:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:04:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:04:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:04:43 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:04:43 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:05:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:05:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:05:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:05:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:06:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:06:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:06:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:06:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:07:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:07:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:07:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:07:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:07:57 2016 kern.info kernel: [ 1244.580000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up
Thu Oct 13 15:08:01 2016 kern.info kernel: [ 1248.610000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is down
Thu Oct 13 15:08:03 2016 kern.info kernel: [ 1250.620000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up
Thu Oct 13 15:08:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:08:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:08:42 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:08:42 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:08:43 2016 authpriv.info dropbear[2268]: Exit (root): Keepalive timeout
Thu Oct 13 15:08:55 2016 kern.info kernel: [ 1302.870000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is down
Thu Oct 13 15:08:57 2016 kern.info kernel: [ 1304.880000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up
Thu Oct 13 15:08:59 2016 kern.info kernel: [ 1306.890000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is down
Thu Oct 13 15:09:01 2016 kern.info kernel: [ 1308.900000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up
Thu Oct 13 15:09:12 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:09:12 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 15:09:19 2016 kern.info kernel: [ 1326.990000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is down
Thu Oct 13 15:09:32 2016 authpriv.info dropbear[6092]: Child connection from 192.168.3.212:56808
Thu Oct 13 15:09:41 2016 authpriv.notice dropbear[6092]: Password auth succeeded for 'root' from 192.168.3.212:56808
Thu Oct 13 15:09:43 2016 daemon.notice netifd: wan (1712): Sending renew...
Thu Oct 13 15:09:43 2016 daemon.notice netifd: wan (1712): Lease of 192.168.1.194 obtained, lease time 60

Zmienilem adresacje sieci lan na 192.168.3.1, pewnie przestanie się gryźć z wanem. Gdy wpinam się na port 4 do tego vlana to dostaje dns'a od razu na 192.168.3.1 ale ip po pewnym czasie prywatne czyli 169... i nie wiem co dalej.

Czy ten mój eth0.3 w portach ma mieć połączenie z portem 0 czyli z cpu? jedyne co moge ustawić to tagowane bo nietagowane już jest przy jednym z vlanów.

tak restartowany byl kilkukrotnie bo czasami porty 1,2,3 nie dają netu i nie mozna sią nawet do routera podpiąć..

logread:

Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.490000] ehci-platform ehci-platform.0: TX-TX IDP fix enabled
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.500000] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.520000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.520000] hub 1-0:1.0: USB hub found
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.530000] hub 1-0:1.0: 1 port detected
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.530000] ehci-platform ehci-platform.1: EHCI Host Controller
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.540000] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.550000] ehci-platform ehci-platform.1: TX-TX IDP fix enabled
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.550000] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.580000] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.580000] hub 2-0:1.0: USB hub found
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.590000] hub 2-0:1.0: 1 port detected
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.590000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.600000] ohci-platform: OHCI generic platform driver
Thu Oct 13 14:20:00 2016 kern.info kernel: [    5.610000] usbcore: registered new interface driver usb-storage
Thu Oct 13 14:20:00 2016 user.info kernel: [    6.430000] init: - preinit -
Thu Oct 13 14:20:00 2016 kern.info kernel: [    6.980000] eth1: link up (1000Mbps/Full duplex)
Thu Oct 13 14:20:00 2016 kern.notice kernel: [    7.000000] random: procd urandom read with 11 bits of entropy available
Thu Oct 13 14:20:00 2016 user.info kernel: [   10.180000] mount_root: loading kmods from internal overlay
Thu Oct 13 14:20:00 2016 kern.notice kernel: [   10.540000] jffs2: notice: (421) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Thu Oct 13 14:20:00 2016 user.info kernel: [   10.560000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Thu Oct 13 14:20:00 2016 user.info kernel: [   10.570000] block: extroot: not configured
Thu Oct 13 14:20:00 2016 kern.notice kernel: [   10.660000] jffs2: notice: (417) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
Thu Oct 13 14:20:00 2016 user.info kernel: [   10.890000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
Thu Oct 13 14:20:00 2016 user.info kernel: [   10.910000] block: extroot: not configured
Thu Oct 13 14:20:00 2016 user.info kernel: [   10.910000] mount_root: switching to jffs2 overlay
Thu Oct 13 14:20:00 2016 kern.info kernel: [   10.950000] eth1: link down
Thu Oct 13 14:20:00 2016 user.info kernel: [   10.970000] procd: - early -
Thu Oct 13 14:20:00 2016 user.info kernel: [   10.970000] procd: - watchdog -
Thu Oct 13 14:20:00 2016 user.info kernel: [   11.730000] procd: - ubus -
Thu Oct 13 14:20:00 2016 user.info kernel: [   12.740000] procd: - init -
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.360000] NET: Registered protocol family 10
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.390000] gre: GRE over IPv4 demultiplexor driver
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.390000] ip_gre: GRE over IPv4 tunneling driver
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.400000] ip6_tables: (C) 2000-2006 Netfilter Core Team
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.430000] u32 classifier
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.440000]     input device check on
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.440000]     Actions configured
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.440000] Mirror/redirect action on
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.510000] fuse init (API version 7.23)
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.530000] usbcore: registered new interface driver cdc_acm
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.530000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.540000] usbcore: registered new interface driver cdc_wdm
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.550000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.560000] Backport generated by backports.git backports-20151218-0-g2f58d9d
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.590000] ip_tables: (C) 2000-2006 Netfilter Core Team
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.610000] nf_conntrack version 0.5.0 (953 buckets, 3812 max)
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.650000] usbcore: registered new interface driver usblp
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.670000] usbcore: registered new interface driver usbserial
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.680000] usbcore: registered new interface driver usbserial_generic
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.680000] usbserial: USB Serial support registered for generic
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.750000] xt_time: kernel timezone is -0000
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.760000] usbcore: registered new interface driver cdc_ether
Thu Oct 13 14:20:00 2016 kern.info kernel: [   14.770000] usbcore: registered new interface driver cdc_ncm
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.050000] usbcore: registered new interface driver huawei_cdc_ncm
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.100000] PPP generic driver version 2.4.2
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.110000] PPP MPPE Compression module registered
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.120000] NET: Registered protocol family 24
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.120000] PPTP driver version 0.8.5
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.130000] usbcore: registered new interface driver qmi_wwan
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.140000] usbcore: registered new interface driver rndis_host
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.150000] usbcore: registered new interface driver sierra
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.150000] usbserial: USB Serial support registered for Sierra USB modem
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.160000] usbcore: registered new interface driver sierra_net
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.200000] usbcore: registered new interface driver cdc_mbim
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.210000] usbcore: registered new interface driver option
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.220000] usbserial: USB Serial support registered for GSM modem (1-port)
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.230000] usbcore: registered new interface driver qcserial
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.230000] usbserial: USB Serial support registered for Qualcomm USB modem
Thu Oct 13 14:20:00 2016 kern.debug kernel: [   15.260000] ath: EEPROM regdomain: 0x0
Thu Oct 13 14:20:00 2016 kern.debug kernel: [   15.260000] ath: EEPROM indicates default country code should be used
Thu Oct 13 14:20:00 2016 kern.debug kernel: [   15.260000] ath: doing EEPROM country->regdmn map search
Thu Oct 13 14:20:00 2016 kern.debug kernel: [   15.260000] ath: country maps to regdmn code: 0x3a
Thu Oct 13 14:20:00 2016 kern.debug kernel: [   15.260000] ath: Country alpha2 being used: US
Thu Oct 13 14:20:00 2016 kern.debug kernel: [   15.260000] ath: Regpair used: 0x3a
Thu Oct 13 14:20:00 2016 kern.debug kernel: [   15.280000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Thu Oct 13 14:20:00 2016 kern.info kernel: [   15.280000] ieee80211 phy0: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47
Thu Oct 13 14:20:02 2016 user.emerg syslog: 'radio0' is disabled
Thu Oct 13 14:20:02 2016 user.emerg syslog: 'radio0' is disabled
Thu Oct 13 14:20:03 2016 user.emerg syslog: this file has been obseleted. please call "/sbin/block mount" directly
Thu Oct 13 14:20:03 2016 daemon.err block: /dev/mtdblock3 is already mounted
Thu Oct 13 14:20:05 2016 authpriv.info dropbear[1268]: Not backgrounding
Thu Oct 13 14:20:08 2016 kern.info kernel: [   24.990000] eth1: link up (1000Mbps/Full duplex)
Thu Oct 13 14:20:08 2016 kern.info kernel: [   25.000000] device eth1 entered promiscuous mode
Thu Oct 13 14:20:08 2016 kern.info kernel: [   25.000000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'lan' is enabled
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'lan' is setting up now
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'lan' is now up
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'loopback' is enabled
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'loopback' is setting up now
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'loopback' is now up
Thu Oct 13 14:20:08 2016 kern.info kernel: [   25.020000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'wan' is enabled
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'wan6' is enabled
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'vlan' is enabled
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'vlan' is setting up now
Thu Oct 13 14:20:08 2016 kern.info kernel: [   25.060000] IPv6: ADDRCONF(NETDEV_UP): eth0.3: link is not ready
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Interface 'vlan' is now up
Thu Oct 13 14:20:08 2016 daemon.notice netifd: Network device 'eth1' link is up
Thu Oct 13 14:20:09 2016 daemon.notice netifd: Network device 'lo' link is up
Thu Oct 13 14:20:09 2016 daemon.notice netifd: Interface 'loopback' has link connectivity
Thu Oct 13 14:20:09 2016 kern.info kernel: [   26.060000] br-lan: port 1(eth1) entered forwarding state
Thu Oct 13 14:20:09 2016 kern.info kernel: [   26.060000] br-lan: port 1(eth1) entered forwarding state
Thu Oct 13 14:20:09 2016 kern.info kernel: [   26.070000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Thu Oct 13 14:20:09 2016 daemon.notice netifd: Bridge 'br-lan' link is up
Thu Oct 13 14:20:09 2016 daemon.notice netifd: Interface 'lan' has link connectivity
Thu Oct 13 14:20:09 2016 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Thu Oct 13 14:20:10 2016 user.emerg syslog: setting up led USB
Thu Oct 13 14:20:10 2016 user.emerg syslog: setting up led WLAN
Thu Oct 13 14:20:10 2016 kern.info kernel: [   27.060000] eth0: link up (1000Mbps/Full duplex)
Thu Oct 13 14:20:10 2016 kern.info kernel: [   27.060000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Thu Oct 13 14:20:10 2016 daemon.notice netifd: Network device 'eth0' link is up
Thu Oct 13 14:20:10 2016 daemon.notice netifd: Interface 'wan' has link connectivity
Thu Oct 13 14:20:10 2016 daemon.notice netifd: Interface 'wan' is setting up now
Thu Oct 13 14:20:10 2016 daemon.notice netifd: Interface 'wan6' has link connectivity
Thu Oct 13 14:20:10 2016 daemon.notice netifd: Interface 'wan6' is setting up now
Thu Oct 13 14:20:10 2016 daemon.notice netifd: VLAN 'eth0.3' link is up
Thu Oct 13 14:20:10 2016 daemon.notice netifd: Interface 'vlan' has link connectivity
Thu Oct 13 14:20:10 2016 kern.info kernel: [   27.110000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.3: link becomes ready
Thu Oct 13 14:20:11 2016 daemon.notice netifd: wan (1721): udhcpc (v1.23.2) started
Thu Oct 13 14:20:11 2016 daemon.notice netifd: wan (1721): Sending discover...
Thu Oct 13 14:20:11 2016 daemon.notice netifd: wan (1721): Sending select for 192.168.1.194...
Thu Oct 13 14:20:11 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:20:11 2016 daemon.notice netifd: Interface 'wan' is now up
Thu Oct 13 14:20:11 2016 kern.info kernel: [   28.060000] br-lan: port 1(eth1) entered forwarding state
Thu Oct 13 14:20:11 2016 daemon.info procd: - init complete -
Thu Oct 13 14:20:12 2016 kern.info kernel: [   29.060000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 4 is up
Thu Oct 13 14:20:12 2016 kern.info kernel: [   29.060000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 5 is up
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq[1797]: started, version 2.73 cachesize 150
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq[1797]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq[1797]: DNS service limited to local subnets
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq-dhcp[1797]: DHCP, IP range 192.168.2.100 -- 192.168.2.249, lease time 12h
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq-dhcp[1797]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq[1797]: using local addresses only for domain lan
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq[1797]: reading /tmp/resolv.conf.auto
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq[1797]: using local addresses only for domain lan
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq[1797]: using nameserver 8.8.8.8#53
Thu Oct 13 14:20:17 2016 daemon.warn dnsmasq[1797]: ignoring nameserver 192.168.1.1 - local interface
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq[1797]: read /etc/hosts - 1 addresses
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq[1797]: read /tmp/hosts/dhcp - 1 addresses
Thu Oct 13 14:20:17 2016 daemon.info dnsmasq-dhcp[1797]: read /etc/ethers - 0 addresses
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq[1797]: exiting on receipt of SIGTERM
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq[1900]: started, version 2.73 cachesize 150
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq[1900]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq[1900]: DNS service limited to local subnets
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq-dhcp[1900]: DHCP, IP range 192.168.2.100 -- 192.168.2.249, lease time 12h
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq-dhcp[1900]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq[1900]: using local addresses only for domain lan
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq[1900]: reading /tmp/resolv.conf.auto
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq[1900]: using local addresses only for domain lan
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq[1900]: using nameserver 8.8.8.8#53
Thu Oct 13 14:20:19 2016 daemon.warn dnsmasq[1900]: ignoring nameserver 192.168.1.1 - local interface
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq[1900]: read /etc/hosts - 1 addresses
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq[1900]: read /tmp/hosts/dhcp - 1 addresses
Thu Oct 13 14:20:19 2016 daemon.info dnsmasq-dhcp[1900]: read /etc/ethers - 0 addresses
Thu Oct 13 14:20:19 2016 user.notice firewall: Reloading firewall due to ifup of vlan (eth0.3)
Thu Oct 13 14:20:21 2016 user.notice firewall: Reloading firewall due to ifup of wan (eth0)
Thu Oct 13 14:20:22 2016 daemon.info dnsmasq-dhcp[1900]: DHCPREQUEST(br-lan) 192.168.1.212 20:cf:30:bb:75:56
Thu Oct 13 14:20:22 2016 daemon.info dnsmasq-dhcp[1900]: DHCPACK(br-lan) 192.168.1.212 20:cf:30:bb:75:56 WDF6
Thu Oct 13 14:20:23 2016 user.notice ddns-scripts[2166]: myddns_ipv4: PID '2166' started at 2016-10-13 14:20
Thu Oct 13 14:20:24 2016 user.warn ddns-scripts[2166]: myddns_ipv4: Service section disabled! - TERMINATE
Thu Oct 13 14:20:24 2016 user.warn ddns-scripts[2166]: myddns_ipv4: PID '2166' exit WITH ERROR '1' at 2016-10-13 14:20
Thu Oct 13 14:20:39 2016 kern.notice kernel: [   55.300000] random: nonblocking pool is initialized
Thu Oct 13 14:20:41 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:20:41 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:31:59 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:31:59 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:32:08 2016 kern.info kernel: [   97.440000] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
Thu Oct 13 14:32:29 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:32:29 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:32:59 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:32:59 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:33:29 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:33:29 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:33:37 2016 authpriv.info dropbear[3934]: Child connection from 192.168.1.212:56317
Thu Oct 13 14:33:44 2016 authpriv.notice dropbear[3934]: Password auth succeeded for 'root' from 192.168.1.212:56317
Thu Oct 13 14:34:00 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:34:00 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:34:30 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:34:30 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:35:00 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:35:00 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:35:30 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:35:30 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:36:00 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:36:00 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:36:30 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:36:30 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:37:00 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:37:00 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60
Thu Oct 13 14:37:30 2016 daemon.notice netifd: wan (1721): Sending renew...
Thu Oct 13 14:37:30 2016 daemon.notice netifd: wan (1721): Lease of 192.168.1.194 obtained, lease time 60

plik DHCP wygląda teraz tak, jednak dalej nie działa na porcie numer 4:

config dnsmasq
        option domainneeded '1'
        option boguspriv '1'
        option filterwin2k '0'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option nonegcache '0'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.auto'
        option localservice '1'
        list rebind_domain 'free.aero2.net.pl'

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'
        option dhcpv6 'server'
        option ra 'server'

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

config odhcpd 'odhcpd'
        option maindhcp '0'
        option leasefile '/tmp/hosts/odhcpd'
        option leasetrigger '/usr/sbin/odhcpd-update'

config dhcp 'vlan'
        option start '100'
        option leasetime '12h'
        option limit '150'
        option interface 'vlan'

Witam,

probuje już od dłuższego czasu uzyskac taki efekt na wr1043nd v3 z wgranym OpenWrt Chaos Calmer 15.05.1 r49398 / LuCI for-15.05 branch (git-16.168.30315-6920494) router 1043nd v3 bedzie wpiety do funboxa a dalej do portow wpiete switche:
porty (fizyczne oznaczenie na routerze) 1,2,3 na siec 192.168.1.1
port 4 (rownież fizycznie oznaczony na routerze) na siec 192.168.2.1

idea jest taka żeby kompy z portu 4 nie widziały kompów z portów 1,2,3 i na odwrót. Póki co udało mi się uzyskać cos takiego ze: na portach 1,2,3 internet dziala i siec dziala. na porcie numer 4 nie przydziela mi adresu ip tylko daje ip prywatne tzn 169.... bardzo proszę o pomoc. poniżej ustawienia:
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='fd6a:127c:3e9d::/48'
network.lan=interface
network.lan.ifname='eth1'
network.lan.force_link='1'
network.lan.type='bridge'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan=interface
network.wan.ifname='eth0'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.ifname='eth0'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch[0].mirror_source_port='0'
network.@switch[0].mirror_monitor_port='0'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].vid='1'
network.@switch_vlan[0].ports='0 2 3 4'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='5 6'
network.@switch_vlan[1].vid='2'
network.@switch_vlan[2]=switch_vlan
network.@switch_vlan[2].device='switch0'
network.@switch_vlan[2].vlan='3'
network.@switch_vlan[2].vid='3'
network.@switch_vlan[2].ports='0t 1'
network.vlan=interface
network.vlan.proto='static'
network.vlan.ifname='eth0.3'
network.vlan.ipaddr='192.168.2.1'
network.vlan.netmask='255.255.255.0'

uci show firewall

firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood='1'
firewall.@defaults[0].input='ACCEPT'
firewall.@defaults[0].output='ACCEPT'
firewall.@defaults[0].forward='REJECT'
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='lan'
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 wan6'
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='fe80::/10'
firewall.@rule[3].src_port='547'
firewall.@rule[3].dest_ip='fe80::/10'
firewall.@rule[3].dest_port='546'
firewall.@rule[3].family='ipv6'
firewall.@rule[3].target='ACCEPT'
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[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[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.@include[0]=include
firewall.@include[0].path='/etc/firewall.user'
firewall.@rule[7]=rule
firewall.@rule[7].src='wan'
firewall.@rule[7].dest='lan'
firewall.@rule[7].proto='esp'
firewall.@rule[7].target='ACCEPT'
firewall.@rule[8]=rule
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.@zone[2]=zone
firewall.@zone[2].name='vlan'
firewall.@zone[2].input='ACCEPT'
firewall.@zone[2].forward='REJECT'
firewall.@zone[2].output='ACCEPT'
firewall.@zone[2].network='vlan'
firewall.@forwarding[1]=forwarding
firewall.@forwarding[1].dest='wan'
firewall.@forwarding[1].src='vlan'

route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.1     0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0.3