Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

As is typical, my IPS is blocking samba ports. I'm trying to setup a samba server that's on the clouds (at rackspace). How can I:

1) change the ports that samba runs on, i.e. smbd, nmbd on the vps

2) force my samba client on mac os x (default os x Finder connect) to use those ports?

Thanks,

Sam

share|improve this question
    
I didn't know you could. smb has defined port numbers. Not sure if they can be overridden. Intrigued, why run samba on a vps? –  Matt Sep 21 '12 at 3:56
    
just practice. plus single sign on for multiple users via ldap & samba that backs-up the profiles to the vps –  Sam Hammamy Sep 21 '12 at 4:03
    
@Matt I found out you can do sudo smbd -p 1139 for example. But even on the vps when I do smbclient -L //localhost I get Connection to localhost:1139 failed (Error NT_STATUS_BAD_NETWORK_NAME) –  Sam Hammamy Sep 21 '12 at 4:04
    
Do you have Samba binded to the "lo" interface? –  Gazzonyx Sep 21 '12 at 4:15
    
@Gazzonyx no, why? –  Sam Hammamy Sep 21 '12 at 4:30
show 2 more comments

1 Answer

Like ErikA said, you should be running a VPN for this stuff. Direct Samba connections over the Internet is insane.

I recommend OpenVPN which is available as a supported package for many Linux distributions.

share|improve this answer
    
a VPN wouldn't give me roaming profiles from the login prompt. Or can I direct the login prompt to authenticate against the VPN –  Sam Hammamy Sep 21 '12 at 6:11
    
Use a Linux server as an OpenVPN router and put your Windows system behind it. You're just flat out insane to try and run traffic across the public Internet as if it were wired up in your home office. –  Magellan Sep 21 '12 at 6:15
    
Ok. So I setup OpenVPN on the Ubuntu VPS, that's great. But how do I get my OS X Machine to authenticate against it on login, as if it were an Active Directory? –  Sam Hammamy Sep 21 '12 at 6:26
    
@SamHammamy at least with Windows clients, you can. No idea about OS X. And as already noted by others, changing Samba ports would not enable you to log on as the SMB clients would not allow you to specify an alternate port. –  the-wabbit Sep 21 '12 at 8:10
    
@syneticon-dj Thanks. That article is a great help –  Sam Hammamy Sep 21 '12 at 11:04
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.