Computing.Net > Forums > Linux > Iptables Port Forwarding

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Iptables Port Forwarding

Reply to Message Icon

Name: smd543
Date: January 7, 2005 at 08:16:45 Pacific
OS: fedora
CPU/Ram: 633c/512mb
Comment:

Hi

I'm trying to forward ports on my linux nat box. Any suggestions?
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

Thanks!




Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: January 11, 2005 at 09:25:08 Pacific
Reply:

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


0

Response Number 2
Name: smd543
Date: January 15, 2005 at 04:48:30 Pacific
Reply:

Thanks, works great!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Iptables Port Forwarding

iptables port forwarding www.computing.net/answers/linux/iptables-port-forwarding/18478.html

IPTABLES & Port forwarding www.computing.net/answers/linux/iptables-amp-port-forwarding/12642.html

How do I enable iptables port forwa www.computing.net/answers/linux/how-do-i-enable-iptables-port-forwa/18599.html