Jump to content

antiroot

Members
  • Posts

    302
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by antiroot

  1. i changed without effect :( same error

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in line 2

    line 2: $row = mysql_fetch_array($result);

    The query I posted works when executing it straight from the mysql console, maybe an issue with how php is passing the data to mysql functions or perhaps your not even calling these functions to begin with

    ie: mysql_connect, mysql_select_db

    If you don't use those functions before using mysql_query, mysql_fetch_array then php has not yet connected to the database and the $result will not be a valid mysql resource

  2. The highlighting styles are stored in mangos.css, which has an expire time set to (looks like) 14 days after the date you fetched it. If the file is changed your browser normally won't re-request it until after it expires. however clearing your cache or telling your browser to refresh will have it check if it's been modified, if it has it will fetch the new version and update your local cache.

    I was about to say that the syntax highlighting color for code=bash looked weird, but as of testing it in this post it has already been changed to a white background making it readable.

    The problem was that some symbols and characters [0-9/] were displayed as black and on the dark grey background they were almost invisible.

    cd /opt/mangos;
    echo 1234 > ./example.txt
    

    Also I was attempting to edit one of my other posts and add syntax highlighting and I received the error

    There is a problem with your [ code ] tags

    it only occurs when I add the code=lang part, and works fine without it

  3. I do see what you mean, but if the regex is setup properly it should check for the opening AND closing tags meaning it would not see [ i ] as italic but only when both tags [ i ]...[/ i ] are present

    also i just found these forums don't allow you to use the BBCode without a closing tag, so i had to add spaces to my example above. All well, if these forums aren't capable of doing this then there is no huge loss. I just thought it would be relatively simple to change

  4. Could the way BBCode is handled be changed.. with the old forum we could use [ color="Olive" ] but now we have to use the hex value (not really a problem for future posts, but makes reading old posts harder)

    Also can bold and color be parsed from within a code block

    [b]this should be bold[/b]

    I know code blocks should not need formatting, however in many guides that is used to emphasize a value which the user must notice/change

    Just wanted to ask before I start rewriting the code in the guide I created, other than that the new forums seem fast enough.. although so did that last one but I'm also behind a caching proxy that cached all the static content and delivered it to my workstation across the 1gbps LAN (only time it was slow was when I flushed the proxy's cache)

  5. You're right, /opt is a bad place.. in FreeBSD the common thing is for non base system data to go into /usr/ and /usr/local/

    Still that doesn't prevent other users from access, and as you said a /home folder would be a nice way to go about it

    I used /opt to keep it similar to other guides since they all seemed to use that for the install directory

    I was actually unaware of "LogTimestamp" in the confs until you mentioned that, I think I may take your advice and change the directory permissions for the logs dir, and also enable the LogTimestamp feature (since Server.log gets overwritten on every restart, making debugging difficult)

    Thanks for all your opinions freghar, I'll see about revamping my guide and hopefully changing/implementing some better ways to do things

  6. The secure parts (which there are still more to add) are

    • * running mangos as a user other than root
      * changing default passwords for ingame default accounts
      * changing default passwords for mysql
      * removes the need for the console (or screen) to be used (only a problem with local based intruders ie small children that are fascinated by the clicking sound of the keyboard, etc)
      * alter permissions of config files so other uses cannot access them (although i did just realize that log files are readable by any user, which can show them the mysql user/pass.. might need to use touch to pre-create the log files and set their permissions to prevent that)

    Really it's not that this guide makes it impenetrable, only that it covers the basics of making it more secure than just a regular compile-and-run guide.

    From how I describe daemons/services most other guides don't treat MaNGOS this way as most seem to run MaNGOS in the foreground. This guide aims to daemonize it and make it look and feel more like a real server (I do see the benefits of running it in the foreground for dubug purposes however). There is still quite a bit this guide needs, unfortunately there is also a lack of time for me to spend doing this

    As far as which shell is best, since this is a FreeBSD guide, in which root's default shell is csh in FreeBSD, and the root account is needed to build/install dependencies and mangos, alter file permissions, configure initial mysql install.. it seemed logical to use csh.

    I do like the idea of making it compatible with /bin/sh (maybe just throw instructions in on how to switch shells before hand of course)

    And as far as a guide explaining building a FreeBSD jail to cram all of this in, FreeBSD jails are beasts far beyond the scope of a mangos guide. and making a FreeBSD+jail+mangos guide would be 75% jail explanation/guide. My mangos server runs within a jail no problem, so it is doable, just difficult for beginners. and I don't think the devs/mods would like a 4-5 post thread explaining something non-mangos related (especially when the FreeBSD Handbook and manpages explain jails quite well)

    Same goes for firewall rules, etc.. OS forums, maillists, handbooks, manpages describe all these things very well

  7. I chose to make this guide using csh because it is the default shell in FreeBSD, it could be redone to work with bash unfortunately bash uses different syntax than csh which makes the foreach loops incompatible. I'll try and create a companion guide using bash when i set up my new FreeBSD 8.1 server so that users will have a choice of which shell they are more comfortable with.

    glad to hear you got it working using my guide as a reference :)

  8. Thanks Exelenz

    Added text stating /bin/csh is required for guide to function

    Fixed typo in Step 7

    Once I get a FreeBSD 8.1 server setup I'll update the dependencies list and other parts of the guide.. Hard to find spare time and spare parts to get a new server up and running unfortunately

    Edit:

    It should be noted that I've tested this guide under FreeBSD 7.1, 7.2, 8.0 with a physical host, virtual host (vmware), and also within FreeBSD Jails and so far has worked in all cases

  9. out of curiosity, why would you want to view the ENTIRE forums through https? sounds like that would be adding a lot of extra overhead to do the encryption when all the forums are publicly visible to begin with.

    Maybe just enable https for private messaging and user login would be sufficient

    Edit: on top of that looking at the certificate that I got when I tested https on getmangos.eu just now, it's not even for this domain, so users would get errors/warning anytime they tried to access a https resource

  10. @Schmoozerd, You are correct. The information in the config files should be short and simple, My overly informative post was in reply to Nephyr's post about adding in the interface address example text.

    However my orignal post still stands about what freghar & Valdimir posted

    It can't even be used instead of a proper firewall - you can still send packets to a server bound to localhost address.

    This seems confusing, and I know it is because of a language barrier and something is being lost in translation. If I could understand what this sentace really means I would provide an alternate for it

    My only opinion about changing the example/help text in the config files is that it needs to follow proper grammer and spelling for the language it is being written in

    EDIT: Just looked at the commit by freghar, looks good and makes sense. no complaints from me

  11. - "0.0.0.0" refers to all network.

    - "87.93.0.0" refers only to network area "87.93.0.0".

    I think the 0.0.0.0 should state

    "0.0.0.0" refers to all network addresses available to the host system

    Maybe a note about using ifconfig/ipconfig to see available interface addresses

    The "87.93.0.0" should not be listed at all. That is a public IP range which would imply that interface is publicly WAN accessible (which is not supported by the MaNGOS community). And also means that you would already have some advanced network experience in order to know how to assign your modem's WAN IP internally to your server's NIC

    loopback should be listed, so localhost only developers/users know how to set the BindIP to loopback instead of a network accessible address

    "127.0.0.1" refers to the host system's loopback device, only accessible by the host system itself (no other network clients may connect to this)

    Maybe add some examples of private IP usage 10.0.0.0 – 10.255.255.255, 172.16.0.0 – 172.31.255.255, 192.168.0.0 – 192.168.255.255

    192.168.x.x range is typical in many other server software documentation examples

    "192.168.1.x" refers to an addresses assigned to the host system on the 192.168.1.0 network

    Again probably add a note about ifconfig/ipconfig to know which addresses are assigned to the host system's interfaces

  12. It can't even be used instead of a proper firewall - you can still send packets to a server bound to localhost address

    I'm American, primary language English, and I cannot understand this sentance. I think this description needs adjusting before being pushed.

    The only real purpose of this option is to allow multiple realm/world processes to be run and bound to different addresses on one machine.

    This makes sense and should not be changed

  13. I second this proposal. I just tried to do a search limited to the database section regarding some values in the batabase and all I got back were php scripts and other things not related to MaNGOS DB structure.

    The PHP scripts and other "database related" topics are great because they're nice for people learning other languages or techniques aside from C++, but having these topics clutter up an area where they really aren't the main focus makes finding real database topics difficult at the least

    Edit: Also should the "Database" forum be renamed, or have its description changed? I've seen alot of posts recently where the author of the post is under the impression that MaNGOS is responsible for the actual data in the database, but in reality MaNGOS only creates the structure it's up to other non-MaNGOS-related third parties to generate the data

  14. If you revive a character from within the database while they are online the client will never know this happened because the server does not check the database while they are logged in for this information.

    If the user is offline, then reviving them from within the MySQL database will work and they will be alive the next time they login

  15. I was able to reproduce the error you are receiving, but only when there is already one instance of realmd running and I try to start another using the same port

    Error:

    MaNGOS realmd can not bind to 0.0.0.0:3724
    terminate called after throwing an instance of 'std::runtime_error'
     what():  Dead Reference
    Abort (core dumped)

    Have you tried using

    ps -A

    to see if there is a mangos-realmd process running

    Note: Make sure to use "ps" and "netstat" as root or they will only display processes that belong to the user you are logged in as

    Have you tried restarting your server so that nothing will be running when you try to start realmd?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use