Skip to contentSkip to conversation

iptables problem

DISCUSSION Alexandre Carlos 1 participant 1 message Nov 18, 2002 netfilter

lore
Share & tools
lore
#0 lore raw

My experimental backbone is the following:

                                         B
                                    3.4/|\2.4
                                       /5.4\
                                      /   |    \
   (A1)                     1.3/     |     \2.2
10.1.1.2--10.1.1.1 -- A     |      C----192.168.67.91---192.168.67.90 (C1)
                                1.1\    |     /4.2
                                      \   |    /
                                       \5.3/
                                    1.3\|/4.3
                                         D

I´m using IPTABLES version 1.2.4-dscp do set up the tos value of the packets. I´m creating the following rule on A and C

iptables -A PREROUTING -t mangle -p icmp -j FTOS --set-ftos 0x28 or iptables -A FORWARD -t mangle -p icmp -j FTOS --set-ftos 0x28

But when i try do ping from A1 to C1 or from C1 to A1

The chechshum of the ip on the reply message is incorrect, so the packet is droped on (B) or (D)

I would like to know, how can i avoid dropping the packet and still using the same version of iptables and rules

Alex