...
- Navigate to Advanced → Firewall and set NAT settings to:
NAT loopback | Forwarded OnlyAll |
---|---|
NAT target | SNT |
Firewall Rules
→ DOESN'T WORK WITH SNAT ←
To have clients redirected to internal ip when they request the public ip, you can add the following rules to the firewall by following these steps:
...
Code Block |
---|
iptables -t nat -A PREROUTING -i br0 -s 192.168.1.0/24 -d 206.80.251.217 -j DNAT --to 192.168.1.50 iptables -t nat -A POSTROUTING -o br0 -j MASQUERADESNAT |