Skip to contentSkip to conversation

what is blocking packets before netfilter?

DISCUSSION Horacio J. Peña 2 participants 3 messages Mar 5, 2005 – Mar 7, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

I have:

# iptables -L -n -t mangle -v
Chain INPUT (policy ACCEPT 19862 packets, 1603K bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 LOG        all  --  eth0   *       192.168.2.0/24       0.0.0.0/0           LOG flags 0 level 4
# iptables -L -n -t filter -v
Chain INPUT (policy ACCEPT 17061 packets, 1410K bytes)
 pkts bytes target     prot opt in     out     source               destination
    0     0 LOG        all  --  eth0   *       192.168.2.0/24       0.0.0.0/0           LOG flags 0 level 4
# tcpdump -nvvvpe icmp
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
15:44:34.189337 00:08:a1:6c:39:00 > 00:0a:e6:2d:90:77, ethertype IPv4 (0x0800), length 98: IP (tos 0x0, ttl64, id 1016, offset 0, flags [DF], length: 84) 192.168.2.1 > 10.5.0.1: icmp 64: echo request seq 63491

00:0a:e6:2d:90:77 is my MAC.

/proc/sys/net/ipv4/conf/*/rp_filter are 0.
/proc/sys/net/ipv4/conf/*/forwarding are 1.

What could be eating the packets? Shouldn't iptables see anything that comes to the interface?

Thanks,
HoraPe
---
Horacio J. Peña
[email protected]
[email protected]

#1 lore raw
Quoted 1 line · Horacio J. Peña

What could be eating the packets? Shouldn't iptables see anything that comes to the interface?

Impossible to answer without knowing if 10.5.0.1 is a local or remote IP.

Phil

#2 lore raw
Quoted 2 lines
Quoted 1 line

What could be eating the packets? Shouldn't iptables see anything that comes to the interface?

Impossible to answer without knowing if 10.5.0.1 is a local or remote IP.

Remote. Reformulating the question, what is there between the packet hitting the eth driver and it hitting iptables that could block it. My first thoughts were IP forwarding (if it would be disabled, packets to non-local addresses should be blocked) and rp_filter (as the box's route for the src address isn't that way)

What else is there between the eth driver and iptables INPUT ?

Thanks,
HoraPe
---
Horacio J. Peña
[email protected]
[email protected]