TERA Server Proxy (Allowing GM commands for specific accounts)

Page 1 of 2 12 LastLast
Results 1 to 15 of 27
  1. #1
    TERA Foundation hsdn is offline
    MemberRank
    Jun 2020 Join Date
    RussiaLocation
    356Posts

    idea TERA Server Proxy (Allowing GM commands for specific accounts)

    TERA Server Side Proxy for patch 92.03, 92.04 and 100.02

    TERA Server Proxy: https://github.com/justkeepquiet/tera-proxy-server

    ArbiterServer 100.02 patch: https://disk.yandex.ru/d/A_axHdDfY8A-ng
    ArbiterServer 92.03 patch: https://disk.yandex.ru/d/lP9C7mD5zvi-rQ

    Network proxy program written on node.js, designed to work on the TERA server side. Based on the Tera Private Toolbox, forked by me with support for modular architecture. In addition to allowing GM (QA) commands, you can also install many proxy modules on the side of the server, expanding its functionality. There is also support for built-in commands for managing installed proxy modules (it work only in QA mode), you need to use the "~" prefix for input.

    Allowing GM commands for specific accounts

    This method is an alternative to the ArbiterHook used in version 92.03.

    The implementation allows you to allow GM (QA) commands to certain accounts by proxying connection to the TERA Server with the block of the C_ADMIN packet. It will also need to replace original ArbiterServer.exe to allow QA commands on qaServer disabled mode.

    How to install:
    1. Unpack the tera-proxy-server to your server directory.
    2. Unpack the ArbiterServer_m1.exe to your Bin directory of TERA Server
      (for patch 92.03 you need to use ArbiterServer_m3.exe included in distribution).
    3. Open the 1. ArbiterServer.bat file and change ArbiterServer to ArbiterServer_m1
      (or to ArbiterServer_m3 for patch 92.03).
    4. Open the DeploymentConfig.xml file, change port 7801 to 7701, and set the qaServer param to false.
    5. Start the TERA servers (Arbiter, World, etc.).
    6. Run tera-proxy-server\Start.bat.
    7. Go to TERA API Admin Panel and set the Privilege value for the account you want to grant commands.
    8. Make sure that port 7701 is not available for external user connections.

    Privilege values:
    • 31 - Only QA commands allowed.
    • 32 - Only GM panel allowed (Alt+A).
    • 33 - QA commands and GM panel are allowed.


    Important note:
    Since this method uses proxying, it will no longer be possible to obtain user's real IP address, so IP bans in TERA API will not work. Perhaps in the future integration with the API will be implemented, solving this aspect.


    Old version of the Server Proxy by @sasha5434 was removed due possible security issues - here.
    Last edited by hsdn; 16-11-22 at 12:53 AM.


  2. #2
    Account Upgraded | Title Enabled! TieLay is offline
    MemberRank
    Jan 2011 Join Date
    RussiaLocation
    650Posts
    works fine

  3. #3
    Account Upgraded | Title Enabled! dziobus is offline
    MemberRank
    Apr 2022 Join Date
    412Posts
    Does it? I installed it but the server no longer shows up in the client for me to connect, and everything is running.
    Did I miss something?

  4. #4
    TERA Foundation hsdn is offline
    MemberRank
    Jun 2020 Join Date
    RussiaLocation
    356Posts
    @dziobus The display of the server in server list depends on the API settings. Make sure you have the server enabled and available.

  5. #5
    Account Upgraded | Title Enabled! dziobus is offline
    MemberRank
    Apr 2022 Join Date
    412Posts
    Quote Originally Posted by hsdn View Post
    @dziobus The display of the server in server list depends on the API settings. Make sure you have the server enabled and available.
    it is, works fine if I do not use the proxy, no issues.
    But I noticed there is an error when i launch it saying my Nodejs version is not supported while I did download the latest one from the link you provided.

  6. #6
    TERA Foundation hsdn is offline
    MemberRank
    Jun 2020 Join Date
    RussiaLocation
    356Posts
    @dziobus You need to rebuild the libraries for your version of node.js as described in the instructions above.

    Without rebuilding, it should work on node v18.4.0 and higher.

  7. #7
    Account Upgraded | Title Enabled! dziobus is offline
    MemberRank
    Apr 2022 Join Date
    412Posts
    Quote Originally Posted by hsdn View Post
    @dziobus You need to rebuild the libraries for your version of node.js as described in the instructions above.
    I did. So, after installing the latest nodejs I use the cmd command per instruction and get below:

    Microsoft Windows [Version 10.0.19042.331]
    (c) - WhiteDeath - 2020. All rights reserved.
    C:\Users\TeraSV>npm install -g node-gyp
    changed 94 packages, and audited 95 packages in 4s
    5 packages are looking for funding
    run `npm fund` for details
    found 0 vulnerabilities

    Then when I try to run the build batch file it gives me an error but dissapears immediately. and the Start.bat does not do anything and Tera api broke xD

    Had to start from the fresh VM again cause nothing worked after this anymore lol. Not sure what happened or where did i do it wrong. I am using shadows VM if that helps.
    Last edited by dziobus; 08-09-22 at 05:36 PM.

  8. #8
    TERA Foundation hsdn is offline
    MemberRank
    Jun 2020 Join Date
    RussiaLocation
    356Posts
    Install latest node v18.9.0 and try commands:
    Code:
    cd your_path_to_tera_server_proxy
    npm install -g node-gyp
    npm rebuild
    Where your_path_to_tera_server_proxy - specify path to your tera-server-proxy installation.

    - - - Updated - - -

    If there is a problem with tera-api, delete folder tera-api\node_modules and run install.bat in tera-api folder, then the problem should be solved.

  9. #9
    Account Upgraded | Title Enabled! dziobus is offline
    MemberRank
    Apr 2022 Join Date
    412Posts
    Quote Originally Posted by hsdn View Post
    Install latest node v18.9.0 and try commands:
    Code:
    cd your_path_to_tera_server_proxy
    npm install -g node-gyp
    npm rebuild
    Where your_path_to_tera_server_proxy - specify path to your tera-server-proxy installation.

    - - - Updated - - -

    If there is a problem with tera-api, delete folder tera-api\node_modules and run install.bat in tera-api folder, then the problem should be solved.
    Did that and i get errors when running npm rebuild. I did install the nodejs version mentioned, did the install command, have visual c++ packages installed

  10. #10
    TERA Foundation hsdn is offline
    MemberRank
    Jun 2020 Join Date
    RussiaLocation
    356Posts
    @dziobus Just use node v18.9.0, rebuild is needed only if you have a version below v18.0.0.

  11. #11
    Account Upgraded | Title Enabled! dziobus is offline
    MemberRank
    Apr 2022 Join Date
    412Posts
    Quote Originally Posted by hsdn View Post
    @dziobus Just use node v18.9.0, rebuild is needed only if you have a version below v18.0.0.
    Acha....skipping running the build part solves it now it works without issues. Thank you for your help.

  12. #12
    Account Upgraded | Title Enabled! TieLay is offline
    MemberRank
    Jan 2011 Join Date
    RussiaLocation
    650Posts
    Quote Originally Posted by dziobus View Post
    Did that and i get errors when running npm rebuild. I did install the nodejs version mentioned, did the install command, have visual c++ packages installed
    do not use *.bat-files for installing, just use commands in console like in instruction

    - - - Updated - - -

    Quote Originally Posted by dziobus View Post
    Does it? I installed it but the server no longer shows up in the client for me to connect, and everything is running.
    Did I miss something?
    if U do it as in instruction all works fine but remember it's proxy and without it runs U can't entrance into game, me was catch this problem till understand how it work.

  13. #13
    Apprentice Riku09 is offline
    MemberRank
    Apr 2016 Join Date
    EnglandLocation
    6Posts
    it works fine for me , but is possible make the character can attack ?

  14. #14
    Account Upgraded | Title Enabled! dziobus is offline
    MemberRank
    Apr 2022 Join Date
    412Posts
    Quote Originally Posted by Riku09 View Post
    it works fine for me , but is possible make the character can attack ?
    No, GM rights are set and meant to be that way that the GM cannot play the game.
    Its created like this in Tera.
    So if you wanna play and attack you need to only enable QA commands and not the GM panel
    Last edited by dziobus; 10-09-22 at 05:00 PM.

  15. #15
    Novice sasha5434 is offline
    MemberRank
    Sep 2022 Join Date
    1Posts
    i original author for it (asura)
    and i notice all of secure issue for this method!

    It combines packets with a network protocol and allows you to push a packet with a command after any other=(

    I use other code.. but this have problem (stop from unhandled network errors)

    https://disk.yandex.ru/d/kFnJXB9BMaaBZQ



Page 1 of 2 12 LastLast

Advertisement