[Firehol-support] Iptables command help

James Bean james at hdcs.com.au
Mon Oct 11 11:57:54 BST 2004


Hi,

Running 
FC2 
Iptables 1.2.9
Firehol 1.191

I am trying to run some iptables commands in the firehol.conf file but
when I do a "iptables -L" the commands I inserted aren't listed anywhere
"sort of"

When I do a 
iptables -t mangle -N TS 
Is says chain already exists, when I do a
Iptables -L TS
It says the chain does not exists

I am trying to make sure the Mark and TS lines are inserted correctly.
(Trying to do some bandwidth throttling for some users by marking
certain parkets, still learning how to do it, open to suggestions :-) )

My iptables commands in the firehol.conf are as follows....

Don't worry about the net ip addresses listed, they are global game
servers anyway :-)...

------------------------------------------------------

# Mark certain traffic for routing
# Uploading Set Mark 3
iptables -t mangle -A FORWARD -s 192.168.2.0/24 -j MARK --set-mark 3
# Downloading Set Mark 4
iptables -t mangle -A POSTROUTING -s 0/0 -d 192.168.2.0/24 -j MARK
--set-mark 4
iptables -t mangle -A POSTROUTING -s 144.135.23.52 -d 192.168.2.0/24 -j
MARK --set-mark 5

# Tos/Qos priority settings
iptables -t mangle -N TS
iptables -t mangle -A TS -p tcp --dport 80 -j RETURN
iptables -t mangle -A TS -p tcp --dport 80 -j TOS --set-tos
Minimize-Delay
iptables -t mangle -A TS -p tcp --sport 80 -j RETURN
iptables -t mangle -A TS -p tcp --sport 80 -j TOS --set-tos
Minimize-Delay
iptables -t mangle -A TS -p tcp --dport 20000:20200 -j RETURN
iptables -t mangle -A TS -p tcp --dport 20000:20200 -j TOS --set-tos
Maximize-Throughput
iptables -t mangle -A TS -p tcp --sport 20000:20200 -j RETURN
iptables -t mangle -A TS -p tcp --sport 20000:20200 -j TOS --set-tos
Maximize-Throughput
iptables -t mangle -A TS -j TOS --set-tos Minimize-Cost 
iptables -t mangle -A PREROUTING -j TS

-------------------------------------------------------------

Any help would be very much appreciated.

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.firehol.org/pipermail/firehol-support/attachments/20041011/a6af9efb/attachment-0002.html>


More information about the Firehol-support mailing list