From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ray Olszewski Subject: Re: route to deferent gateways depend on the protocol Date: Mon, 20 Dec 2004 08:42:11 -0800 Message-ID: <5.1.0.14.1.20041220083554.01f46718@celine> References: <20041220141714.BDCE.SAVAGE-GARDEN@hanikamail.com> Mime-Version: 1.0 Return-path: In-Reply-To: <20041220141714.BDCE.SAVAGE-GARDEN@hanikamail.com> Sender: linux-newbie-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit To: Kev , linux-newbie@vger.kernel.org At 02:17 PM 12/20/2004 +0600, Kev wrote: >Hi all, > >is it possible to route to deferent gateways depend on the protocol (Eg:SMTP) >using Linux routing tabes or iptabels, if so does any one know how to do >it ? With respect to routing tables, the answer is a definite no. Routing tables operate only at the IP-address level (network layer), and protocols are the next level up (transport layer -- TCP or UDP). With respect to iptables ... I cannot immediately think of a way to do this, but iptables offers an awful lot of flexibility, so I would not rule out some tricky solution, especially in a context where the gateways are NATing routers. But I have nothing specific to suggest. >thanks >Kev - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs