Linux Netfilter discussions
 help / color / mirror / Atom feed
* RE: mangle, filter & FORWARD
@ 2004-06-01 17:28 Kevin D. White
  0 siblings, 0 replies; 7+ messages in thread
From: Kevin D. White @ 2004-06-01 17:28 UTC (permalink / raw)
  To: netfilter

*sigh* Thanks for the answers Justin but I was only
asking those questions to start a discussion about
forwarding and maybe find someone that can help you
with your problem.  I have no need for forwarding, I
am merely curious as to what can be done on a network
with a *nix box.  So far I'm impressed with what has
been done, except for my question about the FORWARD
chain... let me explain what I am talking about.

In all the examples I've seen, the way to forward a
packet is to do something like this:

$IPTABLES -A FORWARD -i $LAN_IFACE -j ACCEPT
$IPTABLES -A FORWARD -m state --state
ESTABLISHED,RELATED -j ACCEPT

As you can see, there is no reference to either the
mangle table or filter table... so where does the
system append the rule?  An obvious answer might be
that the system appends the rule in both FORWARD
chains, (if there is two chains).  But that would mean
that a single rule would take up twice the amount of
space it would need and it also brings up something
that occurs with this next, possible answer.
What if there is only one chain, used by two tables. 
Since it seems that the system moves through the
tables sequentially, then the exact same compares will
be made in both tables.  You would have a major
redundancy in a very important part of the networking
process, especially if the system is a gateway.
So there is my question again, restated as clearly as
I can possibly make it.

I have been asking questions as nicely as I can here
and no one wants to reply, so I think I need to say
something to the people who are reading my posts and
just sending them to the bit bucket.

*nix is not user friendly and it is because everyone
who works on it likes to complicate things first, then
simplify (a flaw most people have, myself included). 
*nix will NEVER be user friendly because that is the
way we like it, raw output, difficult challenges and
total control over everything.  The community must
make up for the unfriendly nature of the OS by being
friendly to people who are moving from Windows and
looking for help, like me.  Ignoring people is just
going to make everyone give-up on *nix and stick with
microsoft, which means your *nix knowledge will only
ever be a hobby and you will have to have M$
certification to get work; which would be sad because
this is a far more powerful and useful OS.

If what I said makes you angry, then flame away. 
Better then nothing! :)


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: mangle, filter & FORWARD
@ 2004-06-01 17:58 Daniel Chemko
  2004-06-02  5:17 ` Kevin D. White
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Chemko @ 2004-06-01 17:58 UTC (permalink / raw)
  To: Kevin D. White, netfilter


> As you can see, there is no reference to either the
> mangle table or filter table...

The filter table is always implied if not explicitly stated otherwise

>so where does the
> system append the rule?  An obvious answer might be
> that the system appends the rule in both FORWARD
> chains, (if there is two chains).

Nope (thankfully)
The MANGLE table's are not for filtering data. Mangle's are typically
used for inline parameter modifications like changing the TOS/MSS/etc...
The order on any given chain is raw/mangle/filter/nat. Not all tables
are run on each chain. Eg. FORWARD table only has mangle/filter.

For a really good refreence on iptables in general, check out
http://iptables-tutorial.frozentux.net/

> *nix is not user friendly and it is because everyone
> who works on it likes to complicate things first, then
> simplify (a flaw most people have, myself included).
> *nix will NEVER be user friendly because that is the
> way we like it, raw output, difficult challenges and
> total control over everything.  The community must
> make up for the unfriendly nature of the OS by being
> friendly to people who are moving from Windows and
> looking for help, like me.  Ignoring people is just
> going to make everyone give-up on *nix and stick with
> microsoft, which means your *nix knowledge will only
> ever be a hobby and you will have to have M$
> certification to get work; which would be sad because
> this is a far more powerful and useful OS.

Yeah, but you can't exepect everyone on a public list to support you
just because your talking. It's too bad that nobody got back to you, but
it does happen from time to time. You may want to rethink your
questions, check external references for more info, make the theme
explicitly clear and resubmit. The questions usually get answered
eventually.

Also note, the questions asked here vary based on their difficulty. You
have questions from newbs (which is fine) asking pretty elementary
questions and you have the pros that generally aim to ask/solve very
technically challenging questions that may/may not involve developing
their own programs/modules to solve the problem. I've been on this ML
for a while and I can say personally that I'd answer a rare higher
difficulty question over a question that's been answered half a dozen
times before (I'm not criticizing, its just what happens to most ppl
learning).

I hope that gives you some insight on the dynamics of mailing lists like
this.


^ permalink raw reply	[flat|nested] 7+ messages in thread
* mangle, filter & FORWARD
@ 2004-05-31 20:14 Kevin D. White
  2004-05-31 21:39 ` Justin Friel
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin D. White @ 2004-05-31 20:14 UTC (permalink / raw)
  To: netfilter

Does a packet that needs to be forwarded ever hit the
INPUT chain? 
What is the relationship between mangle & filter
tables and the chain FORWARD, are there two FORWARD
chains; one for mangle and one for filter or do they
share the same chain?.  
When is the decision to move the packet out the
internal interface made, or is this something I must
specify?

Links to more documentation are welcome answers, thank
you.



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-06-02 15:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-01 17:28 mangle, filter & FORWARD Kevin D. White
  -- strict thread matches above, loose matches on Subject: below --
2004-06-01 17:58 Daniel Chemko
2004-06-02  5:17 ` Kevin D. White
2004-06-02  6:34   ` Ludo Stellingwerff
2004-06-02 15:04     ` Dick St.Peters
2004-05-31 20:14 Kevin D. White
2004-05-31 21:39 ` Justin Friel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox