ThomasM8 12. aug. 2014 kl. 11:00
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!
< >
Viser 1-8 af 8 kommentarer
ThomasM8 30. aug. 2014 kl. 15:03 
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)>.
Sidst redigeret af ThomasM8; 30. aug. 2014 kl. 15:04
Ltk 28. mar. 2015 kl. 7:03 
Good lock!
Bilbon89 5. sep. 2015 kl. 1:58 
quoi:steamsalty:
Bilbon89 5. sep. 2015 kl. 1:59 
il y a t il quelqu un
Bilbon89 5. sep. 2015 kl. 1:59 
:steambored:
Widzhi 14. aug. 2016 kl. 9:32 
nice =)
KZ Power 22. apr. 2017 kl. 10:49 
!
赤髪 5. maj 2017 kl. 17:13 
Oprindeligt skrevet af 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!
< >
Viser 1-8 af 8 kommentarer
Per side: 1530 50