public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* route to deferent gateways depend on the protocol
@ 2004-12-20  8:17 Kev
  2004-12-20 16:42 ` Ray Olszewski
  0 siblings, 1 reply; 4+ messages in thread
From: Kev @ 2004-12-20  8:17 UTC (permalink / raw)
  To: linux-newbie

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 ?

thanks 
Kev
------- 
Web Hosting at a cheap price, starting at $1 per month with your own domain, .COM, .NET, .LK, .ORG etc..
PHP, CGI, Perl, MySQL, Cpanel 9, POP3, POP3s, SMTP, IMAP, FTP,
http://www.orbitsl.net

-
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: route to deferent gateways depend on the protocol
  2004-12-20  8:17 route to deferent gateways depend on the protocol Kev
@ 2004-12-20 16:42 ` Ray Olszewski
  2004-12-20 17:32   ` J.
  2004-12-21  2:21   ` Re[2]: " Kev
  0 siblings, 2 replies; 4+ messages in thread
From: Ray Olszewski @ 2004-12-20 16:42 UTC (permalink / raw)
  To: Kev, linux-newbie

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: route to deferent gateways depend on the protocol
  2004-12-20 16:42 ` Ray Olszewski
@ 2004-12-20 17:32   ` J.
  2004-12-21  2:21   ` Re[2]: " Kev
  1 sibling, 0 replies; 4+ messages in thread
From: J. @ 2004-12-20 17:32 UTC (permalink / raw)
  To: linux-newbie

On Mon, 20 Dec 2004, Ray Olszewski wrote:

> 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 ?

For registerd services one could try to filter and redirect based on
src/dest port but that is not rocksolid. Is the smtp server at your
intranet or internet side ? If it's in your local net shouldn't be much of
a problem.. with iptables or pf. 

> 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

J.

-
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re[2]: route to deferent gateways depend on the protocol
  2004-12-20 16:42 ` Ray Olszewski
  2004-12-20 17:32   ` J.
@ 2004-12-21  2:21   ` Kev
  1 sibling, 0 replies; 4+ messages in thread
From: Kev @ 2004-12-21  2:21 UTC (permalink / raw)
  To: Ray Olszewski; +Cc: linux-newbie

 
> 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.

im testing with iptables, if things go right, i will let you all knows,
if any one know how to do this, plz let me know :)

------- 
Web Hosting at a cheap price, starting at $1 per month with your own domain, .COM, .NET, .LK, .ORG etc..
PHP, CGI, Perl, MySQL, Cpanel 9, POP3, POP3s, SMTP, IMAP, FTP,
http://www.orbitsl.net


--------------------------
Email Disclaimer 
http://www.metalanka.com/email/email.html 

Sent on 21/12/2004 by Kev to Ray Olszewski (ray@comarre.com).

-
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-21  2:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-20  8:17 route to deferent gateways depend on the protocol Kev
2004-12-20 16:42 ` Ray Olszewski
2004-12-20 17:32   ` J.
2004-12-21  2:21   ` Re[2]: " Kev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox