IPTABLES... much more flexible, easier to understand and we can see a good script:
A link to a script that should be understandable...Now you can see from that, you can modify it to your hearts content.
That is a REALLY good script has worked for hundreds of people. Just read it. Save the text of the "monospace" font to a file called homeipt.sh, make it executable (chmod +x homeipt.sh)
First do a
Then a
then run script... I called it "homeipt.sh" and put it into /etc/rc.d/
using
and add
at the bottom of that.
once you do that, do a
It'll save the default config.... and keep them so the firewall is up before the networking, then at the end of init... it'll run and get the routing setup properly too...
Check it out... it is commented, modify to do you well...
Now to PORT re-direction of a specific port to the same port on a private IP addr... well that is beyond that script.
Restart your machine and it should be good.
If you want a script generated for you. look no further...
This is your answer!
Just follow the instructions.