Hello folks,
for academic purposes, I want to configure devices with OpenWRT (e.g. Raspberry Pi, as well as dedicated routers) as modem-like devices to be connected to my end user devices.
The topology looks as follows, whereas PC_N describes the end user device and OM_N describes the OpenWRT "modem":
PC_1 (10.50.0.11) <--Ethernet --> (eth0: IP_1_e) OM_1 (wlan0: IP_1_w) < - - - (Ad-Hoc WiFi) - - - > shared medium
PC_2 (10.50.0.12) <--Ethernet --> (eth0: IP_2_e) OM_1 (wlan0: IP_2_w) < - - - (Ad-Hoc WiFi) - - - > shared medium
PC_1 (10.50.0.13) <--Ethernet --> (eth0: IP_3_e) OM_1 (wlan0: IP_3_w) < - - - (Ad-Hoc WiFi) - - - > shared medium
So in general, each PC_N is cable-connected to OM_N and this in turn is connected to an ad-hoc wifi.
Now here is my scenario:
- I am running IP-based routing on PC_N. Thus there will be routing decisions like "10.50.0.12 via 10.50.0.13" --> If possible, I'd like to ignore IP_N_e + IP_N_w as far as possible.
- On OM_N device, I more or less want to pass packets from eth0 to wlan0 and vice versa without modifying the layer 2 ethernet frames (especially the source and destination MAC there) --> I already tried relayd, but this leads to changed MAC fields. Basically, I need a layer 2 solution here.
- In the Ad-hoc WiFi, I just need to be able to reach other PC_N in direct reach ("one-hop"), as the routing will take place IP-based on PC_N. Thus, I don't need/want 802.11s/batman_adv/... to make the routing decisions.
Does anyone have a clue on this? Especially on point 2?
Thank you very much in advance!