Jump to content

AngelRO

Members
  • Posts

    34
  • Joined

  • Last visited

Posts posted by AngelRO

  1.   

    On 4/30/2019 at 3:59 PM, Foob said:

    subnet_athena.conf (IMPORTANT)

    Change the default value (shown below)

    subnet: 255.0.0.0:127.0.0.1:127.0.0.1

    TO

    subnet: 0.0.0.0:127.0.0.1:127.0.0.1

    As per Functor, "If you will just apply the patch of EXE - game client will not use these IPs from network packets. But players will be able to find real IP by using any network sniffer.".

    That's it. If you have question, drop by a comment. ROK On!

    Original Links: Ragnarok Proxy Setup (Hide your VPS IP)
    Other: rAthena via GCP (In a nutshell)

    I cant connect to the server if the subnet is:

    subnet: 0.0.0.0:127.0.0.1:127.0.0.1

    The char sever doesn't respond. How can I solve this problem?

    Edit: never mind. It was a problem with the hexed not being correctly patched. It's all good now. Thanks!

     

    On 5/23/2019 at 3:49 PM, CrescentSaga said:

    It won't solve your problem if a DDOS attack goes directly into your server,
    Since you're still using the same network interface, getting that pipe saturated will prevent you from restarting/changing your server IP.
    And as far as renting a server goes, changing your IP can take quite a while.

    Whoever if you hide your server IP behind a proxy, let's say a Google VM or Amazon, you can instantly change your VM IP into something else and repatch your client.
    This is quickly stop the attack since they are now targetting an unused IP. More-over, if you can setup multiple proxy for your server, you can set the Amazon/Google VM to instantly shutdown itself if it's under attack,
    This will save you a lot of trouble from having to change your IP, and DDOS, as common as it is, cost money.

    The more proxy they have to shut down to stop you, the more expensive it gets for them.
    And there's always the limitation of resources your attacker has to keep DDOS-ing you, at some point, they won't be able to keep stricking you.

    At a better level, you can also set load balancing for your VM.
    Which will help tremendously in reducing the strain of DDOS attack on your proxy.

    And as an added bonus, some provider does provide with a basic anti-ddos.
    It is not as powerful, but it will stop some basic attacks.

    If I setup a proxy server behind load balancers, won't they all share the same IP?

    What happens if someone attacks the load balance servers? Only one of the VMs will be knocked down, right?

    What's better: to maintain a few *persistent* machines serving as proxies or to setup a single load balancer?

    I know that hosting a server on a DDoS protected host would be a much better option, but unfortunately I don't know any good hosting company in Brazil. I would love to use ovh and save time, money and headache, but I don't see any good alternative.

  2. Hi there! if i may ask how did you fix this? having the same problem... in my local server it is working but in my main server it doesnt.. . /swt

     

    Hello,

     

    I edited the /src/common/mmo.h file

     

    #define MAX_CHARS 15

     

    My char_athena.conf remains untouched:

     

    chars_per_account: 0

     

    I only recompiled and restarted the server, and the additional slots appeared.

  3. I am doing some tests with Amazon RDS and when I change sql.db_hostname with the Amazon RDS endpoint, I get the following error:

     

    : Unknown MySQL server host 'angelro.xxxxxxx.sa-east-1.' (0)
    [Debug]: at ipban_sql.c:79

     

    The endpoint of the database is: angelro.xxxxxxx.sa-east-1.rds.amazonaws.com

     

    sql.db_hostname: angelro.xxxxxxx.sa-east-1.rds.amazonaws.com

     

    Only parts of the endpoint is being read.

     

    When I use the private IP or the public IP that the endpoint is directing to, I get no erros, the problem is that every time I reboot my RDS instance, the IP will change, so I really need to assign the IP with the exact endpoint: angelro.xxxxxxx.sa-east-1.rds.amazonaws.com

     

    For more information on Amazon RDS, click here.

     

    Edit:

    I'm trying to increase the size of hostname variables, and it looks like it will work.

  4. Thanks Asura, I also realized that hosting the database on another server wouldn't have a big impact on the outbound traffic, I will keep the DB in the same machine.

  5. Hello, guys...

     

    I'm planning to move my server to the Amazon Cloud (EC2) but the outbound traffict is a a bid expensive, comparing the the other regions available in Amazon.

     

    Outbound traffic costs $0.25 per gb in Brazil, while in the US it costs $0.12.

     

    My server has around 120-180 people online, including auto vendors, and using Asura's estimatives 100 active players will use an average of 267.84gb/month, in Brazil this traffic will cost 100-15gb (the first 15gb is free, for one year) = 21,25 dollars, while in the US it will cost 10,2 dollars.

     

    I have had more than 1000 active players in the past, but I let my server shrink when I moved to Canada, because I was studying and didn't have much time to take care of my server, but now I have and I plan to have 200-300 active players in the near future, and using Asura's estimatives again, 800GB of outbound traffic will cost 199.75 dollars in Brazil, while in the US it would cost 95.88.

     

    For this reason, I would like to know your opinion...

     

    Do you think it is worth it to host a database and patch files in the US and map/char/login in Brazil?

     

    Dedicated servers are very expensive down here, and I don't trust national companies with cheap services, because I'm afraid the quality of their services is bad.

     

    I currently host my server in the US, but the latency is a bid high (180ms, compared to 20ms from national datacenters) and most Brazilian RO servers are alread hosted in Brazil.

     

    Here is the website I used for Amazon EC2 calculation: http://calculator.s3.amazonaws.com/calc5.html

     

    I will start with the m1.medium plan and reserve it for 3 years, the monthly price will drop from $117.12 (on-demand) to $26.36.

     

    Adding 300gb of outbound traffic, my monthy bill will be $ 110.68, this is half of what I already pay for my dedicated server.
     

    If I choose to host my Databases in the US, and add 100gb of outbound traffic to the database instance, the monthly bill will be $ 48.62 USD for the game servers, and $ 40.86 for the database, including 300gb of outbound traffic, a total of 400gb per month, for 97,48 USD.

     

    The above calculation includes 2 Amazon EC2 instances, one in the US and one in Brazil, which means more computing power.

     

    If I host everything in Brazil in the same instance and add the 400gb of outbound traffic, the total would be $142.49 per month, $ 45,01 more expensive.

     

    I know bandwidth depends on many factors, that is why I will try the on-demand amazon service for one or two months, to have accurate data for calculating the costs.

     

    PS:

     

    Inbound traffic to an Amazon instance is free.

     

    Inbound/Outbound traffic between 2 amazon instances is also free.

  6. It would be nice if you could implement a function for people who use shared body and head palettes. I tried changing the class name in pals.php but I couldn't find the second part, like class_32_palnumber.pal so I used my huge palette grf instead.

  7. I wish we could create private forks on github (for free). I've spent the day trying to figure out a way to push my own files without making it public and so far, the only good service I found to host my files is bitbucket, but I'm struggling to understand how git works.

     

    I like how easy it is to set up branches on git, but I want to share my files with some other people, so branching my files locally doesn't help. Is it possible to mirror files on github to another git service, like bitbucket or assembla automatically, or do we need to update our local git and commit every time there is an update on rathena?

     

    Edit:

     

    I just realized there is a feature on bitbucket that imports a github directory directly. It looks really nice.

     

    Edit2:

     

    Done... I successfully set up a rAthena mirror on bitbucket and configured it to check for updates every hour. I got more than what I was expecting, I can finally start applying my mods to my private fork.

    • Upvote 1
  8. Check:

     

    src\common\mmo.h:

     

    #define MAX_CHARS 9

     

    char_athena.conf:

     

    // How many Characters are allowed per Account ? (0 = disabled)
    // You can not exceed the limit of MAX_CHARS slots, defined in mmo.h
    // Doing that, chars_per_account will be default to MAX_CHARS.
    chars_per_account: 0
     

    Mine is set to 0 and all the slots are shown, try changing it to 9.

  9. Hello,

     

    I'm using a 2012-04-10 RagexeRE client but I can't increase the character slots (default = 9). I have edited my source and conf files, but I still see no changes.

     

    When I use a Ragexe client, the slots are added normally.

     

    Is it possible to increase the char slots on a RagexeRE client? If so... How?



    Nevermind... It was my mistake, I guess... I just restarted the server and the 15 slots appeared.

  10. Lots of sprites missing in the official Brazilian Ragnarok Server (bRO). That is my problem. I will try changing my lua files again and see what happens.

     


    Trying to find file "data/sprite/Àΰ£Á·/¸öÅë/³²/Å©¸®¿¡ÀÌÅÍ_³².act"...

    Trying to find file "data/sprite/Àΰ£Á·/Å©¸®¿¡ÀÌÅÍ/Å©¸®¿¡ÀÌÅÍ_³²_´Ü°Ë.spr"...

    Trying to find file "data/sprite/Àΰ£Á·/Å©¸®¿¡ÀÌÅÍ/Å©¸®¿¡ÀÌÅÍ_³²_´Ü°Ë.act"...
     

    Trying to find file "data/sprite/Àΰ£Á·/¸Ó¸®Åë/³²/1_³².act"...

     

    Ps: It found 1_³².spr from my own grf (which does not have 1_³².act), but not from not from the official grf.
     

    File not found in data folder.
    Searching in GRFs...
    Search in GRF "angel.grf", fail.
    Search in GRF "data.grf", fail.
    File not found...

     
    My official server patch is fully updated.
     
    Edit:
     
    I am extracting the official grf folder, lets see what happens.
     
    Edit2:
     
    Most warnings were fixed, after I extracted the official grf and placed the files into the client folder, but 2 files are still missing:
     
    Trying to find file "data/sprite/Àΰ£Á·/Å©¸®¿¡ÀÌÅÍ/Å©¸®¿¡ÀÌÅÍ_³²_´Ü°Ë.spr"...
     
    Trying to find file "data/sprite/Àΰ£Á·/Å©¸®¿¡ÀÌÅÍ/Å©¸®¿¡ÀÌÅÍ_³²_´Ü°Ë.act"...
     
    All the official sprites were extracted to the folder, there is no way I can get these files.
     
    Edit3:
     
    I changed my class and all the erros are gone now. But it only works if I extract the official grf file.
  11. I coudn't test the script because it didn't find the iReadC function. I don't know if there is any source modification with this script, since the patch file didn't come in your mining world folder.

     

    3. Apply the client patch included with this script.


    Where is it?
     

    Edit: I also got an infinity loop error.

     

    Edit2: Just found it on VarSystem.txt I will try again.

     

    Edit3: All the erros are gone now. ^^

     

    Edit4: I tested the script and it is amazing! I loved the VarSystem as well, it's very useful.

    Thanks for sharing it

  12. You can use OnPCLoadMapEvent (on maps with loadevent), and make the script check if the player is using an elemental palette.

     

    Something like:

     

    prontera,50,50,0    script    enableracepvp    -1,{
    
    OnPCLoadMapEvent:
    
        if(getlook(7) == 200) {  //change 200 for your elemental race palette    
            atcommand "@killable";    
            end;
        }
    
    }
    
    prontera	mapflag	loadevent
    

     

     

    But you have to figure out a way to reuse the command to disable the pvp when the player leaves the map.
     

    I didn't test the script.

×
×
  • Create New...