FW mangled packets

Sylvain GIL sylvain.gil@solsoft.fr
Wed, 18 Jul 2001 23:33:32 +0200


On Wed, Jul 18, 2001 at 10:45:18PM +0300, s I n wrote:
> Hi,
> 
> 	Could someone tell me how to mangle packets so that I can cahnge
> the TOS field in the packets that are originating from my host so that I
> can get a better response from my ISP ? I want the ones that are destined
> for/and to port 25 to have a minimum delay, and the ones for ftp/www/ssh
> to have a maximum throughtput.

See man iptables:

   TOS
       This is used to set the 8-bit Type of Service field in the
       IP header.  It is only valid in the mangle table.

       --set-tos tos
              You can use a numeric TOS values, or use
               iptables -j TOS -h
              to see the list of valid TOS names.

Use the -t switch to select the mangle table.

regards,
-- 
Sylvain.