Jump to content

Shogun

Premium
  • Posts

    1367
  • Joined

  • Days Won

    77
  • Feedback

    0%

Shogun last won the day on July 13 2020

Shogun had the most liked content!

About Shogun

Informations

  • Gender
    Male

Recent Profile Visitors

30657 profile views

Shogun's Achievements

Grand Master

Grand Master (14/16)

  • Well Followed Rare
  • Dedicated
  • Reacting Well
  • Conversation Starter
  • First Post

Recent Badges

5.8k

Reputation

  1. Good luck!
  2. There isn't any "need" to run software that was EOLed over ten years ago, let alone MySQL where there are at least three major forks (MySQL, MariaDB and Percona) all of which went out of their way to maintain backwards compatibility. That's about in the same level of incompetence as doing chmod 777 /. The most compatible in my experience is MariaDB 10.6. What you need to know about MariaDB 10.6 is once you install it you do "service mysql-server onestart" and it will install the system tables. You can then just type "mysql" in SSH as it will create a socket user for root that needs no password, and then create a mysql user for navicat like: create user admin@localhost identified by 'mypassword' with grant option; grant all on *.* to admin@localhost; Then just use navicat (SSH Tunnel option!) to easily do the rest. Then edit /usr/local/etc/mysql/conf.d/server.conf and add: sql_mode = "" This willl disable all the restrictions in modern versions of MySQL that cause trouble with 5.6, except one: ENUM fields cannot be empty. So if you have an ENUM field in a table, edit it and make the first item in the ENUM an empty string. That's all. Ah, and if you use sockets, the path is not /tmp/mysql.sock but /var/run/mysql/mysql.sock And NEVER copy the files directly. Export your database: mysqldump somedatabase > somedatabase.sql or: mysqldump -uroot -p somedatabase > somedatabase.sql * Copy the resulting sql file(s) to the destination and: mysql mysql> create database whatever; mysql> exit mysql whatever < whatever.sql This will prevent your data from becoming corrupted due to differences between versions, and many other problems. Ah, and do not export / import the "mysql" database itself. It is different between versions. Just recreate your users with the help of navicat. * A nifty trick, valid for every version, so you never need to enter a user and password for MySQL in the console: [Hidden Content]
  3. I'm not sure of what is the advantage of this approach. What is this firewall doing that can't be done when you are not being attacked? How much are you inconveniencing the users when under attack? Whitelisting IPs is a must yet it will only take you so far. The web server(s) themselves must be protected from being DDoSed, and criteria set on who can get whitelisted, and even then attackers can replicate legitimate traffic and go over such line of defense so you must be prepared to deal with a torrent of traffic hitting your actual game server, directly or not. Even hardware Anti-DDoS solutions, which must be in front of your public facing endpoint nevertheless, can only perform a limited mitigation, because they are not tailored to your particular sort of traffic. Sure you will not be hit by a 40 Gbps DDoS on OVH, but you can still be hit by far more than a vanilla host can handle, and at that point, you must ask yourself how the traffic you want to let in differs from the traffic you do not want to let in, and act in consequence. The answer to this question will be different for each application you are trying to protect, and this is why there is no good general "plug and play" solution. Then there is the non trivial question of how many resources you can put to the task of filtering that traffic, and whether you have even enough bandwidth to handle it to start with, even after the traffic has gone through the scrubbing center. Overengineer your filtering and you may find the solution is worse than the problem. In the end, even within your application there will be vulnerable spots, such as a page on your site that directly reads from the database like it's 2005 (the typical "ranking" that's the ddosers favourite), or some feature ingame that did not account for the possibly of automated traffic, here I recall in Metin2 that the guild board could be spammed to the point of overloading the database, which is something that can only be solved within the application as no (external - pf and such) rate limiting is going to slow the attacker down without affecting legitimate users.
  4. I can't answer about your problem but if you want to install lib32, you do it by downloading the package frrom here: [Hidden Content] And then: tar -C / -xpf lib32.txz
  5. You can set ee as the default editor with: setenv EDITOR ee (assuming we are using the default csh shell) And make this change permanent by adding that same command to the .cshrc file which is found in the user's home directory (that is /root/.cshrc if you are a root user)
  6. For some dumb reason the default shell has been changed to sh in FreeBSD 14. The .cshrc file you show is a csh configuration file, which was the standard in previous versions of FreeBSD. To set your root shell back to csh you can run this command: chsh -s /bin/csh root Then login again to SSH to see the change. On a side note about the OP, this may be a good idea in a local, development machine. I would not recommend to do it in an actual server as those timeouts are there for a reason.
  7. very exciting story, when's the netflix series coming up?
  8. Thank you, not anymore though.
  9. Hello everyone. As some may know, I make a living from securing servers against ddos attacks and intrusions, among other less exciting administrative tasks. I also mantain a blog about FreeBSD which you can visit here [Hidden Content] where I try to share some tutorials I wrote on common tasks on FreeBSD. I would like today to write a word of warning to those who are considering their security, as well as a sort of answer to someone who suggested I should publish my system because others are profiting from it. My first thought is I don't give a crap if you pay 400 euro to some random dude you're the one getting scammed not me. If you wonder what am i talking about: In the past I posted occasionally some configurations for the pf firewall and other useful materials, and more recently I coded, with my basic knowledge of PHP, a simple and poorly written script to whitelist IPs on your firewall, which I named Gatekeeper. (By the way I do not recommend you to follow any of my posts you see anywhere except for those in the blog which I do keep reasonably updated) Anyhow back to the topic I have installed this script, or system, for a number of clients who wanted to have a better chance of resisting DDoS attacks. I consider it a tool in my arsenal, rather than some definitive solution to attacks. In other words, it's not something you can install with a nice installer script and sleep better at night. It's just a quick and dirty fix to a very specific problem, one which I had to perfect with various additions until it became sort of foolproof. There are many other problems or attack vectors that this script will do nothing about. Regardless, quite a lot of people have seen fit to take this script and resell it to others, in most cases for a higher price than I was charging myself for my full service. It is also vox populi that there is this portugese guy whose name would be pointless to repeat and who "sells" a "protection system" which basically consists on a bunch of firewall configurations and a proxy whose only function is hide the fact that the one who is attacking you in the first place is himself. Needless to say none of these people have much of a notion about security, but that never stopped the bold and the brave from making a buck in the scene did it? Let me get this straight: just like an antivirus won't save you from getting hacked if you use 1234 as password and believe in nigerian prince, there's no "file" or "config" or "solution" that will save you from DDoS attacks. The only defense against a DDoS attack is having the expertise and skill on your side. But I don't intend this to become an advertisement for my services, which I cannot provide as much as I they are demanded. But I have been there, I have mindlessly copied things thinking they would magically fix stuff without me needing to understand them in the first place. If you are worried about DDoS attacks in general, but you have no particular enemies, you will probably get attacked by our portuguese friend, and you may just play along with the extorsion just to get rid of it. Or you may have other attackers who actually want to see you down rather than make money, in which case you should contact someone who knows what he is doing. By the way... FreeBSD 14 is out. It has a much newer PF on it than FreeBSD 13, where you can do some cool stuff. FreeBSD 13 also has a much newer PF than the PF on FreeBSD 12 which is probably older than you. Just so you can start seeing the tip of the iceberg of the problem with just copying some pf.conf files and why I'm not "sharing the stuff": because there is nothing to share unless one day I decide to write a whole book I would be fooling you if I told you X is going to keep you safe. Ah, and Linux is trash. Have a nice day.
  10. The default socket path in MySQL changed many years ago. Here's the wrong, but "easier", way to fix it: Find your my.cnf: mysql --help Edit it and add or edit this line: socket = /tmp/mysql.sock
  11. MySQL 5.5 was released in 2010 and has been End of Life for years. Even 5.6 is ancient. On December 31st, 2018, MySQL version 5.5 entered End of Life status. Any server currently running MySQL 5.5 will not receive any updates, bug fixes, or security patches for MySQL until MySQL is updated to a version 5.6 or later. As far as I recall from my youth, you do not need any configuration change or upgrade process to use mysql 5.5 data with 5.6, but it is always advised to run mysql_upgrade after importing your data.
  12. Great tutorial. However I'm skeptical about a real life scenario with a free CDN. Let's remember Cloudflare released not long ago their free Wireguard based VPN. Sounds great doesn't it? Except it's hardly usable at all because many sites are blocking it straight away. Back in the day I tested paid CDN -Rackspace, MaxCDN - for file distribution and it was... pretty bad. One has to be careful with any sort of cache as an outdated cache will mean the client downloading files over and over every time. Moreover when we consider most of players would be located in a geographically small area, the need for a CDN is perhaps questionable. In any case I'm looking forward to people reporting their experiences with this, if it actually works it could be very valuable for peak traffic scenarios.
  13. People can report stuff you upload to Google Drive or Mega claiming it's infringing their copyright. Free stuff isn't really free, it comes at the cost of handing over control over your data and your privacy. Anyhow if you don't have a big server you won't have thousands of people trying to download your files so you don't need load balancing. You won't have haters reporting your client to MEGA or Google and getting you suspended either. On the other hand, I do consider Amazon buckets and SaaS in general to be unnecesary expenses when there is a world of software you can host yourself for free in a simple Proxmox server. [Hidden Content] I am not a developer like most people here are are, but a systems administrator. "The time you spend configuring a centos server" -as you describe it- is not a burden like it's for you, it's literally my job. And I have plenty of work thanks to people like you who think because they know a programming language or two, they know anything about the systems that lie under them; I have some news for you: you don't. So it's great that Cloudflare caters to people like you and make a business out of it, some of us like to have control over our infrastructure and pay only for the metal it's running in. Also your thinking that changing a DNS in CF when your host goes down is cutting edge technology is so ridiculous I won't even comment of it. Romanian hosts? I think you are confusing your home internet -which is indeed fastest in the EU, and second cheapest after Poland- with servers. It's okay, you're just a programmer after all. As a matter of fact, Romanian datacenters have poor connectivity when compared to other EU countries. Of course, it's still much better than, say, Russia or Morocco, but at European level it's nothing to brag about, trust me.
  14. I assume it's a bunch of servers you already paying for because you're using them for something else, not specifically rented for this. Naturally I haven't used "cloud storage" because that's marketed to developers since as a systems administrator it doesn't make sense to pay for services you can't fully control, but if you are serving files frequently to a large userbase that bill can become non-trivial.
  15. Care to elaborate on your answer? Nginx is not "a webhost" and neither is cPanel. Cloudflare does not do load balancing in free accounts, certainly not with "simple redirects" and "quickly changing the IP" (what kind of insanity is that). Neither does sending people to a redirect based on their country qualify as "load balancing", unless the amount of users per country is predictable but still, it's a weird idea, unless we're talking about geographically better located hosts, which still isn't load balancing. Bottom line this is a developer forum, I would expect "people who don't want to deal with this tech part" to find their entertainment elsewhere.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.