I know this is not the first topic on the internet about NAT and port forwarding, and I did really googled for it. Did everything according to the manuals, but still failed.
So, my task is to create a router (based on Ubuntu Linux) and make NAT. I can say, that I've accomplished that + I have dhcp + dns servers working ok. But.. One of my PC's under NAT is running windows XP, and I want to be able to rdp it over internet. But I do fail. I'll show my config files for interfaces, NAT and IPtables forwarding rules, plz say what' wrong here:
nat.sh: http://pastie.org/2392650
pf.sh: (for forwarding): http://pastie.org/2392651
UPD:
All worked out by adding:
iptables -t nat -I POSTROUTING -o eth0 -p tcp -d 192.168.1.10 -j SNAT --to-source 192.168.0.1