refactor: moved to hugo
This commit is contained in:
parent
4c6912edd0
commit
e77e5583c2
604 changed files with 1675 additions and 2279 deletions
|
@ -0,0 +1,28 @@
|
|||
+++
|
||||
title = "Server going slow after IPTables configuration? Try this"
|
||||
date = 2013-02-27
|
||||
+++
|
||||
|
||||
Recently I've started the migration of my company's servers to a new provider.
|
||||
After checking that the OS installed on the -now- old servers was Ubuntu 8.04
|
||||
(holy shit), I decided to make a fresh install of CentOS 6.3, cleaning up all
|
||||
the servers contents and setting up everything from scratch.
|
||||
|
||||
After setting my iptables rules (INPUT whitelisted, OUTPUT accept all) I
|
||||
noticed a big delay on every connection made to my server. After checking a
|
||||
lot of things, these two solved the issue:
|
||||
|
||||
## Enable unilimited traffic on your loopback interface
|
||||
|
||||
``` text
|
||||
iptables -A INPUT -i lo -j ACCEPT
|
||||
iptables -A OUTPUT -o lo -j ACCEPT
|
||||
```
|
||||
|
||||
## Enable traffic for connections started by your server
|
||||
|
||||
``` text
|
||||
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||
```
|
||||
|
||||
Hope this solves your issue as it did with mine.
|
Loading…
Add table
Add a link
Reference in a new issue