Home Page › Forums › Network Management › Firewall, Traffic Shaping and Net Balancer › Bind on application is over-ridden by netbalancer? › Reply To: Bind on application is over-ridden by netbalancer?
Ok, so if I am understanding you correctly from this output (my two connections 67/65):
admin@zeroshell: 06:01 PM :~# ip rule ls
0: from all lookup local
32764: from all fwmark 0x67 lookup 103
32765: from all fwmark 0x65 lookup 101
32766: from all lookup main
32767: from all lookup default
admin@zeroshell: 06:01 PM :~#
I can just add rules like I have on my box for 101/103?
ip rule add from $LINE1_IP table 101
ip rule add from $LINE2_IP table 103
and I should be able to reliably bind a specific program to a specific IP?
If so I assume with dynamic IPs I would need to write a script that grabbed the IP of the interface. Where would the best place to put this script in Startup/Cron?