Topic: One-to-One NAT - PLEASE HELP!!!
Let me start off by saying that I know that this topic has been covered before, and I apologize; I have used the search function here on the site as well as google. I still can't get one to one nat to work. Any help would be greatly appreciated.
I have AT&T Uverse with a /28 of public address space, that I'd like use for 1 to 1 NAT for 3 hosts. The remaining hosts, can simply use many to 1 translations. I've tried configuring SNAT via the LuCI interface, but I lose Internet connectivity to the host machine that is supposed to be doing 1 to 1 NAT. I tried manually adding iptables rules to the "Custom" section of the firewall tab in LuCI, but it doesn't appear to be working ( I don't see any packets hitting the ruleset ) Here are the rules I tried using as a test for one host:
iptables -t nat -A PREROUTING -d 126.96.36.199 -i eth0 -j DNAT --to-destination 192.168.10.12
iptables -t nat -A POSTROUTING -s 192.168.10.12 -o eth0 -j SNAT --to-source 188.8.131.52
iptables -A FORWARD -i eth0 -o eth1 -m state --state NEW -j ACCEPT
iptables -A FORWARD -t filter -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
Would someone mind giving me a hand with this? I'm assuming all of this can be done in LUCI, but I'm stuck at the moment.
Thanks in advance,