Benutzerinformationen überspringen
Wohnort: Hagen
Beruf: Mechatroniker (didaktische Systeme)
Rootserver vorhanden: Nein
Benutzerinformationen überspringen
Wohnort: Hagen
Beruf: Mechatroniker (didaktische Systeme)
Rootserver vorhanden: Nein
![]() |
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#!/bin/bash #Path to iptables IPTABLES='/sbin/iptables' # Default rule for established connections $IPTABLES -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT $IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT # Put IPs you want to allow bypassing all these rules here #$IPTABLES -A INPUT -s my_ip_here -j ACCEPT # Local connections $IPTABLES -A INPUT -s 127.0.0.1 -j ACCEPT # Ports Game - SRCDS + SourceTV + Query PORTS='27015:30000' # Drop DOS exploit packages for SRCDS games $IPTABLES -A INPUT -p udp -m udp --dport $PORTS -m string --algo bm --hex-string '|ffffffff54|' -m limit --limit 20/s -j ACCEPT $IPTABLES -A INPUT -p udp -m udp --dport $PORTS -m string --algo bm --hex-string '|ffffffff54|' -j DROP |
Benutzerinformationen überspringen
Wohnort: Hagen
Beruf: Mechatroniker (didaktische Systeme)
Rootserver vorhanden: Nein