1337322228, если спецификация протокола, который использует valve, не изменилась - поможет. Если протокол поменяли - не поможет.
iptables -t mangle -N Filter-Game
iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP
iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP
iptables -t mangle -A PREROUTING -p tcp --tcp-flags FIN,SYN FIN,SYN -j DROP
iptables -t mangle -A PREROUTING -p tcp --tcp-flags SYN,RST SYN,RST -j DROP
iptables -t mangle -A PREROUTING -p tcp --tcp-flags FIN,RST FIN,RST -j DROP
iptables -t mangle -A PREROUTING -p tcp --tcp-flags FIN,ACK FIN -j DROP
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ACK,URG URG -j DROP
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ACK,PSH PSH -j DROP
iptables -t mangle -A PREROUTING -p tcp --tcp-flags ALL NONE -j DROP
iptables -t mangle -A PREROUTING -p udp -m udp -m recent --dport 27015 -j DROP --update --seconds 30 --hitcount 5 --name VSE-ddos
iptables -t mangle -A PREROUTING -p udp -m udp -m conntrack -m string --dport 27015 --ctstate NEW -j Filter-Game --hex-string "|ffffffff54|" --algo bm
iptables -t mangle -A Filter-Game -m hashlimit -m recent -j DROP --hashlimit-name speedlimit --hashlimit-mode srcip,dstport --hashlimit-srcmask 24 --hashlimit-above 7/sec --hashlimit-burst 14 --set --name VSE-ddos
iptables -t mangle -A Filter-Game -j RETURN
I have 1 core , is this relevant?For owners of 2CPU, 2GB RAM (and more), I recommend downloading these kernel options:
-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
Yeah, I found on internet...drag1c, ssl is not 8080 port SSL works on 443 protocol
Bad argument `COMMIT'
Error occurred at line: 135
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
Fixed... Now is fine.I've just found out I didn't save it properly... Kek.
When I open rules.v4, everything is written inside, but terminal gave me error, after I typed:
sudo iptables-restore < /etc/iptables/rules.v4
How I can fix it or does it need fixing at all?Код:Bad argument `COMMIT' Error occurred at line: 135 Try `iptables-restore -h' or 'iptables-restore --help' for more information.
anyone can help?my ssh port is not 22 but something else. how to set it so i'll still have access to my vps?
find / -name "sshd_config" -printanyone can help?