Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this samba service running on a box with 2 network interfaces. I can't redirect incoming connections on port 445 because it is being used by this service:

#ssh -fgNL 445: user@localhost
channel_setup_fwd_listener: cannot listen to port: 445

There is any way to make the samba service to listen an specific interface, while connections on the other interface are redirected?

share|improve this question
up vote 5 down vote accepted
bind interfaces only = True
interfaces = eth0

in smb.conf so it will listen only to that interface

share|improve this answer
Yay ! – Jader Dias Aug 30 '09 at 20:56

Your Answer


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.