Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi U all, since more than week I'm testing and reading about samba. However there's still one problem which I can't solve. First I'll introduce my network.
WinXP ip 10.10.4.44 on pppoe gateway 10.10.0.1
Fedora1 ip 10.10.4.45 on eth1
on the Linux: route add -net 10.10.0.0 gw 10.10.0.1
Betweeb the Win box and 10.10.0.1 there's a pppoe connection.
smb.conf
[global]
workgroup = ATLANTIS
netbios name = server
encrypt passwords = yes
interfaces = eth*
wins support = yes
prefered master = yes
local master = yes
remote announce = 10.10.4.255/ATLANTIS
All firewall rules on the PPPoE server are disabled.
The problem is that with this scenario on the Win XP I can't see the samba server. If I set an static ip addr on Win XP on the same subnet with SambaS. - no problems, but trying it through the PPPoE conection -> nothing. The idea is that I want only authenticated users to use my Samba Server.
Please Help me or give me an idea how to achieve my goals. 10x
After looking at your post, there are two issues I see. First of all, the routing. You did not say what sub-net mask you are using. 10. is a class A private networking IP address. The last three bytes are host address unless you use a mask to specify other than 255.0.0.0. Have you checked all IP interfaces are using the same mask? What is your mask?
The second issue you raise is authentication. As I see it that has little to do with the routing. So to make along story short, why not have them all on the same sub-net? Only reason I can think of is you have too many machines for say a private 192.168 class c network. Not sure at all if that is the case, ( you mention just 2 ) just a thought. Authentication is looked after by the Samba server. You are using encrypted passwords, and you have to setup the users. I used SWAT, that was the easy way.
Are you concerned with security form outside connections on the 10.10.0.1 side?
well, all the masks are 255.255.0.0
It isn't only one user. There's more users and the idea is to share a ftp server files and the authenticated users who use windows to be able to watch the Movies and listen to the mp3s without downloading it. There will have only one user and pass for all of them to connect to the samba server. All the users has other passwords for connecting to the PPPOE server.
my current smb.conf is:
[global]
workgroup = FREE
netbios name = FREE2
server string = server
encrypt passwords = yes
read only = yes
security = user
socket options = TCP_NODELAY IPTOS_LOWDELAY
guest account = free
allow hosts = 10.10.
os level = 1
interfaces = 10.10.10.10/16 10.20.0.2/16 127.0.0.1
remote announce = 192.168.2.255/OFFICE 10.20.255.255/Workgroup
remote browse sync = 10.20.0.1
the addresses from 10.20.255.255 are given to the users by an DHCP server (10.20.0.1 is a Local/Domain Master Browser). I want only users who's connected (and reseived address like 10.10.*.* ) to be able to use the samba server. In the above config if I add 10.20. to the the 'allow hosts' I have everithing I want. , but as soon as I again try with allow hosts = 10.10. (without 10.20.) -> again no access to the machine. I just see it's workgroup, but can't access it.
I think that I found the problem but still can't solve it. It's that windows machines use only their primary ip address to browse the LAN. However, when they connect with their account on the PPPOE server it's there second ip address that they receive and can't browse the LAN with it (only with their DHCP ip address).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.