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!
Quick Links:
Do
you have a Linux Question?
Linux Home: Linux System Administration Hints and Tips