From: Roberto Nibali <ratz@drugphish.ch>
To: Matthieu Turpault <mt.netfilter@comelis.fr>,
netfilter@lists.netfilter.org
Subject: Re: ip_conntrack module, advanced routing and multiple ISP
Date: Tue, 16 Sep 2003 13:30:57 +0200 [thread overview]
Message-ID: <3F66F471.5070009@drugphish.ch> (raw)
In-Reply-To: <MGEFIJGLOCLFFKBKAFEPGEDIEHAA.mt.netfilter@comelis.fr>
Matthieu Turpault wrote:
> Who can share his opinion on this matter?
>
> Receiving *no answer at all* usually means one of 2 things:
I doubt it in this case.
> 1) extremely ignorant question, not even worth a lousy RTFM reply :-(
> 2) brilliant question, nobody ever came up with such a marvelous idea :-)
<OT>
3) most people don't get paid to do support on MLs, so they choose which
reports they want to reply to; yours seems complicated a first sight
so most people don't bother reading it through.
4) the question maybe is not asked in an intelligent way
5 ...) <add reasons yourself>
</OT>
>> I have a firewall with 4 NIC:
>> - 3 interfaces connected to the net (eth2, eth3, eth5) by
>> 3 ISP;
>> - 1 interface connected to the internal network.
>>
>> eth2 is connected to a router (10.0.1.1) which does masquerading.
>>
>> Outcoming request (from the internal network to the net) are load
>> balanced to the 3 ISP (cf my configuration at the end of the mail).
>>
>> All incoming request from the net to internal network by port
>> http, pop3, imap, ftp, smtp, https are correctly routed.
Ok.
>> All outcoming request from the internal network to the net by
>> port http, pop3, imap are correctly routed.
Ok
>> The problem is that I can't connect from the internal network to
>> a ftp server of the net. In fact, I can connect to a ftp server
>> of the net but the "ls" command failed the most of the time (1/3).
>> I use passive mode.
I suspect it's a persistency problem due to the nature of how ftp works.
>> If I add the route by the command
>> ip route add <@ftpServer> via <@GATEWAY_ISP2>
>> it is OK
Yes, this could be a persistency problem. You're doing your load
balancing on L3 with the iproute framework. Unfortunately the current
routing implementation to date has (AFAIK) no means to provide
persistency for connections.
>>[root@firewall firewall]# ip route list
>><@NETMASK_ISP2>/30 dev eth5 proto kernel scope link src <@ISP2>
>>10.0.3.0/30 dev eth5 scope link
>>10.0.1.0/24 dev eth2 scope link
>>10.1.0.0/24 dev eth0 scope link
>><@NETMASK_ISP3>/24 dev eth3 scope link
>>127.0.0.0/8 dev lo scope link
>>default
>> nexthop via 10.0.1.1 dev eth2 weight 1 onlink
>> nexthop via <@GATEWAY_ISP2> dev eth5 weight 1 onlink
>> nexthop via <@GATEWAY_ISP3> dev eth3 weight 1 onlink
Those lines could be the culprit. When you connect to an ftp server you
might go over one line, then for the DATA connection you will go over
the other and thus you'll confuse netfilter. But I haven't looked at
your whole configuration as I do not have enough time.
A tcpdump session will most probably reveil the real problem to you. If
not, add -j LOG statements to your packet filter configuration and
figure out where the packets sink through your mesh of rules.
HTH and best regards,
Roberto Nibali, ratz
next prev parent reply other threads:[~2003-09-16 11:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-15 10:28 ip_conntrack module, advanced routing and multiple ISP Matthieu Turpault
2003-09-16 11:02 ` Matthieu Turpault
2003-09-16 11:25 ` Mickael DILY
2003-09-16 11:30 ` Roberto Nibali [this message]
2003-09-16 11:57 ` Ray Leach
2003-09-16 12:23 ` Cedric Blancher
2003-09-17 9:13 ` Matthieu Turpault
-- strict thread matches above, loose matches on Subject: below --
2003-09-15 8:55 Matthieu Turpault
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F66F471.5070009@drugphish.ch \
--to=ratz@drugphish.ch \
--cc=mt.netfilter@comelis.fr \
--cc=netfilter@lists.netfilter.org \
--cc=ratz@tac.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.