Re: destination-port-based routing for multiple links

2007-01-29 Thread Soner Tari
Thanks a lot for all the replies, public and private (especially Berk for detailed explanations). It turns out that my nat rule was not complete/correct (just as all of the replies had implied this possibility). So, for the record, the rules I'm using right now are as follows, and work perfectly:

Re: destination-port-based routing for multiple links

2007-01-29 Thread J.C. Roberts
On Sunday 28 January 2007 18:26, Soner Tari wrote: > On Sun, 2007-01-28 at 16:39 -0800, J.C. Roberts wrote: > > On Sunday 28 January 2007 03:03, Soner Tari wrote: > > > I'm running Postfix on OpenBSD and have multiple external links > > > on the same box. I want outgoing smtp connections to be rout

Re: destination-port-based routing for multiple links

2007-01-28 Thread Stuart Henderson
On 2007/01/28 13:03, Soner Tari wrote: > I'm running Postfix on OpenBSD and have multiple external links on the > same box. I want outgoing smtp connections to be routed to ext_if2, but > the rest to ext_if1. To achieve this, default route being ext_if1, I > tried a couple of things: > > pass out l

Re: destination-port-based routing for multiple links

2007-01-28 Thread Soner Tari
On Sun, 2007-01-28 at 16:39 -0800, J.C. Roberts wrote: > On Sunday 28 January 2007 03:03, Soner Tari wrote: > > I'm running Postfix on OpenBSD and have multiple external links on > > the same box. I want outgoing smtp connections to be routed to > > ext_if2, but the rest to ext_if1. > > why? Beca

Re: destination-port-based routing for multiple links

2007-01-28 Thread J.C. Roberts
On Sunday 28 January 2007 03:03, Soner Tari wrote: > I'm running Postfix on OpenBSD and have multiple external links on > the same box. I want outgoing smtp connections to be routed to > ext_if2, but the rest to ext_if1. why? Without knowing the *problem* you are trying to solve, it looks like y

Re: destination-port-based routing for multiple links

2007-01-28 Thread Soner Tari
One correction, "keep state" in the rule prevents the duplicate to $ext_if2. So to have the duplicate, it should have been like the following: pass out log quick route-to ($ext_if2 $ext_gw2) \ proto tcp to any port smtp user _postfix Sorry, On Sun, 2007-01-28 at 13:03 +0200, Soner Tari wrote: