IPtables Port Forwarding

I'm trying to forward ports on my linux nat box.

I tried using this script:
http://www.malibyte.net/iptables/scripts/f.../fwscripts.html

I also checked out the iptables howto but it didn't help. I have two dsl lines and I used nmap to scan the forwarded port (81) from the outside. My ISP does not block this port and it has been running apache fine for quite some time.

Also, ssh port forwarding does not appear to be working although I may be missing a simple setting.

I am running Fedora Core 2

Try the following:
# modprobe iptable_nat
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# echo 1 > /proc/sys/net/ipv4/ip_forward

Thanks, works great!

Have a Linux Problem
Linux Forum - Do you have a Linux Question?

Linux Books
Linux Certification, System Administration, Programming, Networking Books

Linux Home: Linux System Administration Hints and Tips

(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.
The site www.gotothings.com is in no way affiliated with or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.