Hi,
For about 2 weeks I'm trying to solve problem with relayd pseudobridge. I have configure router using this tutorial: https://openwrt.org/docs/guide-user/network/wifi/relay_configuration but still I am unable to receive DHCP response from client area of network (192.168.1.1/24). Static ip configuration works and in this case I can connect to Internet etc but dhcp responses are blocked somewhat on openwrt router.
My network topology:
192.168.1.1 - gateway to internet (upc router)
192.168.1.0/24 - home wifi network
192.168.2.0/24 - WT3020H network
192.168.1.11 - WT3020H bridge client ip (I can connect to router using 192.168.1.0/24 network)
192.168.1.2 - DHCP, DNS local server
Does anyone have idea what might be the cause of this problem?
router configuration:
root@Misza-LEDE:~# uci export
package dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option authoritative '1'
config dhcp 'lan'
option interface 'lan'
option ignore '1'
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'
option loglevel '4'
package dropbear
config dropbear
option PasswordAuth 'on'
option Interface 'lan'
option Port '22'
config dropbear
option Port '22'
option Interface 'wwan'
option RootPasswordAuth 'off'
option PasswordAuth 'off'
package firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option flow_offloading '1'
option flow_offloading_hw '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option log '1'
option network 'bridge lan wwan'
config include
option path '/etc/firewall.user'
package luci
config core 'main'
option lang 'auto'
option mediaurlbase '/luci-static/bootstrap'
option resourcebase '/luci-static/resources'
config extern 'flash_keep'
option uci '/etc/config/'
option dropbear '/etc/dropbear/'
option openvpn '/etc/openvpn/'
option passwd '/etc/passwd'
option opkg '/etc/opkg.conf'
option firewall '/etc/firewall.user'
option uploads '/lib/uci/upload/'
config internal 'languages'
config internal 'sauth'
option sessionpath '/tmp/luci-sessions'
option sessiontime '3600'
config internal 'ccache'
option enable '1'
config internal 'themes'
option Bootstrap '/luci-static/bootstrap'
config internal 'apply'
option rollback '30'
option holdoff '4'
option timeout '5'
option display '1.5'
config internal 'diag'
option dns 'openwrt.org'
option ping 'openwrt.org'
option route 'openwrt.org'
config ifstate
option interface 'lan'
option ifname 'eth0.1'
option bridge 'true'
package 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 'fdb0:15c6:fe3f::/48'
config interface 'lan'
option type 'bridge'
option proto 'static'
option ip6assign '60'
option ipaddr '192.168.2.1'
option netmask '255.255.255.0'
option ifname 'eth0.1 eth0.2'
option broadcast '255.255.255.255'
option gateway '192.168.1.1'
option dns '192.168.1.2 208.67.222.222 8.8.8.8'
config device 'lan_dev'
option name 'eth0.1'
option macaddr '20:28:18:a1:56:e6'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '20:28:18:a1:56:e7'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '4 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 6t'
config interface 'wwan'
option proto 'dhcp'
option hostname 'Misza-LEDE'
config interface 'bridge'
option proto 'relay'
option ipaddr '192.168.1.11'
list network 'lan'
list network 'wwan'
package rpcd
config login
option username 'root'
option password '$p$root'
list read '*'
list write '*'
package system
config system
option ttylogin '0'
option log_size '64'
option urandom_seed '0'
option log_port '514'
option log_proto 'udp'
option conloglevel '8'
option cronloglevel '8'
option log_ip '192.168.1.2'
option hostname 'Misza-LEDE'
option zonename 'Europe/Warsaw'
option timezone 'CET-1CEST,M3.5.0,M10.5.0/3'
config timeserver 'ntp'
option enabled '1'
list server '0.openwrt.pool.ntp.org'
list server '1.openwrt.pool.ntp.org'
list server '2.openwrt.pool.ntp.org'
list server '3.openwrt.pool.ntp.org'
option enable_server '1'
config led
option name 'poweron'
option sysfs 'wt3020:blue:power'
option default '0'
option trigger 'none'
package ucitrack
config network
option init 'network'
list affects 'dhcp'
list affects 'radvd'
config wireless
list affects 'network'
config firewall
option init 'firewall'
list affects 'luci-splash'
list affects 'qos'
list affects 'miniupnpd'
config olsr
option init 'olsrd'
config dhcp
option init 'dnsmasq'
list affects 'odhcpd'
config odhcpd
option init 'odhcpd'
config dropbear
option init 'dropbear'
config httpd
option init 'httpd'
config fstab
option exec '/sbin/block mount'
config qos
option init 'qos'
config system
option init 'led'
option exec '/etc/init.d/log reload'
list affects 'luci_statistics'
list affects 'dhcp'
config luci_splash
option init 'luci_splash'
config upnpd
option init 'miniupnpd'
config ntpclient
option init 'ntpclient'
config samba
option init 'samba'
config tinyproxy
option init 'tinyproxy'
package uhttpd
config uhttpd 'main'
list listen_http '0.0.0.0:80'
list listen_http '[::]:80'
list listen_https '0.0.0.0:443'
list listen_https '192.168.1.10:443'
list listen_https '192.168.2.1:443'
list listen_https '192.168.1.11:443'
list listen_https '[::]:443'
option redirect_https '0'
option home '/www'
option rfc1918_filter '1'
option max_requests '5'
option max_connections '100'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
option lua_prefix '/luci'
option lua_handler '/usr/lib/lua/luci/sgi/uhttpd.lua'
option script_timeout '60'
option network_timeout '30'
option http_keepalive '20'
option tcp_keepalive '1'
config cert 'defaults'
option days '730'
option bits '2048'
option country 'ZZ'
option state 'Somewhere'
option location 'Unknown'
package wireless
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/10180000.wmac'
option htmode 'HT20'
option disabled '0'
option channel '6'
option legacy_rates '1'
option country 'PL'
config wifi-iface
option network 'wwan'
option ssid 'UPC'
option encryption 'psk2'
option device 'radio0'
option mode 'sta'
option bssid '00:36:76:B5:54:FE'
option key '********'
config wifi-iface
option device 'radio0'
option mode 'ap'
option ssid 'Misza-LEDE'
option encryption 'psk2'
option key '********'
option network 'lan'