Skip to contentSkip to conversation

libiptc

DISCUSSION eremin 2 participants 2 messages Jul 6, 2004 – Jul 7, 2004 netfilter

lore
Share & tools
lore

eremin

author
#0 lore raw

Hello netfilter-devel,

How with the libiptc to work with ports? (i.e. source-port or dest-port)? If it is impossible, what to use?

Signature · 3 lines
Best regards,

Alex
#1 lore raw
Quoted 2 lines · eremin

How with the libiptc to work with ports? (i.e. source-port or dest-port)? If it is impossible, what to use?

Use iptables / iptables-restore, not libiptc.

For details how libiptc works with ports see the source of the tcp/udp modules or any other match module working with ports. ports is not a primitive in iptables and is implemented via protocol dependent matches (extensions directory).

Regards
Henrik