Reputation
1,187
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 23 35
Impact
~186k people reached

  • 0 posts edited
  • 0 helpful flags
  • 124 votes cast
Jan
23
comment Separate Nginx access log file for certain requests only
Yep, the doc says that you can use Context: http, server, location, **if in location**, limit_except
Jan
23
comment Separate Nginx access log file for certain requests only
Um, isn't this an access log inside an if statement..?
Jan
19
comment dmesg SYN flood on 80 sysctl -p
@SomeGuy you should give an example of intercepting an invalid/small packet in IPTables.
Jan
19
comment Rate limit new connections in IPTables instead of Nginx or HAProxy?
@edlerd I will. It seems like a better approach to all this would be decreasing the timeout, using something like a cookie (so you didn't have to wait for an ACK), or building up ISP reputation somehow so you could learn who was a legitimate gateway and who was just wasting resources.
Jan
19
comment Rate limit new connections in IPTables instead of Nginx or HAProxy?
1) Why rate limit in nginx instead of IPTables? Isn't the same issue with possibly hundreds of users connecting via a proxy or ISP still the same? 2) Limiting SYN connections does see better than NEW (-A INPUT -p tcp --syn right?). However, isn't that the same problem with blocking legitimate traffic? I read something about changing the SYN timeout and "syn-cookies" so I'm going to look into them now. As it is, it doesn't seem possible to rate-limit since a Bot or legitimate ISP could both send 10,000 new syn packets. hrm...
Jan
18
comment iptables port forwarding (prerouting port 80) and firewall not working together
@ArthurCorenzan if you are redirecting 80 traffic to 8080 - why not just run node on 80?
Dec
31
comment How to pipe all log files entries to a database on linux?
ELK looks perfect!
Dec
13
comment Can't connect to MySQL from another server
Thanks @Navern, I checked and double-checked the password and that wasn't the problem. See updated post.
Dec
12
comment Can't connect to MySQL from another server
Good idea, I added a catch-all grant and I still can't connect.
Dec
12
comment Can't connect to MySQL from another server
Sorry, I forgot to put the user permissions into the ticket. I updated the post. As you can see, I have .100.% permissions which should let me connect.
Dec
12
comment Can't connect to MySQL from another server
Nothing really, it's like it's the connection isn't being responded too.
Oct
14
comment How to invalidate nginx reverse proxy cache in front of other nginx servers?
Why not remove the proxy cache file so nginx is forced to go get a new copy?
Jul
14
comment Remove www from domain name in nginx
Thanks Michael, I wasn't aware of that.
Jul
14
comment Remove www from domain name in nginx
yes sir, it is the same though. Just one more loose $1 floating around...
Jul
14
comment Remove www from domain name in nginx
um, that is what I'm doing minus the capture group.
Jun
5
comment Check result from grep of apt-get and use in bash conditional
If the grep matches, then I know there is a problem locating the package.
Mar
6
comment Why is my crontab not working, and how can I troubleshoot it?
Yes, that is what confused me since you answered in 2013 and the ticket was back in '07.
Mar
5
comment Why is my crontab not working, and how can I troubleshoot it?
That error report was closed back in 2007 with the status of the patch being added to the PHP 5.2+ branches. Are you sure this is needed? I just tried on PHP 5.4 and it seems to work fine. (It is still needed for PHP 4 though).
Jan
29
comment How do you conditionally include files in Nginx vhost?
Sorry, I think I finally solved whatever the problem was a different way.
Jan
7
comment Problems installing PHP libevent PECL Package
Recap: sudo apt-get install libevent-dev then pecl install channel://pecl.php.net/libevent-0.0.5.