MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
srcds DOS attack?
srcds DOS attack?
Posts: 482
Threads: 6
Joined: Apr 2008
Reputation:
5
Good catch. I've updated my rules. No hits even to the previous rules yet, though.
Posts: 226
Threads: 36
Joined: Oct 2008
Reputation:
0
(10-08-2009, 04:04 PM) jheiv Wrote: Quick update, I screwed up the IP Tables I posted -- if you read that carefully, I'm actually limiting the jump from input to "logattacker". I really wanted to limit the logging.
Here are my updated rules:
Code:
-A INPUT -p udp -m udp --dport 27015 -m length --length 0:32 -j logattacker
-A logattacker -j LOG --log-prefix "SRCDS:ATTACK: " --log-ip-options -m limit --limit 2/sec
-A logattacker -j DROP
With the previous rules, you'll get a log of the attack, but it will do nothing to prevent it from crashing your server.
And if i have two servers 27015 and 27035 how do i do then?
Posts: 482
Threads: 6
Joined: Apr 2008
Reputation:
5
You can use the same "logattacker" iptables chain.
Add this for your 27035 server:
iptables -A INPUT -p udp -m udp --dport 27035 -m length --length 0:32 -j logattacker
If the both servers are attacked at the same time then it's possible in theory that you don't get log entry for the other attacker on the other server, but I don't think it's too diffuclt to draw the conclusion that it's the same attacker than on the other server
Posts: 22
Threads: 5
Joined: Sep 2009
Reputation:
0
Quick update, I have gotten attacked since and the rules worked like a charm.
Blocked 10M of traffic in 367,000 packets and the players said there was no noticeable lag.
With a 2/sec log frequency I logged about 3,000 entries -- not too bad -- but I could afford to decrease the frequency I'm sure.
I always grep out the logs from each IP and send it to the abuse email from the apparent IP whois entry -- who knows if they even look at it though.
Posts: 482
Threads: 6
Joined: Apr 2008
Reputation:
5
Sounds good.
I'll do my quick update too: The iptables rule is not blocking any real traffic. I've had the rules for a week and there's only one caught packet. I wonder what that was all about
Posts: 226
Threads: 36
Joined: Oct 2008
Reputation:
0
Trying but get´s an error:
Couldn't load target `logattacker':/lib/xtables/libipt_logattacker.so: cannot open shared object file: No such file or directory
debian lenny
Posts: 22
Threads: 5
Joined: Sep 2009
Reputation:
0
10-13-2009, 11:47 PM
(This post was last modified: 10-13-2009, 11:47 PM by jheiv .)
(10-13-2009, 11:35 PM) lhffan Wrote: Trying but get´s an error:
Couldn't load target `logattacker':/lib/xtables/libipt_logattacker.so: cannot open shared object file: No such file or directory
debian lenny
Sorry, you probably need to declare logattacker as a new chain so it doesn't try to join a non-existent chain named logattacker.
Use this before the iptables -A rules:
Code:
iptables -N logattacker
... That should clear it up.
Posts: 226
Threads: 36
Joined: Oct 2008
Reputation:
0
10-14-2009, 01:54 AM
(This post was last modified: 10-14-2009, 02:33 AM by lhffan .)
ahh
thanx
seems to work. How does i also limit connection to my rcon to my second server ip?
Does this look okey?
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
logattacker udp -- anywhere anywhere udp dpt:27015 length 0:32
logattacker udp -- anywhere anywhere udp dpt:27035 length 0:32
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
Chain logattacker (2 references)
target prot opt source destination
LOG all -- anywhere anywhere limit: avg 2/sec burst 5 LOG level warning ip-options prefix `SRCDS:ATTACK: '
DROP all -- anywhere anywhere
Posts: 226
Threads: 36
Joined: Oct 2008
Reputation:
0
Sorry for double post. But why does my new chains and rules dont stay after an reboot?
Posts: 293
Threads: 33
Joined: Sep 2007
Reputation:
0
10-14-2009, 08:05 AM
(This post was last modified: 10-15-2009, 10:45 AM by ClanWoof .)
Oh very nice, got the first little shit trying to crash my server yesterday.
Posts: 22
Threads: 5
Joined: Sep 2009
Reputation:
0
10-14-2009, 09:16 AM
(This post was last modified: 10-14-2009, 09:35 AM by jheiv .)
(10-14-2009, 01:54 AM) lhffan Wrote: ahh thanx
seems to work. How does i also limit connection to my rcon to my second server ip?
Does this look okey?
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
logattacker udp -- anywhere anywhere udp dpt:27015 length 0:32
logattacker udp -- anywhere anywhere udp dpt:27035 length 0:32
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
Chain logattacker (2 references)
target prot opt source destination
LOG all -- anywhere anywhere limit: avg 2/sec burst 5 LOG level warning ip-options prefix `SRCDS:ATTACK: '
DROP all -- anywhere anywhere
Yes this looks OK.
If you want to limit access to your rcon port try (untested):
Code:
# Make new chain
iptables -N rcon
# Pull all packets to tcp port 27015 into rcon chain
iptables -A INPUT -p tcp --dport 27015 -j rcon
# If source ip matches whitelisted ip, accept
iptables -A rcon --source 123.123.123.13 -j ACCEPT
# Otherwise (optionally log and) drop
iptables -A rcon -j LOG --log-prefix "SRCDS:RCON: " --log-ip-options
iptables -A rcon -j DROP
... where 123.123.123.123 is the IP address that you want whitelisted
Alternatively, you could leave your rcon port open and just log the access attempts (
untested tested):
Code:
# Build RCON Attack Rules
iptables -N rcon
iptables -A INPUT -p tcp --dport 27015 -j rcon
iptables -A rcon -j LOG --log-prefix "SRCDS:RCON: " --log-ip-options
iptables -A rcon -j ACCEPT
...You could also use the chain ULOG if you want to log the entire packet (not just the header)
(10-14-2009, 02:58 AM) lhffan Wrote: Sorry for double post. But why does my new chains and rules dont stay after an reboot?
Because you didn't save them. Add them again then try:
Code:
service iptables save
(as sudo or root)
Posts: 226
Threads: 36
Joined: Oct 2008
Reputation:
0
10-27-2009, 05:10 PM
(This post was last modified: 10-27-2009, 05:11 PM by lhffan .)
SRCDS only needs udp connection?
Posts: 482
Threads: 6
Joined: Apr 2008
Reputation:
5
What question is this?
Srcds uses UDP for gameplay and TCP for RCON.
Posts: 226
Threads: 36
Joined: Oct 2008
Reputation:
0
ok thanx. Sorry for the cryptic question. But i got an answer anyways
Will trye to build up my rules some more today. Folowing this guide:
http://www.lysator.liu.se/~kjell-e/tekla/linux/security/iptables/iptables.html
Posts: 10
Threads: 0
Joined: Mar 2009
Reputation:
0
This is my DOS attack stats
http://proj.c400.ru/CSS_DOS_Attack.txt
i am shocked! WTF?!
Users browsing this thread: 1 Guest(s)