Jump to content

Connection through proxy


Recommended Posts

Hello,

I have had a working cluster configuration for some time now and wanted to consolidate my services through a public reverse proxy which is then tunneled to my home network. My configuration is working as expected, however, when navigating through the server browser - I am getting routed directly to the server rather than through my proxy ip. This makes sense, as I am not telling the server to send 'connect to this ip' instead of grabbing my local home public ip.

I tried many options, but I didn't find anywhere I could say 'use this dynamic dns value' when trying to connect to my server through the server browser. I also tried to just make it available through lan only, but it doesn't think that the connection is coming from the lan when doing a c_connect directly to the proxy. See configs below:

Cmdline

./dontstarve_dedicated_server_nullrenderer -cluster <cluster> -shard Master -persistent_storage_root /steam/app/dontstarve/conf

Cluster.ini

[GAMEPLAY]
game_mode = endless
max_players = 10
pvp = false
pause_when_empty = true

[NETWORK]
cluster_name = <cluster_name>
cluster_description = <cluster_description>
cluster_password = <cluster_password>
cluster_intention = social
autosaver_enabled = true
vote_enabled = false
#offline_cluster = true

[MISC]
console_enabled = true

[SHARD]
shard_enabled = true
bind_ip = 10.0.0.3
master_ip = 10.0.0.3
cluster_key = <cluster_key>

Master server.ini

[SHARD]
is_master = true

[ACCOUNT]
encode_user_path = true

Online server

First through c_connect, then server browser.

[00:00:04]: About to start a server with the following settings:                                                        
[00:00:04]:   Dedicated: true                                                                                           
[00:00:04]:   Online: true                                                                                              
[00:00:04]:   Passworded: true                                                                                          
[00:00:04]:   ServerPort: 10999                                                                                         
[00:00:04]:   SteamAuthPort: 8766                                                                                       
[00:00:04]:   SteamMasterServerPort: 27016                                                                              
[00:00:04]:   ClanID: false                                                                                             
[00:00:04]:   ClanOnly: false                                                                                           
[00:00:04]:   ClanAdmin: false                                                                                          
[00:00:04]:   LanOnly: false                                                                                            
[00:00:04]:   FriendsOnly: false                                                                                        
[00:00:04]:   EnableAutosaver: true                                                                                     
[00:00:04]:   EncodeUserPath: true                                                                                      
[00:00:04]:   PVP: false                                                                                                
[00:00:04]:   MaxPlayers: 10                                                                                            
[00:00:04]:   GameMode: endless                                                                                         
[00:00:04]:   OverridenDNS:                                                                                             
[00:00:04]:   PauseWhenEmpty: true                                                                                      
[00:00:04]:   IdleTimeout: 1800s                                                                                        
[00:00:04]:   VoteEnabled: true                                                                                         
[00:00:04]:   InternetBroadcasting: true                                                                                
[00:00:04]: Online Server Started on port: 10999

[00:00:20]: About to start a shard with these settings:                                                                 
[00:00:20]:   ShardName: [SHDMASTER]                                                                                    
[00:00:20]:   ShardID: 1                                                                                                
[00:00:20]:   ShardRole: MASTER                                                                                         
[00:00:20]:   MasterHost: (null)                                                                                        
[00:00:20]:   MasterBind: 10.0.0.3                                                                                      
[00:00:20]:   MasterPort: 10888
[00:00:20]: [Shard] Starting master server
[00:00:20]: [Shard] Shard server started on port: 10888

[00:01:35]: New incoming connection 10.0.0.1
[00:01:35]: Client connected from 10.0.0.1

[00:03:03]: New incoming connection 143.X.X.X                                            
[00:03:03]: Client connected from 143.X.X.X

Offline server

Through c_connect only.

[00:00:04]: About to start a server with the following settings:
[00:00:04]:   Dedicated: true
[00:00:04]:   Online: false
[00:00:04]:   Passworded: true
[00:00:04]:   ServerPort: 10999
[00:00:04]:   SteamAuthPort: 8766
[00:00:04]:   SteamMasterServerPort: 27016
[00:00:04]:   ClanID: false
[00:00:04]:   ClanOnly: false
[00:00:04]:   ClanAdmin: false
[00:00:04]:   LanOnly: true
[00:00:04]:   FriendsOnly: false
[00:00:04]:   EnableAutosaver: true
[00:00:04]:   EncodeUserPath: true
[00:00:04]:   PVP: false
[00:00:04]:   MaxPlayers: 10
[00:00:04]:   GameMode: endless
[00:00:04]:   OverridenDNS:
[00:00:04]:   PauseWhenEmpty: true
[00:00:04]:   IdleTimeout: 1800s
[00:00:04]:   VoteEnabled: true
[00:00:04]:   InternetBroadcasting: true
[00:00:04]: Lan Server Started on port: 10999

[00:00:20]: About to start a shard with these settings:
[00:00:20]:   ShardName: [SHDMASTER]
[00:00:20]:   ShardID: 1
[00:00:20]:   ShardRole: MASTER
[00:00:20]:   MasterHost: (null)
[00:00:20]:   MasterBind: 10.0.0.3
[00:00:20]:   MasterPort: 10888
[00:00:20]: [Shard] Starting master server
[00:00:20]: [Shard] Shard server started on port: 10888

[00:02:04]: Unconnected ping from 10.0.0.1
[00:02:05]: New incoming connection 10.0.0.1
[00:02:05]: LAN server refusing connection from 10.0.0.1
[00:02:05]: CloseConnectionWithReason: ID_DST_SERVER_IS_LAN_ONLY

The only difference between the configs is the uncomment of the offline_custer property. I see a property of 'OverridenDNS', but I didn't see that documented and don't know if that would even help. My end goal would be to have it be an online server that would route through the proxy. Any help is appreciated, thank you!

 

 

Link to comment
https://forums.kleientertainment.com/forums/topic/165286-connection-through-proxy/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...