Thinlinc and zerotier

Hi,

i do not want to open up any ports on my router, so for all remote activities and services i use running in my lan, I use zerotier as vpn. it basically creates a new network interface on all members of the vpn and i can connect to them.

i just installed thinlinc because i guess it works smoother compared to vncserver & remmina (which does work btw). but when i set it up and want to connect, the thinlinc client as well as the webclient do redirect/route/map/… to the local IP adress even if i try to connect to the IP from the VPN client.

any way, I can configure the thinlinc client which network interface it uses?

long story short - i try to connect to 10.xxx.xx.xx but in the followup step, thinlinc does connect to 192.168.1.x


2023-05-20T23:14:24: ssh[E]: PASSWORD: anon 10.xxx.xx.xxx
2023-05-20T23:14:24: ssh[E]: AUTH SUCCESS
2023-05-20T23:14:24: ssh[E]: CONNECTED
2023-05-20T23:14:24: ssh[E]: UPDATE HOST KEYS: 3 10.xxx.xx.xxx 10.xxx.xx.xxx 22
2023-05-20T23:14:24: ssh[E]: UPDATED HOST KEY: anon
2023-05-20T23:14:24: ssh[E]: UPDATED HOST KEY: anon
2023-05-20T23:14:24: ssh[E]: UPDATED HOST KEY: anon
2023-05-20T23:14:24: Updating host keys for 10.xxx.xx.xxx.
2023-05-20T23:14:25: ssh[E]: THINLINC-LOGIN: HELLO 4.14.0
2023-05-20T23:14:25: ssh[E]: THINLINC-LOGIN: CONNECTED MASTER
2023-05-20T23:14:25: My hardware address is anon
2023-05-20T23:14:25: Calling XML-RPC method 'get_capabilities'
2023-05-20T23:14:25:  Response: 0: Erfolg
2023-05-20T23:14:25: Calling XML-RPC method 'get_user_sessions'
2023-05-20T23:14:25:  Response: 0: Erfolg
2023-05-20T23:14:25: Calling XML-RPC method 'kill_session'
2023-05-20T23:14:26:  Response: 0: Erfolg
2023-05-20T23:14:26: Calling XML-RPC method 'get_user_sessions'
2023-05-20T23:14:26:  Response: 0: Erfolg
2023-05-20T23:14:26: Calling XML-RPC method 'new_session'
2023-05-20T23:14:29:  Response: 0: Erfolg
2023-05-20T23:14:29: SSH command: anon
2023-05-20T23:14:29: SSH pid is 6620
2023-05-20T23:14:29: ssh[E]: CONFIRM HOST KEY: 192.xxx.x.xx 192.xxx.x.xx 22 anon
2023-05-20T23:14:29: No acceptable host key found.
2023-05-20T23:14:44: Process 6619 exited with code 0
2023-05-20T23:14:44: Process 6620 killed by signal 15

Hello,

ThinLinc will first connect to your 10.x.x.x IP, and then disconnect and make a new connection to whatever agent_hostname is set to in /opt/thinlinc/etc/conf.d/vsmagent.hconf
If this is left empty, it will be the primary ipaddress of the first network interface card of your machine.

Try to change agent_hostname to your 10.xxx.xx.xx ipaddress and then restart the vsmagent.service:

sudo systemctl restart vsmagent

Kind regards,
Martin

1 Like

I has the same problem and your answer works for me, thank you!

2 Likes