Port 445 not visible in PBS (as virtual machine in PVE)

corndelphinus

New Member
Dec 13, 2022
23
1
3
I have a fresh installation of PVE, in which I have a PBS virtual machine (I don't have a second hardware for a separate server).
-> I need to connect a disk to the PBS via SMB, which uses port 445.
Proxmox Backup Server
When I use "nmap -p 445 <IP>":

  • PORT STATE SERVICE
  • 445/tcp filtered microsoft-ds

Proxmox Virtual Enviroment
However, when I do the same on the host PVE, everything works:

  • PORT STATE SERVICE
  • 445/tcp open microsoft-ds

I have the port enabled in iptables on the PVE:

  • ACCEPT tcp -- anywhere <IP> tcp dpt:netbios-ssn
  • ACCEPT tcp -- anywhere <IP> tcp dpt:microsoft-ds

Can someone please give me some advice on how to get SMB working in PBS?
 
Last edited:
this is not a PVE fault, as, of course, it should works.
double check your config.
is VLAN involved ? is routed or NAT subnet involved ?

edit: is firewall enabled within PBS VM ?
 
Last edited:
this is not a PVE fault, as, of course, it should works.
double check your config.
is VLAN involved ? is routed or NAT subnet involved ?

edit: is firewall enabled within PBS VM ?
Thank you for your reply!!

Host PVE:

iptables -L
ACCEPT tcp -- anywhere <PBS IP> tcp dpt:microsoft-ds

1712691761284.png

1712691840477.png
 
within PBS = on PBS :8007 interface itself.
VM on PVE is disabled so rules aren't applied.
Thanks again for your reply! :)

I was not able to find how to access PBS firewall via GUI or terminal. Even iptables command is "iptables: command not found"

At least here is PVE network settings
1712692745448.png
 
you have a NAT / masquerade for your vmbr2, so vmbr0 network can't access vmbr2 network. you need forwarding ports if you want access hosts on vmbr2 from vmbr0.
but vmbr2 can access vmbr0.
 
you have a NAT / masquerade for your vmbr2, so vmbr0 network can't access vmbr2 network. you need forwarding ports if you want access hosts on vmbr2 from vmbr0.
but vmbr2 can access vmbr0.
Thank you for your reply! I have only 1 IP address, thats why PVE runs on vmbr0, and all VM´s runs on vmbr2.

1712732708874.png
 
Last edited:
Again, thank you for your reply!

It is 192.168.192.0/18, which means Usable Host IP Range: 192.168.192.1 - 192.168.255.254 and thus my VM address 192.168.201.1 is fine
 
oups myself not experimented other than /24 networks.
post "interfaces" of PBS VM itself.
edit: you need to check the network : ping host>vm , vm>host , vm<->vm ...
 
Last edited:
oups myself not experimented other than /24 networks.
post "interfaces" of PBS VM itself.
edit: you need to check the network : ping host>vm , vm>host , vm<->vm ...
Thank you for the reply!

Firewall or iptables is not included in the PBS.

I can ping:
  • ✅ host>vm
  • ✅ vm > host
  • ✅ vm <> vm

  • ✅ host > port 445
  • ❌ vm > port 445
 
Last edited:
For the context - I am trying this: https://forum.proxmox.com/threads/pbs-mounting-windows-smb-share-as-datastore.113164/

And I am here:
"
Finally, mount your SMB share in PBS:
sudo mount -t cifs -o rw,vers=3.0,credentials=/etc/samba/.smbcreds //1.2.3.4/sharename /mnt/somefolder
"

and with this I get:

"
mount error: Server abruptly closed the connection.
This can happen if the server does not support the SMB version you are trying to use.
The default SMB version recently changed from SMB1 to SMB2.1 and above. Try mounting with vers=1.0.
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
"
"
CIFS: VFS: cifs_mount failed w/return code = -112
"

That´s why I am testing that nmap port, which cannot be reached
NAS´s SMB supports version 2 and 3, tried it with the same result
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!