OpenKore / openkore

A free/open source client and automation tool for Ragnarok Online
http://openkore.com
Other
1.29k stars 1.05k forks source link

Openkore Hosted Linux #1318

Closed Zelecktor closed 6 years ago

Zelecktor commented 7 years ago

Hello Comunity:

Already im using this host service: https://goo.gl/jkoegs Very nice, fast and i got no problem on the performance.

But today i find another host service, very similar but the thing is that this one offers an "Aditional IP" for only 1usd. here's the page: https://goo.gl/sAR7xx

Something that they told me is that the aditional IP means two IP on same server or same root, could be more than two if i hire more. The thing is that the aditional IP depends upon the software, if openkore allows to use additional IP then it can be used, if it does not allows then you cannot.

To dont buy something that i cant use and dont waste my money. My question: Can openkore allow to use the aditional IP? and if it is possible, how to do it?

sin titulo

sctnightcore commented 7 years ago

It is a great idea. XD WAIT WAIT

Zelecktor commented 7 years ago

I can make a guide explaining how to run openkore on linux (you need to install a few libraries to compile). Just a list commands on the SSH console and you are done. (very easy and fast, no more than 5minutes setup)

But first i need to know if openkore allows to use the aditional IP

Zelecktor commented 7 years ago

I think that i found it but someone can confirm this?.

On config.txt

bindIp [] If your computer has multiple IP addresses, you can select which one to use. If you are unsure, you should leave this option empty.

there i should use my aditional IP?

oleokoong commented 7 years ago

As I know openkore doesn’t support this feature, you have to find software support these feature.. $1/ip still expensive, you can try find proxy , lot more cheaper

Zelecktor commented 7 years ago

Proxy usually decrease the performance too much, the ping increase and make the bot useless. But its a good point. The thing is, do you know how to do it? If i hire the host with aditional IP, do you know how to use openkore, one bot with the normal root IP and another with that aditional IP?

oleokoong commented 7 years ago

No idea, i want move to Linux too, my bus server hit maximum limit already.. there is 60 client support ilon window

Zelecktor commented 7 years ago

@oleokoong can i contact you?

oleokoong commented 7 years ago

I’m not professional, you better ask at discord or irc

Zelecktor commented 7 years ago

You have some ideas that would help me a lot if you are agree in share, and i have some ideas for you if you want to try openkore on linux. Im not a professional also.

oleokoong commented 7 years ago

Add my discord leoz#1630 I’m interested running bus server raspberry pi, and openkore run on window

Zelecktor commented 7 years ago

Added. Hahaha i can do. I have a raspberry pi cluster at home (3rpi). I dont leave my PC botting anymore

Kelberwitz commented 7 years ago

i think this can helpful you to find a way to solve your question. at past i was try to use multiple ip for my bot on my ubuntu server its work fine .

https://www.tecmint.com/create-multiple-ip-addresses-to-one-single-network-interface/

windhamwong commented 7 years ago

@Zelecktor I believe we already solved the issue.

As you know you got multiple IP addresses on your box (I assume you have multiple interfaces?)

Please go to config.txt to set the bindIP to your local IP address of the interface you want to use.

i.e. bindIP 8.8.8.8 #If 8.8.8.8 is the local IP address listed on your system.

For more details: http://openkore.com/index.php/BindIp

oleokoong commented 7 years ago

how about linux for proxy? just want to know xD

windhamwong commented 7 years ago

@oleokoong bindIP is based on the local IP address assigned to interfaces. If you would like to use proxy with openkore, I recommend you to seek for tools to redirect particular tools for doing it, i.e. proxychains.

At last, if you are using proxy, please make sure the proxy is SAFE.

oleokoong commented 7 years ago

@windhamwong im using proxy on window OS, now do some research for linux OS thanks for your info

windhamwong commented 7 years ago

@oleokoong If you are using on Windows, I know there are many tools for redirecting specific process traffic to the proxy. I don't have tools here and I don't know the names. You need to do the research on this.

Zelecktor commented 7 years ago

I if I try this at home i will show always the same public IP because my ISP doesnt provide a "second" IP to my modem. I put this example, even if my router can redirect via proxy a conection to a particular device on their local IP: My PC : 192.168.1.101

Second PC : 192.168.1.102 <-- (using proxy on 297.183.43.92 for example previusly configured on my router, bindIp is 192.168.1.102)

raspberry Pi-1: 192.168.1.110 raspberry Pi-2: 192.168.1.112 raspberry Pi-3: 192.168.1.113

No matter the bots that i run on each device, all of them they show my home public IP given by my ISP.

My question is to do it on a vps (virtual private server) or a Cloud hosting, that offers an aditional IP on the same root user. @windhamwong we can say that yes, that aditional IP is also a local IP on this case, but theorically it must be the same output IP.

Kelberwitz commented 7 years ago

@Zelecktor i have confused with this , for clearly your question is you have 1 cloud or vps server with 2 more ip. and you want to run 2 bot. with a different ip address right ?

Zelecktor commented 7 years ago

@Kelberwitz Yes, thats exactly what i want. Is one cloud vps with 2 (or more IPs) but those IPs are attached at the same root user. I cant choose what IP to connect, because it is just one IP root.

(this is an example, is not the real IP, because i dont hire it yet, but i have hired some in the past. server IP: 194.394.23.29 User: root pass: lalalala

but in my page host will say: (already i asked that to the sales department) server IP: 194.394.23.29 Additional IP 1: 183.245.93.21 Additional IP 2: 193.173.29.13

I enter on the server and pre-configure 3 openkore folder, for bot1, bot2 and bot3. on config.txt and I put this (ovbiusly with the command screen bash and run each bot in different screens):

bot1: bindIp: none bot2: bindIP: 183.245.93.21 bot3: bindIP: 193.173.29.13

But those bots are running in the same server or root user. My question is: If i do that, there wont be any issue, on that case bot2 and bot3 wont get disconect, because im using the correct IPs wich they are made to. And second, server will recognize like each bot have differents IPs, in the case that if I bot each bots on different maps, and GM catch one, example, bot1 and it gets banned. nothing happens to bot2 and bot3 and they will continue botting (while i can connect bot1, bot2 and bot3 to bus plugins and bot1 can warn bot2 and bot3)

Fadreus commented 7 years ago

Not exactly answering your question but have you considered using VM + VPN? What you are trying to achieve doesn't necessarily required VPS if you have good machine.

Zelecktor commented 7 years ago

The machines are not problem for me. Remember that iRO Re:Start let you run 15accounts with the same IP. But it is too risky. Have in mind if you get banned, then to lost 15 accounts really hurts.

Im from Santiago, Chile. And I have about 150-180ping. (no problem for playing and botting) but if i use VPN (even goods and paid VPN on Los Angeles, CA) the ping increase so much (to 350-400ms) that i cant bot. If you ask me, how to use vpn on my cloud servesr, i dont know how to do it but i think that it is not nessesary and just a waste of money. Have in mind that one bot on linux consumes about 55-65MB RAM and about 0.125-0.15 Ghz of CPU. For Cloud VPS of: 128MB = you may run 2bots 256MB = you may run 3bots 512MB = you may run 5bots 1GB = you may run 11bots 2GB = you may run 16bots (if your CPU have, 2 cores, 2.8Ghz)

To have differents vps (cheap cloud servers of 1-3usd month) hired along the US (differents datacenters) is one solution, and pretty good solution because bots runs with 5-40ms ping. The performance is about 25-30% better if i run the same bots at my home, and obviusly more secure.

The thing is for me, is more cheaper to hire a 1GB RAM and Additional IPs than hire 128-256MB vps in differents locations. I cannot use Bus if they are separate (and if it is possible i would like to learn)

Kelberwitz commented 7 years ago

@Zelecktor after i read your last 2 commend i think your solved this question

Can openkore allow to use the aditional IP? and if it is possible, how to do it?

right ?

Zelecktor commented 7 years ago

@Kelberwitz None answer me directly.

If i do that, there wont be any issue, on that case bot2 and bot3 wont get disconect, because im using the correct IPs wich they are made to.

As i understand, to use aditional IP, we use bindIp on config.txt but that is adapted to use local IP, for aditional IP on vps we dont know if it works (need to be tested)

And second, server will recognize like each bot have differents IPs, in the case that if I bot each bots on different maps, and GM catch one, example, bot1 and it gets banned. nothing happens to bot2 and bot3 and they will continue botting

Also for using aditional IP, there is no warranty that bot1, bot2 and bot3 will show diferents public IP, mostly because they are running in the same device and they could show the same MAC adress, so the same first IP. (also need to be tested)

Kelberwitz commented 7 years ago

i'm not sure does openkore have an easy way to checking bot ip.

but if you need to check about this in my mind have an easy way : you must run a 1 ragnarok test server and connect your bot to them after that you can check your bot ip in there login sql stucture.

Zelecktor commented 7 years ago

@Kelberwitz Thats a good idea, too much invest for a simple test but i can do that challenge. To do it i need an emulator package, emulator, client (with files) and an openkore pre-configured (server information like serverType and recvpackets). Im too lazy to do all the work. Im not like mythbusters to make test and test, but i apreciate all help of cominuty

Fadreus commented 7 years ago

I finally understand what you are trying to achieve going such sophisticated work. Good luck with that as I can ensure you it won't always work but there is hope. All you need is lady luck. There are few more things you neglected and it will be your downfall eventually.

Check out forum, there are few discussion towards similar objective. While some end up dead, others won't share result. This won't be Openkore Issue anymore.

Zelecktor commented 7 years ago

Yeah. I dont negate that is impossible to fool GMs but is not impossible make his work harder. If GM wants to ban all my bots, he will have to spend 5 hours in stead of 5 seconds just checking the bots with same IP.

If i can reduce the bans using that method, is a small step for me but a great step for all comunity.

alisonrag commented 7 years ago

any update? did the bindIp worked?

asiphm commented 6 years ago

just use screen. one screen per botting. just 1 vps, 1 ip.

Zelecktor commented 6 years ago

it doesnt work. All IPs from VPS are from the same node. You will show the same IP. On linux there is a program called ProxyChain, you need to use a proxy socks5 to each screen for openkore, that works. You can run 15 bots from the same VPS, same IP but each one with different proxy socks5 (apply only for one screen). Thats how it works, if one of you bot get banned, no problem, the others 14 will be safe. Also with bus command plugin, if one bot gets cought, it can advice the others to disconect or go to city, trigger a macro, etc.

oleokoong commented 6 years ago

Zelector please check discord

On Sat, 30 Dec 2017 at 12:02 pm, Zelecktor notifications@github.com wrote:

it doesnt work. All IPs from VPS are from the same node. You will show the same IP. On linux there is a program caller ProxyChain, you need to use a proxy socks5 to each screen for openkore, that works. You can run 15 bots from the same VPS, same IP but each one with different proxy socks5 (apply only for one screen). Thats how it works.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/OpenKore/openkore/issues/1318#issuecomment-354518792, or mute the thread https://github.com/notifications/unsubscribe-auth/AHttuYcxFAsa0HchwnHailUMEAfP6ooNks5tFYu1gaJpZM4QH4OA .

--

Thanks and regards,

Oleo Koong

asiphm commented 6 years ago

not following why do you need to use two IP to run two bot on the same server.

capture

I'm doing it right now just using 1 IP, and 2 screen. Does not understand why you need proxy and everything.

oleokoong commented 6 years ago

Our goal is 1 bot 1ip to avoid ip ban

On Sat, 30 Dec 2017 at 4:55 pm, asiphm notifications@github.com wrote:

not following why do you need to use two IP to run two bot on the same server.

[image: capture] https://user-images.githubusercontent.com/13235089/34451686-f8f203ae-ed68-11e7-8cbc-2165a9026495.JPG

I'm doing it right now just using 1 IP, and 2 screen. Does not understand why you need proxy and everything.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/OpenKore/openkore/issues/1318#issuecomment-354529431, or mute the thread https://github.com/notifications/unsubscribe-auth/AHttuaxdmGsufvLBQNyd9obN22D8TQJHks5tFdBUgaJpZM4QH4OA .

--

Thanks and regards,

Oleo Koong

Zelecktor commented 6 years ago

@asiphm

I'm doing it right now just using 1 IP, and 2 screen. Does not understand why you need proxy and everything

we are not talking about that. None says that it's bad, but thats how basically works. But try to add more screens, 10 bots on the same server. Then if one of them get cought tell me what happen with the others 9.

In summary: if one of your bot get banned, then all of your bots will be banned. (just for be linked on the same IP. All of your bots will show the same IP)

The goal of the post was a method to make every bot show differents IP, in the case if one gets banned then save the rest, trigger a macro with bus command, disconect bots on the same map where GM was in sight, wherever.

A server with two or more IPs doesnt work, because they are connected on the same node, wich means that no matter you use an "additional IP" the public IP is the same. DIfferent a proxy socks5, thats works perfectly for this. It allow to run the program with that IP (no afecting the rest of process). On linux use ProxyChain, hire some proxys and you're done. 10 bots with differents IP. GM will take a lot of work and time trying to ban your bots.