Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

restricting samba to internal ip addresses...

Status
Not open for further replies.

fenris

Programmer
May 20, 1999
824
CA
How do you restrict samba so that it will only look at requests comming from internal sources (192.168.0.0/24) via the nic that is directly connected to them?
 
Look at the variables available, you can put them into the configuration file, they are designated by a percent (%) sign and either uppercase or lowercase letters (%I, %a, etc..) you can use %I to designate the IP address for the share it's configuring, for example:

[pub]

path = /home/user/%a


The %a designates system architecture (Win95, MAC, WinNT, etc..)

The Samba manual Using Sambacan be downloaded from it is in HTML and PDF format. Discussion of variables is in Chapter 4 of the PDF version.
 
Thanks Jon I appreciate it. On a side note I had just downloaded a copy of the book yesterday and hopefully I will be able to get around to reading it on the weekend.

Thanks.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top