Hi, I have a problem I was hoping to solve with iptables, but any other solution will be appreciated.
I have a tool I use to overload my DB server with queries (for load balancing tests).
The problem I have with this tool is that it can only run from a single IP address, when I need to run it with multiple addresses.
I've created aliases on my NIC like so:
eht0 10.0.0.1/24
eht0:0 10.0.0.2/24
eht0:1 10.0.0.3/24
eht0:2 10.0.0.4/24
And now I want to run my tool simultaneously from these 4 addresses and have the source IP be different for each run.
e.g:
Code:
change_route eth0 && db_load_tool &
change_route eth0:0 && db_load_tool &
change_route eth0:1 && db_load_tool &
change_route eth0:2 && db_load_tool &
I don't have a lot of experience with iptables or routing so I'm hoping you guys could help me out.
Thanks.