Check your output to the command "ip route show table local". For a connected network, the kernel will select the source IP based on these rules. From memory I think, it is possible to change the "src" parameter to use a different IP, so you can play with that. Anyway, as a general rule, I don't think having multiple IP addresses on the same subnet is a good practice. I would recommend breaking that into multiple subnets so you won't fall under these edge cases. Cheers, Patrick
On Sun, 5 Jul 2020 at 15:33, Sergey Safarov <s.safa...@gmail.com> wrote: > you can also look > > https://www.usenix.org/system/files/login/articles/login_summer16_10_anderson.pdf > > On Sun, Jul 5, 2020 at 8:02 AM Sergey Safarov <s.safa...@gmail.com> wrote: > >> Required configure police based routing >> >> https://www.drdobbs.com/policy-routing-in-linux/199100936 >> >> >> https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/configuring-policy-based-routing-to-define-alternative-routes_configuring-and-managing-networking >> >> >> On Sun, Jul 5, 2020 at 2:54 AM David Villasmil < >> david.villasmil.w...@gmail.com> wrote: >> >>> I know this is more of a networking routing question, just trying to see >>> if you can find a better solution than re-architecturing the network. >>> Although maybe that’s the best approach, since this is a pretty new setup. >>> Maybe it’s better to do it now and not using work-arounds? >>> >>> On Sun, 5 Jul 2020 at 00:39, David Villasmil < >>> david.villasmil.w...@gmail.com> wrote: >>> >>>> Hello guys, >>>> >>>> I have rtpengine running on a box with ips like this: >>>> >>>> external: 172.10.0.10 (advertise 10.10.10.1) >>>> internal: 172.10.0.11 >>>> >>>> Both Ips are on the same network. >>>> When i do rtpengine_manage i set "direction=external >>>> direction=internal", and the SDP offer is correct. >>>> >>>> The problem I'm having is that when rtp tried to send to the internal >>>> network, the OS (i believe) selects the first interface (external) ip >>>> 172.10.0.10 to reach the internal network. >>>> This I suppose is not a great deal, but I would like to separate them >>>> and only use the internal for internal proxying. >>>> >>>> Help is appreciated! >>>> >>>> Thanks! >>>> >>>> Regards, >>>> >>>> David Villasmil >>>> email: david.villasmil.w...@gmail.com >>>> phone: +34669448337 >>>> >>> -- >>> Regards, >>> >>> David Villasmil >>> email: david.villasmil.w...@gmail.com >>> phone: +34669448337 >>> _______________________________________________ >>> Kamailio (SER) - Users Mailing List >>> sr-users@lists.kamailio.org >>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >>> >> _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users