[SOLVED] pvesm add cifs over internet with alternate port

lucascatani

New Member
May 28, 2021
8
0
1
37
Good Morning. I need to add a SAMBA/CIFS storage over the internet, but I need the port to be 4445 instead of 445 because my ISP does not accept ports smaller than 1024 as input.

My command to mount is:

Bash:
pvesm add cifs TESTE --server 190.15.5.X --share pasta --username user --password pass

This command try to mount on port 445 but i need 4445.
 

nunner

Proxmox Staff Member
Staff member
Sep 1, 2022
98
20
8
Hi,

it is generally not recommended to run CIFS over the internet, and most clients will probably not allow you to connect over alternate ports. Can you maybe set up a VPN to your remote site?
 

lucascatani

New Member
May 28, 2021
8
0
1
37
Hi,

it is generally not recommended to run CIFS over the internet, and most clients will probably not allow you to connect over alternate ports. Can you maybe set up a VPN to your remote site?
Hi, in this specific case i need to do with cifs over internet. In other cases i use vpn.
 

lucascatani

New Member
May 28, 2021
8
0
1
37
I do the job mounting with DIRECTORY (first mount as cifs and then create a directory), but i need to know how to mount with pvesm an alternate port (to learn).
 

nunner

Proxmox Staff Member
Staff member
Sep 1, 2022
98
20
8
As far as I'm aware, there's no built-in way to add custom parameters when using pvesm, and the CIFS backend does not have a parameter to set the port (you can see all available config options here [1]). I guess you might be able to mount it using a bare mount command by setting -o port=4445 and then adding the mountpoint as a directory, but again, this really is not advisable.

[1] https://pve.proxmox.com/wiki/Storage:_CIFS
 

lucascatani

New Member
May 28, 2021
8
0
1
37
As far as I'm aware, there's no built-in way to add custom parameters when using pvesm, and the CIFS backend does not have a parameter to set the port (you can see all available config options here [1]). I guess you might be able to mount it using a bare mount command by setting -o port=4445 and then adding the mountpoint as a directory, but again, this really is not advisable.

[1] https://pve.proxmox.com/wiki/Storage:_CIFS
Like a said before, i did exactly you suggest.
 

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 your own in 60 seconds.

Buy now!