Skip to contentSkip to conversation

about fw classifier

LARTC Frank Abel Cancio Bello 2 participants 3 messages Jun 20, 2006

lore
Share & tools
lore
#0 lore raw

Hi all!

On http://lartc.org/howto/lartc.adv-filter.html I read that a classifiers available bases the decision on how the firewall has marked the packet and on
http://lartc.org/howto/lartc.qdisc.filters.html the following example:

"tc filter add dev eth1 protocol ip parent 1:0 prio 1 handle 6 fw flowid 1:1" "iptables -A PREROUTING -t mangle -i eth0 -j MARK --set-mark 6"

My question is:

In the actuality exist a way of build a classifier based on netfilter mark value associated with a connection instead of netfilter mark value associated with the packet?

Thanks in advance

Salute
Frank Abel

__________________________________________

XIII Convención Científica de Ingeniería y Arquitectura 28/noviembre al 1/diciembre de 2006
Cujae, Ciudad de la Habana, Cuba
http://www.cujae.edu.cu/eventos/convencion
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 6 lines · Frank Abel Cancio Bello

Hi all!

On http://lartc.org/howto/lartc.adv-filter.html I read that a classifiers available bases the decision on how the firewall has marked the packet and on http://lartc.org/howto/lartc.qdisc.filters.html the following example:

Quoted 8 lines

"tc filter add dev eth1 protocol ip parent 1:0 prio 1 handle 6 fw flowid 1:1" "iptables -A PREROUTING -t mangle -i eth0 -j MARK --set-mark 6"

My question is:

In the actuality exist a way of build a classifier based on netfilter mark value associated with a connection instead of netfilter mark value associated with the packet?

yes, iptables CONNMARK associate MARKs wtih conntrack'ed connections.

It is in kernel's mainlin since 2.6.12, you can find some introductory infromation[1] over internet or do man iptables for furter information.

[1]http://home.regit.org/?page_id=7

Signature · 5 lines
Luciano
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
#2 lore raw
In reply to Frank Abel Cancio Bello
Quoted 17 lines · Luciano Ruete
Quoted 7 lines · Frank Abel Cancio Bello

Hi all!

On http://lartc.org/howto/lartc.adv-filter.html I read that a classifiers available bases the decision on how the firewall has marked the packet and on http://lartc.org/howto/lartc.qdisc.filters.html the following example:

Quoted 8 lines

"tc filter add dev eth1 protocol ip parent 1:0 prio 1 handle 6 fw flowid 1:1" "iptables -A PREROUTING -t mangle -i eth0 -j MARK --set-mark 6"

My question is:

In the actuality exist a way of build a classifier based on netfilter mark value associated with a connection instead of netfilter mark value associated with the packet?

Quoted 6 lines

yes, iptables CONNMARK associate MARKs wtih conntrack'ed connections.

It is in kernel's mainlin since 2.6.12, you can find some introductory infromation[1] over internet or do man iptables for furter information.

[1]http://home.regit.org/?page_id=7

Thanks!

All seem that is impossible make a tc filter with connmark directly.

Salute
Frank Abel

__________________________________________

XIII Convención Científica de Ingeniería y Arquitectura 28/noviembre al 1/diciembre de 2006
Cujae, Ciudad de la Habana, Cuba
http://www.cujae.edu.cu/eventos/convencion
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc