OpenWrt Forum Archive

Topic: relayd - connection fail from LAN to router

The content of this topic has been archived on 17 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

After following recipe for relayclient everything is working but the connections from LAN to bridge router.

Following image on the recipe (_detail/doc/howto/802.11-routed-relay.png):
- Every host on both APs can ping each other and connect to internet
- Any connection from LAN hosts to 'relayd' router fails, i.e. no LuCi access, no SSH, no ping from 192.168.1.40 to 192.168.1.30

Both dnsmasq and firewall are disabled

It seem as if relayd when receiving a LAN packet doesn't deliver it locally, just forwards traffic so it never gets traffic for itself.

I've been digging for google and openwrt forums without success.
What I'm doing worng?

Thanks!

are you doing your config in luci for the relay?

do you have your router ip address set to a different network than the bridged network?

If you haven't already,

opkg update
opkg install luci-proto-relay

you will now have a new protocol called relay-bridge in luci/network/interfaces

set wlan to dhcp client and configure ssid and security to the same parameters on main router.  get this join working first, then proceed. You should see this connection under network/wireless in the associated stations.

change routers IP to be on a different subnet in network/interfaces/lan (br-lan)

add a new interface choosing type relay, select the networks to relay (usually lan wlan)
disable dhcp


apply changes and wireless and wired clients should get dhcp addresses from main router and everyone should have internet

All steps followed, everibody has Internet.

The issue is that none of the hosts connected to LAN port can access the router neither on wlan IP nor relay IP, despite all of them are in the same subnet

For access only to the LAN port ( Web Configuration by exemple ) use for your computer an IP adress in the same subnet

for my configuration 192.168.2.xxx ( in normal mode 192.168.1.xxx )

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 'fd6c:739e:cff3::/48' < ???

config interface 'lan'
    option type 'bridge'
    option ifname 'eth0'
    option proto 'static'
    option netmask '255.255.255.0'
    option ip6assign '60'
    option gateway '192.168.1.1'   < - my lan router
    option dns '8.8.8.8 192.168.1.1'
    option ipaddr '192.168.2.242' < lan box ip not used or only for lan access

config device 'lan_dev'
    option name 'eth0'
    option macaddr '12:34:56:78:9a:bc '  <- change for the good value

config interface 'wwan'
    option _orig_ifname 'wlan0'
    option _orig_bridge 'false'
    option proto 'static'
    option netmask '255.255.255.0'
    option gateway '192.168.1.1'   < - my lan router
    option dns '8.8.8.8 192.168.1.1'
    option ipaddr '192.168.1.242' < wwan ip box 

config interface 'stabridge'
    option proto 'relay'
    list network 'lan'
    list network 'wwan'

https://img15.hostingpics.net/pics/756373467125OpenWRT.jpg

(Last edited by F5BJR on 30 Dec 2017, 14:49)

The discussion might have continued from here.