LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-18-2006, 08:57 PM   #1
brianbek
LQ Newbie
 
Registered: Mar 2005
Location: Nova Scotia, Canada
Distribution: Mandriva 2006
Posts: 18

Rep: Reputation: 0
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]
 
Old 01-18-2006, 09:56 PM   #2
matt!
LQ Newbie
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 9

Rep: Reputation: 0
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)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh port forwarding question lmcilwain Linux - Networking 4 09-29-2005 02:32 PM
ssh port forwarding (tunneling?) question podollb Linux - Software 4 10-20-2004 01:12 AM
Samba, ssh, port forwarding, and dynamic IP mdkelly069 Linux - Networking 0 03-19-2004 10:47 AM
Port forwarding for ssh Adriaan Linux - Networking 1 03-08-2004 09:11 AM
A little question to an SSH guru (port forwarding) J_Szucs Linux - Software 3 11-01-2003 07:59 AM


All times are GMT -5. The time now is 07:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration