Fedora Linux Support Community & Resources Center
  #1  
Old 29th September 2005, 07:31 AM
Stranger Offline
Registered User
 
Join Date: Dec 2004
Posts: 20
Exclamation port forwarding, not forwarding?!!!

I've been trying to forward one of the ports on my gnu/linux firewall, but the destination machine is not reciving any packets from the firewall.

the current configration is:
RH7 (linux 2.4.31 with lvs and iptables options installed)
2 NICs. (eth0 external, eth1 internal)

command used
Code:
/sbin/iptables -t nat -I PREROUTING -i all -p tcp --dport 8080 -j DNAT --to-destination [local-ip]:9090
but whenever I try to connect to the firewall, Firefox/Opera gives me "Could not connect to remote server ".

is there some option that I need to enable in the /proc/sys/net/* for PORT FORWARDING to work (similer to echo 1 > /proc/sys/net/ipv4/ip_forward for IP FORWARDING).

thanks in advance.

P.S. before anyone flame me for using RH7, am also using FC4 as my desktop, and PORT FORWARDING is not working on it eather.

Last edited by Stranger; 29th September 2005 at 07:37 AM.
Reply With Quote
  #2  
Old 29th September 2005, 07:45 AM
Kasper Offline
Registered User
 
Join Date: Aug 2005
Posts: 46
Have you tried adding this?

iptables -A FORWARD -i eth1 -p tcp --dport 8080 -j ACCEPT
Reply With Quote
  #3  
Old 29th September 2005, 07:53 AM
Stranger Offline
Registered User
 
Join Date: Dec 2004
Posts: 20
thanks for the quick reply,
just tyred it, but the same result.

current command
Code:
/sbin/iptables -t nat -I PREROUTING -i all -p tcp --dport 8080 -j DNAT --to-destination [local-ip]:9090
iptables -A FORWARD -i eth1 -p tcp --dport 8080 -j ACCEPT
iptables -A FORWARD -i eth1 -p tcp --dport 9090 -j ACCEPT
Reply With Quote
Reply

Tags
forwarding , port

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get around port forwarding? schomin Servers & Networking 6 14th August 2009 11:47 PM


Current GMT-time: 04:29 (Monday, 23-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat