Raised This Month: $12 Target: $400
 3% 

Solved Linux is blocking port


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r4f4w
Member
Join Date: Jul 2019
Old 02-20-2020 , 11:54   Linux is blocking port
Reply With Quote #1

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?)

Last edited by r4f4w; 02-28-2020 at 13:43.
r4f4w is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 02-20-2020 , 12:37   Re: Linux is blocking port
Reply With Quote #2

Have you set the gslt token?
TomL. is offline
r4f4w
Member
Join Date: Jul 2019
Old 02-20-2020 , 13:11   Re: Linux is blocking port
Reply With Quote #3

Quote:
Originally Posted by TomL. View Post
Have you set the gslt token?
Yes. I have a server running os AWS working perfectly. But my local server does not collaborate
r4f4w is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 02-20-2020 , 15:51   Re: Linux is blocking port
Reply With Quote #4

  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?
Maxximou5 is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 02-20-2020 , 15:57   Re: Linux is blocking port
Reply With Quote #5

Try the DMZ or equivalent.







Quote:
Originally Posted by r4f4w View Post
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.
__________________
DJEarthQuake is offline
r4f4w
Member
Join Date: Jul 2019
Old 02-21-2020 , 08:04   Re: Linux is blocking port
Reply With Quote #6

Quote:
Originally Posted by Maxximou5 View Post
  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 is offline
r4f4w
Member
Join Date: Jul 2019
Old 02-21-2020 , 08:06   Re: Linux is blocking port
Reply With Quote #7

Quote:
Originally Posted by DJEarthQuake View Post
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
r4f4w is offline
r4f4w
Member
Join Date: Jul 2019
Old 02-21-2020 , 11:42   Re: Linux is blocking port
Reply With Quote #8

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

Last edited by r4f4w; 02-21-2020 at 12:00.
r4f4w is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:22.


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