LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-11-2003, 05:11 PM   #1
cenci
LQ Newbie
 
Registered: Feb 2003
Distribution: RH
Posts: 1

Rep: Reputation: 0
Exclamation Need Help PORTFW is giving me a headache.


This is probably an old question but I just cant seem to get this working.

Outbound is a-okay. But all my attempts to route incoming requests though and on to my internal server have failed. I have perused list archive after list archive and tried many things mentioned there. But nothing seems to work...

Here is the basics of what I have done.

-I am running RH 7.2
-Disabled IPCHAINS
-Enabled IPTABLES
-Enabled IPFORWARDING
-Downloaded and modified rc.firewall-2.4 file - FWVER=0.72

here is what I have been led to believe is the pertinent lines of the rc.firewall file.

---------------

echo " clearing any existing rules and setting default policy..!QUOT!
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F

PORTFWIP="10.1.1.13"

$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -p tcp --dport 80 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT

$IPTABLES -A PREROUTING -t nat -p tcp -d $EXTIP --dport 80 -j DNAT --to $PORTFWIP:80

# I also experimented with:
$IPTABLES -A POSTROUTING -t nat -d $PORTFWIP -o $INTIF -j SNAT --to $INTIP

# I have seen it written with the -A POSTROUTING and -t nat reversed as well.

----

It seems to me that this should be VERY straight forward. But, alas, it isn't working.

HELP!

Thanks in Advance.
 
Old 02-17-2003, 06:08 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Post your "iptables -L" that's easier to modify.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
this opera is giving me a headache boxerboy Ubuntu 12 10-05-2005 06:44 AM
Slackware 10.0 install giving me a headache GeneralChaos Slackware - Installation 17 07-02-2005 08:53 PM
Silly but init is giving me a headache! enigma82 Linux - Software 5 09-29-2004 07:36 PM
Maildrop is giving me a headache LiquidKernel Linux - Software 2 09-15-2004 07:53 AM
samba giving me a headache DAChristen29 Linux - Networking 14 07-03-2003 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration