AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Solved Linux is blocking port (https://forums.alliedmods.net/showthread.php?t=321640)

r4f4w 02-20-2020 11:54

Linux is blocking port
 
So, I have a CSGO server running on my local server running Ubuntu Server. For this, I had to open port 27015 tcp/udp on my router.

When I test my ports in https://www.yougetsignal.com/tools/open-ports/ , it's says that is closed.

What is weird is that when I try to run anything that listens 27015, and check again, the port opens.

Things that I've tried:
  • Allow the port in ufw
  • Disable ufw
  • Allow the port on iptables
  • Checked my router firewall
  • Install Debian instead of Ubuntu (actually i tried first on debian an then moved to ubuntu)

So, how do I know and ensure you guys that I've opened correctly the port on my router?

Because I installed ssh, and this port 22 was opened in the same way as 27015. Aaaand before installing Linux, this server was running Windows, and the port was open.

I've installed ssh and with this, Ubuntu automatically open 22 port on my router, and it is working and open.

Conclusions that I've made so far:
  • The router it is OK, nothing to do with that
  • Both Ubuntu and Debian have the same blocking
  • The port only opens when a process it's listening that port .CSGO for some reason do not open the port when running. (is that a config to change this? Maybe a start command?)

TomL. 02-20-2020 12:37

Re: Linux is blocking port
 
Have you set the gslt token?

r4f4w 02-20-2020 13:11

Re: Linux is blocking port
 
Quote:

Originally Posted by TomL. (Post 2684532)
Have you set the gslt token?

Yes. I have a server running os AWS working perfectly. But my local server does not collaborate :cry:

Maxximou5 02-20-2020 15:51

Re: Linux is blocking port
 
  1. Are you able to join locally, or is it that you can't join from outside or even at all?
  2. What are your launch parameters for the server (omitting your token)?
  3. Have you tried a port other than 27015 and forwarded it in your route
  4. You can SSH locally and from outside?

DJEarthQuake 02-20-2020 15:57

Re: Linux is blocking port
 
Try the DMZ or equivalent.







Quote:

Originally Posted by r4f4w (Post 2684529)
The port only opens when a process it's listening that port

That's how it is supposed to work. If there is no process using the port although it is allowed on the firewall it will be CLOSED.

r4f4w 02-21-2020 08:04

Re: Linux is blocking port
 
Quote:

Originally Posted by Maxximou5 (Post 2684550)
  1. Are you able to join locally, or is it that you can't join from outside or even at all?
  2. What are your launch parameters for the server (omitting your token)?
  3. Have you tried a port other than 27015 and forwarded it in your route
  4. You can SSH locally and from outside?

  1. Locally yes, no problem. Just from outside that doesn't work.

  2. /home/steam/cs_go/csgo/srcds_run game csgo -console -tickrate 128 -usercon -port 27015 +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2 +sv_setsteamaccount (My token) -net_port_try 1

  3. I've tried open another port, but it perform the same way, only opens when have a socket/any process listening on that port

  4. Yes. SSH works from outside, and port 22 appear as open.

r4f4w 02-21-2020 08:06

Re: Linux is blocking port
 
Quote:

Originally Posted by DJEarthQuake (Post 2684552)
Try the DMZ or equivalent.








That's how it is supposed to work. If there is no process using the port although it is allowed on the firewall it will be CLOSED.



So i guess the problem is on the csgo server? I don't know why csgo isn't listening the port :cry:

r4f4w 02-21-2020 11:42

Re: Linux is blocking port
 
Hey guys, found out what was happening. My server was listening the port 27015, but only for LAN. I had to set the command -ip 0.0.0.0


All times are GMT -4. The time now is 09:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.