Skip to contentSkip to conversation

ipv4options broken...

DISCUSSION Cody Tubbs 1 participant 1 message May 5, 2006 netfilter

lore
Share & tools
lore

Cody Tubbs

author
#0 lore raw

I've pom'd the latest version, and have iptables 1.3.5 installed on FC4.

Everything works fine except --lsrr and --ssrr. I'm using "hping --lsrr <someip> <targetip>" (and --ssrr respectively) to test the ip options. tcpdump/ethereal show the flags being set correctly, yet ipv4options is lacking the capability to catch them.

The rest of the ipv4options functionality work fine.

snippet:

$IPTABLES -N LOOSE_SR_MATCH
$IPTABLES -A LOOSE_SR_MATCH -j LOG --log-level info --log-prefix "LSRR:
" --log-tcp-sequence --log-tcp-options --log-ip-options $IPTABLES -A LOOSE_SR_MATCH -j DROP

$IPTABLES -N STRICT_SR_MATCH
$IPTABLES -A STRICT_SR_MATCH -j LOG --log-level info --log-prefix "SSRR:
" --log-tcp-sequence --log-tcp-options --log-ip-options $IPTABLES -A STRICT_SR_MATCH -j DROP

$IPTABLES -A INPUT -m ipv4options --lsrr -j LOOSE_SR_MATCH $IPTABLES -A INPUT -m ipv4options --ssrr -j STRICT_SR_MATCH

(I've tried specifying "-p ip" and -i accordingly as well, all with the same results). Again, the rest of the flags work fine, ie: --rr (record route) catches properly when using "hping -G <targetip>"

-Cody Tubbs