<p dir="ltr">IP route is a better solution to this problem. Lots of info on source based routing with IP route on Google.</p>
<p dir="ltr">J</p>
<div class="gmail_quote">On Jun 3, 2013 7:45 AM, "Adel Qodmani" <<a href="mailto:mpcadel@gmail.com">mpcadel@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello everyone,<br><br>I'm trying to force the kernel into using a source-based routing in my kernel module.<div>What I mean by this is that I want packets with IP: X to go through the interface that has the IP: X.</div>
<div><br>So far, I found out how to do that using IPTABLES, but I want to force this policy programmatically, is there any way to do so?<br><br><br>Best regards,</div><div>Adel</div></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div>