Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have 3 external IPs, assigned on eth0, eth0:1 and eth0:2.
I have a game bot that connects to a game network, but the game network only accepts a limit of 5 connection from same ip. The game network has multiple IP addresses. (e.g. game.com resolves to 1.1.1.1, 1.1.1.2, 1.1.1.3 etc)
How do i specify that certain bot connects via eth0:1 and eth0:2? Currently all bots are using eth0's ip.
Is there a place on the client's side that allows you to change the host? If so simply change the host parameter to one of the other IPs. That should do the trick.
Thanks alunduil ... Tried it, didn't work The initial connecting process is still using eth0 i guess....
I'm thinking of something like "if connect to 1.1.1.1 to 1.1.1.3 use eth0, if connect to 1.1.1.4 to 1.1.1.6 use eth0:1" etc. Is that possible with iptables?
The first problem I see is that you have one interface being used for all outgoing traffic. You need one entry for each interfaces IP and subnet in the routing table unless, are you trying to get a round robin style load balance to happen?
yeah, i compile and run ghost bot (www.codelain.com) on linux, and it comes to a point that i need to get the 9th bot to connect to the same realm (useast.battle.net) with my second external IP address. Limit per realm IP is 8. Hope i made it clear.
thanks for the input, nimnull. A quick google on your suggestion returns me this before i actually try it on my own server. Will try it later (because my ip address(es) is not continuous...) and let you know the result while i'll keep googling further
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.