LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba ssh port forwarding question.. (https://www.linuxquestions.org/questions/linux-networking-3/samba-ssh-port-forwarding-question-405177/)

brianbek 01-18-2006 08:57 PM

Samba ssh port forwarding question..
 
Hey all,

I'm trying to forward port 139 from a remote server to port 139 of my local server , so I'm able to browse the remote samba server's shares, using ssh's -g option. This works great if my local samba server is shutdown. I understand that this is because samba is using port 139.

I have two network cards installed in the local samba server, so I quess my question is can i forward the remote server's port 139 to nic2 while still running my local samba server on nic1?

(kindof a linux networking newbie so I hope that wasn't nonsense, just trying this for fun mainly :)

[remote server]--(internet)--[local server]--[clients]

matt! 01-18-2006 09:56 PM

I can't rememeber off the top of my head how to get a port forwarded to only 1 nic, because i don't use this.

Getting your local samba server to bind to only 1 nic should be as simple as adding this line to your smb.conf:

interfaces = lo eth0
bind interfaces only = yes

assuming you want it to be available on loopback (127.0.0.1) and your eth0 device. (change as appropriate)


All times are GMT -5. The time now is 01:05 AM.