Hi! I have only one subnet 192.168.8.0/24 on OpenWrt 23.05.0 and want to redirect all traffic from Source 192.168.8.167 that assume to be on outside to 77.88.44.242 on port 3128 to my internal port 192.168.8.203 on port 3128. But it does not work. Inspiration was from Need help redirecting traffic to local network - #7 by himekifee but when I am trying to change DNAT to SNAT, Luci converts it to NAT rule. It also does not work.
Is it only one solution to make another subnet with zone and make NAT rule of maybe I missed something? Thanks for any advice
uci add firewall redirect
uci set firewall.@redirect[-1].dest='wan'
uci set firewall.@redirect[-1].target='DNAT'
uci set firewall.@redirect[-1].name='Test'
uci set firewall.@redirect[-1].src='lan'
uci set firewall.@redirect[-1].src_ip='192.168.8.167'
uci set firewall.@redirect[-1].src_port='3128'
uci set firewall.@redirect[-1].src_dip='77.88.44.242'
uci set firewall.@redirect[-1].src_dport='3128'
uci set firewall.@redirect[-1].dest_ip='192.168.8.203'
uci set firewall.@redirect[-1].dest_port='3128'
uci set firewall.@redirect[-1].dest='lan'
No, 77.88.44.242 is an external server somewhere else. OP wants to highjack traffic from device 192.168.8.167 to that server, and redirect it to the internal server 192.168.8.203.