Reach host truenas from VM

boistordu

Cadet
Joined
Dec 12, 2020
Messages
6
Hi,

I’m new to truenas so I don’t have the right reflexes I guess just yet.

i wanted to mount somenfs shares from my truenas host and it doesn’t work.
timed out.

so I tried to reach the host from within the vm with ssh and it doesn’t work either.

the vm are created in truenas.

truenas host is otherwise accessible.
Vm also.

they are on the same subnet than the host so it means it is bridging ?
and if that is the case, I was wondering if it was the same phenomenom that in linux where you use a bridge virtual controller and therefore the vm can’t contact the host?

thanks in advance
 

boistordu

Cadet
Joined
Dec 12, 2020
Messages
6
Okey so by filtering it through tcpdump I can see that ssh packets are going through vnet0 and bridge0
But not through vtnet0 which is the main interface of truenas.

what I can see it’s that in the web GUI, the listened interface is vtnet0.
So my question is, is it because of that setup ? And how do I authorize the vm which are using vnet0 apparently to also be able to contact the host ?

so that I can be sure that Ican Contact the host from the vm ?
 

boistordu

Cadet
Joined
Dec 12, 2020
Messages
6
So from the tcpdump I've made
it becomes clear that truenas is not responding on vnet0 for the ssh connection. Which is a bit sad that you can't contact the host from the VM through SSH.
The host is receiving request on vnet0 and is a link created for each VM .
there is even ACK sent to the VM

Code:
20:02:30.243217 IP dockerstation.localdomain.32972 > truenas.localdomain.ssh: Flags , seq 65077967, win 64240, options [mss 1460,sackOK,TS val 608562716 ecr 0,nop,wscale 7], length 0
20:02:30.243576 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292784294 ecr 608562716], length 0
20:02:31.237413 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292785292 ecr 608562716], length 0
20:02:33.483685 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292787537 ecr 608562716], length 0
20:02:34.315120 IP dockerstation.localdomain.32972 > truenas.localdomain.ssh: Flags , seq 65077967, win 64240, options [mss 1460,sackOK,TS val 608566788 ecr 0,nop,wscale 7], length 0
20:02:34.315424 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292788366 ecr 608566788], length 0
20:02:35.329247 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292789383 ecr 608566788], length 0
20:02:37.527354 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292791581 ecr 608566788], length 0
20:02:41.779754 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292795834 ecr 608566788], length 0
20:02:42.503283 IP dockerstation.localdomain.32972 > truenas.localdomain.ssh: Flags , seq 65077967, win 64240, options [mss 1460,sackOK,TS val 608574976 ecr 0,nop,wscale 7], length 0
20:02:42.503544 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292796554 ecr 608574976], length 0
20:02:43.559886 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292797614 ecr 608574976], length 0
20:02:45.793630 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292799847 ecr 608574976], length 0
20:02:49.993680 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 3199727684, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292804047 ecr 608574976], length 0
20:02:58.631215 IP dockerstation.localdomain.32972 > truenas.localdomain.ssh: Flags , seq 65077967, win 64240, options [mss 1460,sackOK,TS val 608591104 ecr 0,nop,wscale 7], length 0
20:02:58.631523 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 488433127, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292812682 ecr 608591104], length 0
20:02:59.649038 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 488433127, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292813703 ecr 608591104], length 0
20:03:01.857388 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 488433127, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292815911 ecr 608591104], length 0
20:03:06.083300 IP truenas.localdomain.ssh > dockerstation.localdomain.32972: Flags [S.], seq 488433127, ack 65077968, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 3292820137 ecr 608591104], length 0


But no connection is made. So I don't know if it's because turenas doesn't answer correctly to the request or something else.

The problem is that I have the same kind of problem apparently with any shares I try to make and which should be reachable through the vm :

Code:
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter server string = %h server (Samba, Ubuntu)
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter logging = file
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone server
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
lp_servicenumber: couldn't find homes
added interface docker0 ip=172.17.0.1 bcast=172.17.255.255 netmask=255.255.0.0
added interface enp0s4 ip=172.20.0.84 bcast=172.20.0.95 netmask=255.255.255.240
Netbios name list:-
my_netbios_names[0]="DOCKERSTATION"
Client started (version 4.11.6-Ubuntu).
Connecting to 172.20.0.83 at port 445
Connecting to 172.20.0.83 at port 139
do_connect: Connection to 172.20.0.83 failed (Error NT_STATUS_IO_TIMEOUT)
 
Top