Hi Andrew, I tried that (ref.: http://www.tipsternet.com/articles/advance%20routing.htm) but althought my packets do seem to be marked (when I used -J LOG with iptables I do see the appropriate packets being logged) but when Asterisk sends back the response, the "mark" seems either to be gone or ignored. I am no routing expert, but coming out of Asterisk the responses back aren't marked are they? I mean, strictly speaking those aren't the same packets as the ones that came in.
Mike > -----Original Message----- > From: [email protected] [mailto:asterisk-users- > [email protected]] On Behalf Of Andrew Furey > Sent: Thursday, May 27, 2010 20:32 > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] How to have Asterisk respond from the IP > address used for registration > > On 28/05/2010, Mike <[email protected]> wrote: > > That was a simplified example. I actually have two links from different > > ISPs, totally different networks. Those on provider A should talk to > > provider`s A IP address and have their answers come back from provider's > A > > IP, and those on provider B should talk to my provider B NIC and get the > > response back from that IP. > > I think this is more a router issue - we do this with three links, > going into a single Linux-based Linksys which acts as the single > gateway for the LAN (so it has 4 interfaces). You need to look into > the "ip" command, and packet mangling to mark connections as coming > from each provider (so that all related packets go back the same way). > > HTH > Andrew > > -- > Linux supports the notion of a command line or a shell for the same > reason that only children read books with only pictures in them. > Language, be it English or something else, is the only tool flexible > enough to accomplish a sufficiently broad range of tasks. > -- Bill Garrett > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
