# IP Passthrough

**URL:** <https://forum.openwrt.org/t/ip-passthrough/103736>\
**Category:** Installing and Using OpenWrt\
**Created:** [August 14, 2021, 11:33pm UTC](https://forum.openwrt.org/t/ip-passthrough/103736 "2021-08-14T23:33:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![bobafetthotmail](https://forum.openwrt.org/user_avatar/forum.openwrt.org/bobafetthotmail/32/39_2.png) [@bobafetthotmail](https://forum.openwrt.org/u/bobafetthotmail)\
**Post date:** [August 15, 2021, 3:35pm UTC](https://forum.openwrt.org/t/ip-passthrough/103736/6 "2021-08-15T15:35:41Z")

</div>

Afaik no it is not supported.  
I had enough bad experiences with using OpenWrt to run a modem card anyway so I would personally not recommend to use OpenWrt at all if you must run a "dumb" modem card.  
I bought Mikrotik Chateau LTE12 to run my LTE connection for example. It has IP passthrough like everyone else. I don't use this feature, my main issue was about the modem card(s) dropping connection and OpenWrt was not reacting to this.

That said, the nearest thing you can do from Luci web interface is set up a DMZ aka all-port-forwarding.  
[https://ltehacks.com/viewtopic.php?t=49](https://ltehacks.com/viewtopic.php?t=49)

If you feel like developing this yourself, you can try to adapt the scripts made by Teltonika vendor (that uses OpenWrt as firmware for their devices) to implement this feature [IP passthrough in OpenWrt](https://forum.openwrt.org/t/ip-passthrough-in-openwrt/36772)

Or maybe using trelay? It is basically a brainless packet mirror.

> <https://github.com/openwrt/openwrt/blob/master/package/kernel/trelay/Makefile>

_trelay relays ethernet packets between two devices (similar to a bridge), but_  
_without any MAC address checks. This makes it possible to bridge client mode_  
_or ad-hoc mode wifi devices to ethernet VLANs, assuming the remote end uses_  
_the same source MAC address as the device that packets are supposed to exit_  
_from._

you bridge the two LAN and usb0 interfaces of the modem device with trelay

And then you spoof the mac with macchanger or whatever other tool (or UCI as said above), on either the modem wan or the router usb0 so that both ports have the same mac address.

---

_[View the full topic](https://forum.openwrt.org/t/ip-passthrough/103736)._
