Hi, Can anybody tell me how to delete DSCP or TOS setting using iptable command. iptables --list OUTPUT --table mangle Chain OUTPUT (policy ACCEPT) target prot opt source destination DSCP tcp -- anywhere anywhere tcp spt:http DSCP s et 0x08 DSCP udp -- anywhere anywhere DSCP set 0x08 DSCP udp -- anywhere anywhere DSCP set 0x18 DSCP all -- anywhere anywhere DSCP set 0x08 DSCP all -- anywhere anywhere DSCP set 0x08 DSCP all -- anywhere anywhere DSCP set 0x06 DSCP all -- anywhere anywhere DSCP set 0x01 DSCP all -- anywhere anywhere DSCP set 0x02 DSCP udp -- anywhere anywhere DSCP set 0x08 TOS udp -- anywhere anywhere TOS set Maximize-Th roughput TOS all -- anywhere anywhere TOS set Maximize-Th roughput Regards, Raghuvendra Kumar | BTSL 414 | Ext 011-41619770 | Desk +91-9818143739 | Mobile raghuvendra.kumar@bhartitelesoft.com | EMail
Nikolay Kichukov
2007-Sep-25 08:45 UTC
Re: How to delete DSCP setting using iptable command.
Hello, You can just add --line-numbers at the end of the command you use to see the results you posted and then use iptables -D tableName ruleNumber, i.e. iptables -D OUTPUT 5 HTH, -Nikolay Raghuvendra Kumar wrote:> > Hi, > > Can anybody tell me how to delete DSCP or TOS setting using iptable command. > > iptables --list OUTPUT --table mangle Chain OUTPUT (policy ACCEPT) > target prot opt source destination > DSCP tcp -- anywhere anywhere tcp spt:http DSCP s et 0x08 > DSCP udp -- anywhere anywhere DSCP set 0x08 > DSCP udp -- anywhere anywhere DSCP set 0x18 > DSCP all -- anywhere anywhere DSCP set 0x08 > DSCP all -- anywhere anywhere DSCP set 0x08 > DSCP all -- anywhere anywhere DSCP set 0x06 > DSCP all -- anywhere anywhere DSCP set 0x01 > DSCP all -- anywhere anywhere DSCP set 0x02 > DSCP udp -- anywhere anywhere DSCP set 0x08 > TOS udp -- anywhere anywhere TOS set Maximize-Th roughput > TOS all -- anywhere anywhere TOS set Maximize-Th roughput > > Regards, > > Raghuvendra Kumar | BTSL > 414 | Ext > 011-41619770 | Desk > +91-9818143739 | Mobile > raghuvendra.kumar@bhartitelesoft.com | EMail > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Raghuvendra Kumar wrote:> > Hi, > > Can anybody tell me how to delete DSCP or TOS setting using iptable command. >iptables --line-numbers -t mangle -vL OUTPUT to verify rule numbers, then just delete whatever you need with -D, i.e. iptables -t mangle -D OUTPUT 12