LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-24-2003, 07:53 AM   #1
dragon
Member
 
Registered: Feb 2002
Posts: 51

Rep: Reputation: 15
Unhappy samba question


i have a linux box and a win box. i use linux as gateway which has 2 NICs, eth0 and eth1. eth0 is T1 connection to ISP(DHCP), and eth1 configured as 192.168.1.1. Win box as 192.168.1.3
Before i connected 2 machines parellelly to T1 connection(DHCP), didn't use linux as gateway. samba worked. now i couldn't connect to linux from win box.
What is wrong? How can i fix it?

Thanks.
 
Old 02-24-2003, 07:55 AM   #2
dragon
Member
 
Registered: Feb 2002
Posts: 51

Original Poster
Rep: Reputation: 15
BTW, i'm running RH8, samba 2.2.7, i guess
 
Old 02-24-2003, 10:33 AM   #3
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
Can you ping the Linux eth1 from the Windows box?
 
Old 02-24-2003, 10:35 AM   #4
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
I'm not sure I can make sense of this configuration.

You have eth0 directly connected to your T1?

If so, what was it connected to *before*?

Anyway, I'll have a stab at your problem. I'm assuming you were doing DHCP on *both* machines before, and that now your win2k machine has a private ip it's not working.

In which case - look at your smb.conf and look for the following lines :

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
; hosts allow = 192.168.1. 192.168.2. 127.

Ensure that your hosts allow line has 192.168.1.
in it. If it doesn't it won't allow you to connect.

Slick.
 
Old 02-24-2003, 10:41 AM   #5
dragon
Member
 
Registered: Feb 2002
Posts: 51

Original Poster
Rep: Reputation: 15
yes, i can ping linux:eth1 from winbox. and i use linux box as gateway, no problem.
yes, i have that line uncommented.
i even tried:
interfaces = 192.168.1.1/24
and
bind interface only = yes

didn't work out.

Thanks to you guys.
 
Old 02-24-2003, 01:28 PM   #6
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Fair enough...

Now, do you have a firewall up, and are you filtering ports 139 and urm.. 138 is it? I forget. It'll show up in iptables -L as netbios stuff.

In addition, can you look in your /var/log/samba/ logs for errors you're getting. Either nmbd.log or smbd.log

Slick.
 
Old 02-24-2003, 01:51 PM   #7
dragon
Member
 
Registered: Feb 2002
Posts: 51

Original Poster
Rep: Reputation: 15
it seems that the problem getting clear. i'm not familiar with the firewall settings. i'll try to solve it.

Thanks, Slick.
 
Old 02-25-2003, 07:25 AM   #8
dragon
Member
 
Registered: Feb 2002
Posts: 51

Original Poster
Rep: Reputation: 15
Thank you all, guys.
After I reset the firewall acording to IP-Masquerade-Howto, problem solved.

Thanks.
 
  


Reply



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
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba question Ryknow215 Linux - General 3 02-23-2004 06:11 PM
Samba question Marklar Linux - Networking 30 01-02-2004 03:44 PM
A Samba Question? gsmonk Linux - Networking 2 08-20-2003 09:14 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration