Linux Netfilter discussions
 help / color / mirror / Atom feed
* RE: NAT, MANGLE, and TOS
@ 2003-10-23 19:35 Daniel Chemko
  2003-10-23 20:25 ` SBlaze
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Chemko @ 2003-10-23 19:35 UTC (permalink / raw)
  To: Jeffrey Laramie, nf


>Good point. Is there any reason I shouldn't put my rules on the mangle 
>POSTROUTING table and kill 2 birds with one rule?


None that I can see, though I must admit that I swear sometimes I see
packets missing POSTROUGING; though, I blame that on my bogon ray
generator, and not Netfilter itself.



^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: NAT, MANGLE, and TOS
@ 2003-10-23 18:30 Daniel Chemko
  2003-10-23 19:01 ` Jeffrey Laramie
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Chemko @ 2003-10-23 18:30 UTC (permalink / raw)
  To: Jeffrey Laramie, nf


> $iptables -t mangle -A OUTPUT -p tcp -m state --state 
> NEW,RELATED,ESTABLISHED -m tcp --sport 80 -j TOS --set-tos 0x08

You probably want this on the FORWARD chain to boost the performance of
your actual client machines instead of just the firewall.


^ permalink raw reply	[flat|nested] 9+ messages in thread
* NAT, MANGLE, and TOS
@ 2003-10-23 17:56 SBlaze
  2003-10-23 18:22 ` Jeffrey Laramie
  0 siblings, 1 reply; 9+ messages in thread
From: SBlaze @ 2003-10-23 17:56 UTC (permalink / raw)
  To: nf

Currently I run a very and common setup for my home network.

My Linux box acts as my router and gateway for my home network and simply NATs
everything out to the cable modem and onto the internet.

My question is this. I have read awhile ago that changing the TOS of packets
can be beneficial in ganing small performance. Logically I thought this would
pretty much be limited to a Point to Point systems. However by posting to some
forums for broadband, i hearf through the perverbial grapevine that my
ISP(Charter Communications) will honor user or application set TOS values
unless they are under network congestion. I can of course not verify this.

This is my quandry. Currently this is all I do..

iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 68.119.49.97

Is it possible to mangle NAT in a way that all my nat traffic carries slightly
higher TOS values? Will this give me a slight to any boost in upstream?

As always thanks for any info in advance and hail to the open source community.
SBlaze

=====
In the absence of order there will be chaos.

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


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

end of thread, other threads:[~2003-10-23 21:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-23 19:35 NAT, MANGLE, and TOS Daniel Chemko
2003-10-23 20:25 ` SBlaze
2003-10-23 20:47   ` Ramin Dousti
2003-10-23 21:19     ` SBlaze
2003-10-23 21:03   ` Jeffrey Laramie
  -- strict thread matches above, loose matches on Subject: below --
2003-10-23 18:30 Daniel Chemko
2003-10-23 19:01 ` Jeffrey Laramie
2003-10-23 17:56 SBlaze
2003-10-23 18:22 ` Jeffrey Laramie

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