Sie sind nicht angemeldet.

1

Mittwoch, 11. August 2010, 00:36

Left4Dead 2 - IPtables keine Verbindung

Moin,

habe soweit die iptables eingerichtet und als Script abgespeichert...

Alle Dienste (web / usw.) gehen ohne probleme.

Nun wollte ich mal einen Left4Dead2 Server einrichten, soweit klappt auch alles.
Nur habe ich Probleme mit der Firewall (iptables), dieser blockt irgendwo die Verbindung.

Quellcode

1
2
3
4
5
6
~# netstat -anp | grep srcds
tcp        0      0 217.172.***.***:27015    0.0.0.0:*               LISTEN      1510/srcds_linux
udp        0      0 217.172.***.***:27015    0.0.0.0:*                           1510/srcds_linux
udp        0      0 217.172.***.***:26901    0.0.0.0:*                           1510/srcds_linux
unix  3      [ ]         STREAM     VERBUNDEN     574558   1510/srcds_linux
unix  3      [ ]         STREAM     VERBUNDEN     574557   1510/srcds_linux

Quellcode

1
2
3
4
5
6
$IPT -A tcp_inbound -p TCP -s 0/0 -d $INET_ADDRESS --destination-port 27015 -j ACCEPT
$IPT -A tcp_outbound -p TCP -s 0/0 -d $INET_ADDRESS --destination-port 27015 -j ACCEPT
$IPT -A udp_inbound -p UDP -s 0/0 -d $INET_ADDRESS --destination-port 27015 -j ACCEPT
$IPT -A udp_outbound -p UDP -s 0/0 -d $INET_ADDRESS --destination-port 27015 -j ACCEPT
$IPT -A udp_inbound -p UDP -s 0/0 -d $INET_ADDRESS --destination-port 26901 -j ACCEPT
$IPT -A udp_outbound -p UDP -s 0/0 -d $INET_ADDRESS --destination-port 26901 -j ACCEPT
Wenn ich alle iptables rules lösche geht es einwandfrei.
der Debug Mode von l4d2 zeigt mit auch keine Ergebnisse, die nützlich sein könnten.

danke und Gruß
Gunah

2

Mittwoch, 11. August 2010, 10:28

Re: Left4Dead 2 - IPtables keine Verbindung

Direkt aus meinem iptablestartscript:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    # HALF-LIFE

    # HL Shortpackeges Filtern fuer Gold Source Server DDos etc
    iptables -A INPUT -p udp -m udp --dport 27015 -m length --length 0 -j DROP
    iptables -A INPUT -p udp -m udp --dport 27015 -m length --length 28 -j DROP
    iptables -A INPUT -p udp -m udp --dport 27015 -m length --length 39 -j DROP
    iptables -A INPUT -p udp -m udp --dport 27015 -m length --length 48 -j DROP
    iptables -A INPUT -p udp -m udp --dport 27015 -m length --length 105 -j DROP

    # VAC Friends Autopudate etc
    iptables -A INPUT -i eth0 -m state --state NEW -p tcp --dport 6000:6003 -j ACCEPT
    iptables -A INPUT -i eth0 -m state --state NEW -p tcp --dport 7001:7002 -j ACCEPT
    iptables -A INPUT -i eth0 -m state --state NEW -p udp --dport 27005 -j ACCEPT
    iptables -A INPUT -i eth0 -m state --state NEW -p udp --dport 27010 -j ACCEPT

    # HALF-LIFE einzelne Server
    iptables -A INPUT -i eth0 -m state --state NEW -p udp --dport 27015 -j ACCEPT

    # HALF-LIFE RCON
    iptables -A INPUT -p tcp -m tcp --dport 27015 -m hashlimit --hashlimit-upto 2/sec --hashlimit-burst 1 --hashlimit-mode srcip,dstip,dstport --hashlimit-name TF_PACKET_LIMIT -j ACCEP
Webbasierender Config Ersteller: www.ulrich-block.de für CS 1.6, CSS, DODS und TF2.

Ebenso wird werden verschiedene Debian Gameserverkernel zum Download angeboten.

3

Freitag, 13. August 2010, 20:08

Re: Left4Dead 2 - IPtables keine Verbindung

jupp danke klappt gerade alles wunderbar... nur ab einem bestimmten Moment ist er bei HLSW Offline auch im Webinterface bei HLSW... allerdings kann man drauf connecten und RCOn funktioniert auch einwandfrei...

allerdings kann es dieses mal nicht die Firewall sein, da es auch ohne Regeln nicht angezeigt wird...
Das Problem ist nicht nur bei mir so :/

Gelöst: irgendwie war sv_cheats mit drin :/

Gruß
Gunah