Redirecting outgoing traffic to a LAN IP

Hi, I want to redirect all traffic sent to a external IP to an internal IP: ie. if a LAN device wants to communicate with, it should actually be communicating with

I think these two rules below work, but can anyone suggest how to do this in /ett/config/firewall?

iptables -t nat -A PREROUTING -d -j DNAT --to-destination
iptables -t nat -A POSTROUTING -s -j SNAT --to-source
1 Like
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.