-
(I have edited the post to ask a different question, as the original one seems to be a dead end...) When redirecting traffic from a device to
For IPv4, I can use the private address of the router p.s. nftables might have some options that can help, but OpenWrt doesn't seem to have |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
old comment: nvm, it's not a good idea. |
Beta Was this translation helpful? Give feedback.
-
Now I just need to figure out why sslocal is not receiving anything with these rules... |
Beta Was this translation helpful? Give feedback.
iptables -t mangle -A PREROUTING -p {tcp | udp} -m addrtype ! --dst-type LOCAL,BROADCAST -m mac --mac-source <mac_address> -j TPROXY --on-port 60080 --tproxy-mark 0x1
BROADCAST
for excluding DHCPv4OpenWrt needs
kmod-ipt-tproxy
,iptables-tproxy
,iptables-mod-extra
Nintendo Switch doesn't seem to have IPv6 (no config, no show address, no link local correspond to mac) so didn't try ip6tables.
In addition, for OpenWrt,
ip
stuff is best put into /etc/config/networkNow I just need to figure out why sslocal i…