This will only work if the linux server is originating the packets, in which case you can probably just as well use the machine's IP address...DutchDaemon said:
Quoted from ipfw(8):vlad2005 said:So aragon, how can filter marked packets using ipfw, because already I'm using this firewall?
iptos spec
Matches IPv4 packets whose tos field contains the comma separated
list of service types specified in spec. The supported IP types
of service are:
lowdelay (IPTOS_LOWDELAY), throughput (IPTOS_THROUGHPUT),
reliability (IPTOS_RELIABILITY), mincost (IPTOS_MINCOST),
congestion (IPTOS_ECN_CE). The absence of a particular type may
be denoted with a `!'.
ipprecedence precedence
Matches IPv4 packets whose precedence field is equal to
precedence.
ipfw add 1000 allow ip from any to any iptos lowdelay
ipfw add 1000 permit ip from any to any ipprecedence 1 iptos !lowdelay,throughput,!reliability,!mincost,!congestion
ipfw add 1000 skipto 5000 ip from any to any ipprecedence 1
ipfw add 1001 skipto 6000 ip from any to any ipprecedence 2
freebsd# ipfw add 20 count ip from any to any ipprecedence 1 iptos !lowdelay,throughput,!reliability,!mincost,!congestion
lowdelay,throughput,!reliability,!mincost,!congestion: Event not found.
ipfw add 20 count ip from any to any ipprecedence 1 iptos \!lowdelay,throughput,\!reliability,\!mincost,\!congestion
ipfw add 20 count ip from any to any ipprecedence 1 iptos '!lowdelay,throughput,!reliability,!mincost,!congestion'
ipfw add 10 modip dscp:AF11 ip from any to any
ipfw add 20 count ip from any to any ipprecedence 1 iptos \!lowdelay,throughput,\!reliability,mincost,\!congestion
ipfw add 20 count ip from any to any dscp AF11
freebsd# ipfw show
00010 959 82291 modip dscp:AF11 ip from any to any
00020 24 1584 count ip from any to any dscp AF11
65535 1099 92987 allow ip from any to any
Should be !mincost.vlad2005 said:Then i try to intercept these packets. According with what i read, this seam to be like this.
Code:ipfw add 20 count ip from any to any ipprecedence 1 iptos \!lowdelay,throughput,\!reliability,mincost,\!congestion