SRCDS Steam group


Cant get on server from internet
#31
dillinger420 Wrote:I ran srcds on my windows machine and it works perfectly fine while under DMZ.

You mean that people can connect from the internet right?

What IP is set on that windows machine?

dillinger420 Wrote:yup I assigned a static ip of 192.168.1.128 to the box and had the router DMZ that exact IP, I believe its something I havent configured on the box its self that is causing the connectivity issue.

Did you try the PERL script out from the other thread?

What is your router's internal IP and netmask?

Can you post a dump of the firewall on the linux box? Run iptables -n -L as root.
Reply
#32
see where it says that Adding master server 69.28.151.162:27011
Adding master server 69.28.151.178:27011 arent the same mying are different? can some on help me i cant get my server working


twinsen Wrote:how do you forward ports through ssh i have been trying this to no aviel ./srcds_run -console -game cstrike +map de_dust +ip xxx.xxx.xxx.xxx -port 27015 +maxplayers 22 -autoupdate

i am running fedora core 4

Console initialized.
Attempted to create unknown entity type event_queue_saveload_proxy!
Game.dll loaded for "Counter-Strike: Source"
maxplayers set to 32
maxplayers set to 16
Network: IP xxx.xxx.xxx.xxx, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
Executing dedicated server config file
couldn't exec mani_server.cfg
"bot_prefix" = ""
game replicated
- This string is prefixed to the name of all bots that join the game.
Can't use cheat cvars in multiplayer, unless the server has sv_cheats set to 1.
Can't use cheat cvars in multiplayer, unless the server has sv_cheats set to 1.
Adding master server 69.28.151.162:27011
Adding master server 69.28.151.178:27011
Connection to Steam servers successful.
VAC secure mode is activated.
!Stops here every time
Reply
#33
Hey guys...... im beating my head in over this and so need some help, I know it is a simple problem but I just cant get my head round it Sad

Basically I have a dedicated server running Ubuntu hosted with Fasthosts (in the UK)

I can boot the server up fine using this command: ./srcds_run -console -game cstrike +ip 88.208.248.30 +map de_dust

I works fine and I get this output:
Code:
Auto detecting CPU
Using SSE2 Optimised binary.
Server will auto-restart if there is a crash.

Console initialized.
Game.dll loaded for "Counter-Strike: Source"
maxplayers set to 32
Network: IP 88.208.248.30, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
Executing dedicated server config file
Incorrect price blob version! Update your server!
ERROR: mp_dynamicpricing set to 1 but couldn't download the price list!
Error: Material "sprites/bubble" : proxy "AnimatedTexture" not found!
Section [Scenes]: 0 resources total 0 bytes, 0.00 % of limit (2.10 MB)
net.cpp (960) : Assertion Failed: 0 == iRet && iValLen == sizeof( iVal ) && cSendBufSize <= iVal
net.cpp (968) : Assertion Failed: 0 == iRet && iValLen == sizeof( iVal ) && cRecvBufSize <= iVal
couldn't exec server.cfg
Adding master server 72.165.61.189:27011
Adding master server 68.142.72.250:27011
Connection to Steam servers successful.
   VAC secure mode is activated.

However I cant access it on the internet Sad. sv_lan is set right btw and I allowed port 27015 in iptables...

Here is the dump of my ifconfig and iptables.
ifconfig:
Code:
eth0      Link encap:Ethernet  HWaddr 00:30:05:EB:D8:17
          inet addr:88.208.248.30  Bcast:88.208.251.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23496 errors:0 dropped:0 overruns:0 frame:0
          TX packets:304 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1460149 (1.3 MiB)  TX bytes:36105 (35.2 KiB)
          Interrupt:193 Base address:0x4000

eth0:0    Link encap:Ethernet  HWaddr 00:30:05:EB:D8:17
          inet addr:88.208.248.31  Bcast:88.208.251.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:193 Base address:0x4000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

iptables -n -L
Code:
Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:22 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:80 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:443 state NEW
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:53 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:53 state NEW
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:69 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:69 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:25 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:110 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:143 state NEW
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:123 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:20 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:21 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:3306 state NEW
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:3306 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:5555 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8002 state NEW
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:9001 state NEW
DROP       all  --  0.0.0.0/0            0.0.0.0/0

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state NEW,RELATED,ESTABLISHED

Someone did advise me to check my hosts files.. (etc/hosts) this has 127.0.1.1 mapped to "ubuntu" (which appears to be my hostname).. so I am not sure if that is causing the problem???

ANy help appreciated!
Reply
#34
Ummmm I think that is my iptables after i flushed them.... before I had all the right entries (I think) and it still didnt work
Reply
#35
killakemo911 Wrote:... arent the same mying are different?
1) What is "mying"
2) How does your server stop?
3) Does it just sit there like a good running server?
4) Or does it quit and return you to the command prompt?

Here is the tail of starting my GG DM Turbo
Code:
Adding master server 72.165.61.190:27011
Adding master server 69.28.151.162:27011
Connection to Steam servers successful.
   VAC secure mode is activated.
Warmup round : 28 seconds leftWARNING: Couldn't find server variable: bomber

Errant Wrote:Ummmm I think that is my iptables after i flushed them.... before I had all the right entries (I think) and it still didnt work
1) Have you created a script for consistently configuring your iptables??? That way you don't end up with a random configuration each time.
2) What error are you getting when you try to connect?
3) Have you checked connectivity? See: RE: Tried everything Have no idea whats wrong.
Reply
#36
1) Have you created a script for consistently configuring your iptables??? That way you don't end up with a random configuration each time.
Im not sure I understand that? Any hints Smile Im not a linux Noob but Ive never had to fiddle with IPtables before Toungue
2) What error are you getting when you try to connect?
Nothing - just cannot contact server. IE it just cant see it. My host ASSURE me port forwarding works ok.....
3) Have you checked connectivity? See: RE: Tried everything Have no idea whats wrong.
Nope! Great link. Ill have a go thanks. I did fiddle my python socket server to connect but I only half finished it before uni work took over Smile

Thanks for the help mate. Ill check back when I try that script Smile
Reply
#37
Dammit so that perl script simplydisplays: SERVER started on port 27015 and doesnt go any further. SO I guess it is a port forwarding issue?? Ill have to bitch at the hosting peeps again I think Toungue

THx....
Reply
#38
Errant,

0) Does your server have its own ip address and raw connection to the internet?
It sounds strange that your host would be using port forwarding.

1) You put all of the iptables commands for configuring your firewall in a shell script so that you don't have to manually key them in.
The script will resemble (warning, this is not a complete firewall):
Code:
#!/bin/bash
IPTABLES="/sbin/iptables"

${IPTABLES} -N outside
${IPTABLES} -A outside -j DROP

${IPTABLES} -I outside -p udp --dport 1200 -j ACCEPT
${IPTABLES} -I outside -p udp --dport 27000:27020 -j ACCEPT
${IPTABLES} -I outside -p tcp --dport 27030:27039 -j ACCEPT
How have you been configuring your firewall?

3) The server script will pause at "SERVER started on port 27030" until you connect to it.
a) What happened on the client program (Quentannon)?
b) Did you change the port to 27015?
Reply
#39
Well that perl script had problems (Argument "\0\0\0\0" isn't numeric in pack at ./listen_print.pl line 22 being the most annoying error) but once it did work all that the client said was "connection refused". I tried it again with your firewall rules suggested and same problem Sad
No other error data than that..... im going to play with some python sockets and see if I cna work out a better error message Smile

I have no idea about the port forwarding - I am assuming this is the error? However I am inclined to suspect it is just Ubuntu (which I find the most useless software ever made Sad) being bitchy......

Totally stumped now though Sad

Oh as to the connection to the internet.. again im not sure. I believe it is behind router hardware and a firewall of some kind. The tracepath out of the box gives this:

1: server88-208-248-30.live-servers.net (88.208.248.31) 0.098ms pmtu 1500
1: server88-208-248-1.live-servers.net (88.208.248.1) 0.485ms
2: pc1.prt0.fhcon.fasthosts.net.uk (88.208.255.13) 0.484ms
3: ldn-b4-link.telia.net (213.248.75.153) asymm 4 4.163ms

EDIT: thx for all the help so far Smile
Reply
#40
The numeric pack error doesn't break the script on my machine (I'll get that fixed (edit: it's fixed)).

If I use Quetannon to connect to a port that isn't listening (or blocked), it times out with Connection refused.

I suspect your server machine is exposed to the internet.

It's just that your firewall (and possibly you server apps) are not properly configured.

I recommend spending a few hours reading about networking and firewalls.

Configure your firewall, dump with iptables -n -L, and study carefully to see if it makes sense.
Reply
#41
Awesome, cheers.

I really should have dug around more carefully into this before taking the plunge Toungue Normally i pick stuff up fast but I just havent had the time this time Smile

Thanks for all your help.. ill let you know if I run into any serious problems Smile
Reply
#42
port 27017/UDP is used by Secure servers on TF2 servers since last patch.
Reply
#43
My firewall configuration already supports that:
Code:
${IPTABLES} -I outside -p udp --dport 27000:27020 -j ACCEPT
Reply
#44
We seemed to be having this problems also, I will list some things that we did that might help people solve this problem. The prime symptom seems to be that everyone can start the server, and it seems to just stop at the "VAC secure mode is activated" and you cant see it in the internet tab, but you can either through adding it directly to your favorites, or over your LAN.

All of these are using your LOCAL IP!!! ie. 192.168.x.x!! or for static ips 192.168.x.xxx you do not need your external ip!

1.I feel a little odd saying this but if you have a dedicated server running on your network, you cant find it on the internet if you are on the same local network. In other words if you are connected to the internet through the same router as you dedicated server, it disables the ability to see your server in the internet tab.

2. Make sure you setup your static ip right follow this guide
http://www.portforward.com/networking/staticip.htm
just use the xp tutorial and there shouldn't be much thinking involved to input it correctly into your Linux platform.

3.On our router setup we made sure that all the port forwarding was going to the correct static ip (you need a static for port forwarding) we just port forwarded 80-30000 (just to make it easy) we did this for both TCP and UDP packet protocols, then we added the same for the port triggering (probably don't have to but its just less the computer has to work through)

4.Set up the DMZ to point at your static ip of the dedicated server that is about all you do (this should void all need of port forwarding but we just did it to make it easier for the computer to connect)

5.Time- you might need to wait a while for steam to register your server, i would suggest that you start your server, check to see that nothing critical failed, and go to sleep. When u wake up, check it, if you are lucky someone logged on, you will most likely see something about steam challenging ip (or something to that effect) i believe this is steam making the rounds to make sure the server is still running and connected.

In summary, you cannot see your dedicated linux server on the internet if you are in the same local area network!!!(all connected to the same router or internet box ((dsl/cable) If really want to know, ask a friend on steam (who is not connected your your local network) to try to find the server and login. I HOPE THIS HELPS SOMEONE.. please reply with any questions or corrections. THANKS!
Reply
#45
ok, this is an old topic but I have the same problem and nobody seems keen on answering any of my questions.

I have forwarded all the needed ports, set up a static ip for that computer, and i can play through lan fine.

I'm running Windows 2000 on my server box, does it have a firewall, I don't think so. This is causing me so much grief, their has to be a fix!!!!! >Sad
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)