cancel
Showing results for 
Search instead for 
Did you mean: 

Binding CIFS to another port

rgeimer
Champ in-the-making
Champ in-the-making
I am using the WAR file version of Alfresco, an am running my servlet container on Linux as a user other than root. This prevents me from using CIFS, since only root can bind to ports below 1024.

I would like to be able to bind CIFS to another port above 1024, then use IP tables to route the default CIFS port to the new port. Is this possible? I didn't see any port options in file-servers.xml, but maybe this capability exists elsewhere?
1 REPLY 1

gary_spencer
Champ in-the-making
Champ in-the-making
Hi,

You can configure the CIFS server to use non-standard/non-privileged ports and then use iptables/ipfw to map the port. In the file-servers.xml use :-

      <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>

I have this setup under Mac OS X. The only problem I have is that I cannot get UDP/datagrams to forward using the firewall rules so I have to use either the IP address or add an entry to the LMHOSTS file on the client to be able to connect.

Cheers

Gary