* ICMP fragmentation needed packets lost
@ 2008-03-20 17:13 bossk
2008-03-31 21:07 ` Martijn Lievaart
0 siblings, 1 reply; 2+ messages in thread
From: bossk @ 2008-03-20 17:13 UTC (permalink / raw)
To: netfilter
Hi,
I have the following setup
------- ---------------- ----------------- ------------- ----------------
| B |--------| VPN-GW2 |=======| VPN-GW1 | --------| GW |--------| A |
------- ----------------- ------------------ ------------- ----------------
The server GW is in the same net (10.0.1.0/28) as VPN-GW via interface bond0 and connected to the same network (10.0.3.0/24) as server A with interface bond2.
Server A can send packets to server B which can be reached through the VPN.
Now the tricky part if server A sends a packet with a size of 1460 Bytes the VPN-GW1 sends an ICMP fragmentation-needed packet to A which
is not passing the GW, if the FORWARD policy is set to DROP.
I have enabled the following rules
iptables -A FORWARD -i bond0 -o bond2 -j ACCEPT
iptables -A FORWARD -i bond2 -o bond0 -j ACCEPT
and specials rules
iptables -A FORWARD -s 10.0.1.0/28 -d 10.0.3.0/24 -j ACCEPT
iptables -A FORWARD -s 10.0.3.0/24 -d 10.0.1.0/28 -j ACCEPT
If I set the FORWARD policy to ACCEPT then the ICMP fragmentation-needed packet is passing the GW. After I change the FORWARD policy to DROP
that packet is not passing the GW.
Has someone an idea why this happens?
Thanks,
bossk
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ICMP fragmentation needed packets lost
2008-03-20 17:13 ICMP fragmentation needed packets lost bossk
@ 2008-03-31 21:07 ` Martijn Lievaart
0 siblings, 0 replies; 2+ messages in thread
From: Martijn Lievaart @ 2008-03-31 21:07 UTC (permalink / raw)
To: bossk; +Cc: netfilter
bossk wrote:
> Hi,
>
> I have the following setup
>
> ------- ---------------- ----------------- ------------- ----------------
> | B |--------| VPN-GW2 |=======| VPN-GW1 | --------| GW |--------| A |
> ------- ----------------- ------------------ ------------- ----------------
>
> The server GW is in the same net (10.0.1.0/28) as VPN-GW via interface bond0 and connected to the same network (10.0.3.0/24) as server A with interface bond2.
> Server A can send packets to server B which can be reached through the VPN.
>
> Now the tricky part if server A sends a packet with a size of 1460 Bytes the VPN-GW1 sends an ICMP fragmentation-needed packet to A which
> is not passing the GW, if the FORWARD policy is set to DROP.
>
> I have enabled the following rules
> iptables -A FORWARD -i bond0 -o bond2 -j ACCEPT
> iptables -A FORWARD -i bond2 -o bond0 -j ACCEPT
>
> and specials rules
> iptables -A FORWARD -s 10.0.1.0/28 -d 10.0.3.0/24 -j ACCEPT
> iptables -A FORWARD -s 10.0.3.0/24 -d 10.0.1.0/28 -j ACCEPT
>
> If I set the FORWARD policy to ACCEPT then the ICMP fragmentation-needed packet is passing the GW. After I change the FORWARD policy to DROP
> that packet is not passing the GW.
>
> Has someone an idea why this happens?
>
Just a guess, but has VPN-GW1 an IP not in those ranges? Then the icmp
errors have a different source address and are logically dropped. Adding
a rule allowing RELATED traffic in should do the tric, or if you don't
use conntrack, create an explicit rule for these packets.
HTH,
M4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-31 21:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-20 17:13 ICMP fragmentation needed packets lost bossk
2008-03-31 21:07 ` Martijn Lievaart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox