openWRT Bridge with Relayd (Pseudobridge)

Recipe for Bridging with Atheros Chipsets

Works for TP-Link TL-WR703n as an example.

based on this two links

http://trac.gateworks.com/wiki/relayd

http://wiki.openwrt.org/doc/recipes/relayclient

https://forum.openwrt.org/viewtopic.php?pid=173467#p173467

 

Connect your Router with your WAN-Router Device (modem, switch, … )

root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install relayd
root@OpenWrt:~# opkg install luci-proto-relay
root@OpenWrt:~# opkg install wpad
root@OpenWrt:~# /etc/init.d/relayd enable

set ip Address of the LAN to something different

root@OpenWrt:/etc/config vi network
config interface lan
        option ifname   eth0
        option type     bridge
        option proto    static
        option ipaddr   10.0.1.1 
        option netmask  255.255.255.0

reboot or restart network.

root@OpenWrt:~# /etc/init.d/network restart

Set your IP Address of your PC to 10.0.1.2

Connect your Router with your PC.

disable any DHCP.

Connect to Luci with your browser to 10.0.1.1

Go to network, wifi make a scan

join your wifi

make all your settings for the Wifi device, at this part a new interface is created

Go to Network->Interfaces

Edit the new created interface (WWAN) for example

Make a static or dhcp adress here.

disable any DHCP.

Create a new Interface “stabridge” in the Interface section.

use the “relay bridge” protocol

Relay between networks WWAN and LAN.

check

lan/wwan is set to IP address in a different net

interface stabridge is set to relay between lan/eth0 and wwan/wlan0

wlan0/wwan is interface is assigned

change Firewall rules

Zone Forwarding, set to Accept

DONE

Comments are closed.