ThomasM8 12 Aug, 2014 @ 11:00am
HLDS and iptables
I've installed HLDS on a dedicated machine running CentOS 6 and opened all ports in this list using similar commands to these of course changing udp to tcp where necessary:

iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT

Server connects to master and VAC servers, however nobody can connect to the server and it's not listed in favorites list (100% that ip/port is right).

If I turn off iptables it works as expected. I'm not an expert of using them so maybe I'm setting something wrong? For many other reasons I cannot leave iptables off.

Thanks!
< >
Showing 1-8 of 8 comments
ThomasM8 30 Aug, 2014 @ 3:03pm 
Hi, thanks for your reply, swaping source/destination ports was a good point but in my case that wasn't the cause of the problem.

Apparently default settings for my iptables (on CentOS 6) had REJECT rule at the end of the INPUT chain so when using iptables -A INPUT (which means append at the end of the chain) my rules were never reached as packets were rejected by the rule above. Solution was to use iptables -I INPUT <number of last rule (which is REJECT)>.
Last edited by ThomasM8; 30 Aug, 2014 @ 3:04pm
Ltk 28 Mar, 2015 @ 7:03am 
Good lock!
Bilbon89 5 Sep, 2015 @ 1:58am 
quoi:steamsalty:
Bilbon89 5 Sep, 2015 @ 1:59am 
il y a t il quelqu un
Bilbon89 5 Sep, 2015 @ 1:59am 
:steambored:
Widzhi 14 Aug, 2016 @ 9:32am 
nice =)
KZ Power 22 Apr, 2017 @ 10:49am 
!
赤髪 5 May, 2017 @ 5:13pm 
Originally posted by Indig0:
I've installed HLDS on a dedicated machine running CentOS 6 and opened all ports in this list using similar commands to these of course changing udp to tcp where necessary:

iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT

Server connects to master and VAC servers, however nobody can connect to the server and it's not listed in favorites list (100% that ip/port is right).

If I turn off iptables it works as expected. I'm not an expert of using them so maybe I'm setting something wrong? For many other reasons I cannot leave iptables off.

Thanks!
< >
Showing 1-8 of 8 comments
Per page: 1530 50