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?
August 4, 2010 at 10:46 am
#50853
Member
And that did work, just how I wanted:
admin@zeroshell: 03:37 AM :~# iptables -t mangle -A NetBalancer -p all -s 96.229.135.204 -j MARK --set-mark 101
admin@zeroshell: 03:39 AM :~# iptables -t mangle -A NetBalancer -p all -s 173.58.136.98 -j MARK --set-mark 103
then running in a loop each time when running wget with –bind-address=$ip it showed the expected IP as the result:
admin@zeroshell: 03:42 AM :~# for i in `seq 1 20`; do echo 173.58.136.98; wget --bind-address=173.58.136.98 -O - -q http://208.97.143.21/ip.php; echo; echo 96.229.135.204; wget --bind-address=96.229.135.204 -O - -q http://208.97.143.21/ip.php; echo; sleep .5s; done
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204
173.58.136.98
173.58.136.98
96.229.135.204
96.229.135.204