Hi Tom, I'm sorry that I come back so late. I was busy with other issues.
I tried both of your suggestions but neither has helped me. Actually I was looking for a port based routing mechanism but it seems that it is not possible even with the so valuable ip-tables of linux. (weird ?) Now I have another idea; to keep the port 5060 of ppp0 busy so that Asterisk can not listen on it. Is there a dummy app which can do that ? (I am looking for an app with very few cpu utilization so that it doesn't get a burden on the cpu) Or even, would it be possible to keeping that port busy using ip-tables ? Btw, my Shorewall configuration works by tracling the pakets on both ISP connections. So if a connection is made through ppp1, all packets of the same session go through that interface. Why doesn't this work for packets incoming to that interface ? Thanks, ilker -----Original Message----- From: Tom Eastep [mailto:teas...@shorewall.net] Sent: Monday, March 24, 2014 11:15 PM To: shorewall-users@lists.sourceforge.net Subject: Re: [Shorewall-users] multi ISP - port based routing On 3/24/2014 1:43 PM, İlker Aktuna wrote: > Hi, > > Thanks for your comment but as I've already stated Asterisk is limited > on listening to one or all interfaces. I had thought that Linux kernel > iptables had features to cover such requirements. It is interesting > that we can't. > > Btw, I am ready to try new configurations. Do you see any other method > to arrange routing in a way that routing is done per desstinatipon / > sorce port ? I can think of two things to try: 1 - Swap the order in which you bring up your ppp interfaces so that the one that you want Asterisk to use is started first. Warning: that will result in the names of the interfaces being swapped. 2 - Switch the Shorewall configuration to use USE_DEFAULT_RT=Yes. I would try them in that order. -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________ ------------------------------------------------------------------------------ _______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users