Skip to contentSkip to conversation

change the TOS value in IPtables.

DISCUSSION Charles Lee 1 participant 1 message Feb 8, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Hello! To it maybe concern,

I want change the particular L3 “OUTPUT” interface with specific TOS value. So do the following:
<iptables –A OUTPUT –t mangle –s 192.168.10.1 –j TOS –set-tos 0x10>

After I type this command, ping 192.168.10.1 from other PC with 192.168.10.2. The ping respond come-back with TOS field=0. but I was expecting the TOS value changed to 0x10.

How can I make output from particular L3 output interface to have specific TOS value?

Thank your help in advance,

Charles