Sorry for the off-topic question. I want to set the type of service (ToS) for all the traffic leaving my machine. All out going traffic. How can I do this? ipchains? Thanks in advance, -- --Paul
Sorry for the silly question. I was missing CONFIG_IP_ROUTE_TOS in my kernel, and possibly another thing. Thanks, Paul On Tue, 9 Jan 2001 hesselsp@ashaman.dhs.org wrote:> Sorry for the off-topic question. > > I want to set the type of service (ToS) for all the traffic leaving my > machine. All out going traffic. > > How can I do this? > > ipchains? > > Thanks in advance, > >-- --Paul
On Tue, 9 Jan 2001 hesselsp@ashaman.dhs.org wrote:> Sorry for the off-topic question. > > I want to set the type of service (ToS) for all the traffic leaving my > machine. All out going traffic. > > How can I do this? > > ipchains?Or even ipfwadm, if you''re still at 2.0. Something like /sbin/ipchains -A output -t 0x01 0x10 will set the minimum delay flag on every outgoing packet. See also the (quite excellent) IPchains HOWTO by Rusty Russell. Note: the question isn''t all that off-topic. The route-cache Linux uses is keyed on the triple <source address, destination address, type of service>. I''ve already encountered a situation in which I *had* to whack the TOS bits into submission in order to let connections be routed somewhat sanely. Doei, Arthur. (And yes, that will end up in the FAQ, but not quite yet) -- /\ / | arthurvl@sci.kun.nl | Work like you don''t need the money /__\ / | A friend is someone with whom | Love like you have never been hurt / \/__ | you can dare to be yourself | Dance like there''s nobody watching
On Tue, 9 Jan 2001 hesselsp@ashaman.dhs.org wrote:> Sorry for the silly question.Now you''re considering yourself silly for a very silly reason,> I was missing CONFIG_IP_ROUTE_TOS in my > kernel, and possibly another thing.as the CONFIG_IP_ROUTE_TOS flag does *not* have anything to do with setting TOS flags, only with specifying routing policies keyed on TOS flags. And yes, my previous remark that the route cache is keyed on the tripel <src, dst, tos> still holds, even if you *haven''t* set the CONFIG_IP_ROUTE_TOS option on when compiling the kernel. If you don''t believe me, just check the code for route_output() in net/ipv4/route.c in your favourite kernel source tree. Doei, Arthur. -- /\ / | arthurvl@sci.kun.nl | Work like you don''t need the money /__\ / | A friend is someone with whom | Love like you have never been hurt / \/__ | you can dare to be yourself | Dance like there''s nobody watching
On Tue, Jan 09, 2001 at 10:04:32PM +0100, Arthur van Leeuwen wrote:> Note: the question isn''t all that off-topic. The route-cache Linux uses > is keyed on the triple <source address, destination address, type of service>.(...)> Doei, Arthur. (And yes, that will end up in the FAQ, but not quite yet)Hi everybody. Everybody currently means almost 350 people, which pleases me greatly. So far, there have been over 250.000 hits on the site, including 35.000 downloads of packaged editions (.txt, .tar and .pdf). The archives of this list have been discovered by the Googlebot, and are visited frequently. We are doing the net a service! Arthur is currently working on a chapter for the HOWTO, and so can you. In fact, we would greatly enjoy more submissions. This way, the HOWTO will follow a ''Linus'' style development, with a few people presiding and tuning, but with enhancements coming in from the ''field'' so to speak. A contribution can be very small, like detecting a typo, or confirming to us that something does work as intended, but it can also be an entire chapter or an additional section to an existing one. We are even happy to receive unfinished contributions which we can patch up for you to look good! So you see, you''ve got no excuses left. If you read this list, or read the HOWTO, and you know something we haven''t mentioned, we want to hear from you at: howto@ds9a.nl! Regards, bert hubert instigator of the HOWTO -- PowerDNS Versatile DNS Services Trilab The Technology People ''SYN! .. SYN|ACK! .. ACK!'' - the mating call of the internet