|
Компьютерный форум OSzone.net » Linux и FreeBSD » Общий по Linux » И снова Samba. |
|
И снова Samba.
|
Новый участник Сообщения: 22 |
Привет всем!! *У меня вопрос общего характера по Sambe *и по LAN вообще… для *затравки, немного предыстории. *Так вот, решили мы создать домашнею локальную сеть, протянули пару километров кабеля, расшарили ресурсы, запустили пару игровых серверов, в общем как везде. Так как страна у нас не богатая (к слову, средний заработок *всего 80 гринов) было решено в сервак воткнуть еще две сетевухи (благо по оказии нагребли этого хлама) и с экономить на свиче. *Но как вы уже догадались возникли проблемы другого характера… На серваке установлен RH 9.0, *samba Version 2.2.7a, Linux 2.4.24. Рад буду любому совету! *А пока конкретные грабли. Из разных сетей невозможно зайти на шару по имени компа только по IP. Что делать, все что знал перепробовал.
eth0 * * *Link encap:Ethernet *HWaddr 00:60:97:20:F4:56 * * * * * *inet addr:192.168.70.1 *Bcast:192.168.70.255 *Mask:255.255.255.0 * * * * *UP BROADCAST RUNNING MULTICAST *MTU:1500 *Metric:1 * * * * *RX packets:21153737 errors:0 dropped:0 overruns:0 frame:0 * * * * *TX packets:32725724 errors:0 dropped:0 overruns:0 carrier:0 * * * * *collisions:0 txqueuelen:1000 * * * * *RX bytes:1823317099 (1738.8 Mb) *TX bytes:2863522721 (2730.8 Mb) * * * * *Interrupt:10 Base address:0x1000 eth1 * * *Link encap:Ethernet *HWaddr 00:60:97:20:F4:0B * * * * * *inet addr:192.168.64.254 *Bcast:192.168.64.255 *Mask:255.255.255.0 * * * * *UP BROADCAST RUNNING MULTICAST *MTU:1500 *Metric:1 * * * * *RX packets:4836383 errors:0 dropped:0 overruns:0 frame:0 * * * * *TX packets:7180776 errors:0 dropped:0 overruns:0 carrier:109 * * * * *collisions:0 txqueuelen:1000 * * * * *RX bytes:2227454501 (2124.2 Mb) *TX bytes:3523557012 (3360.3 Mb) * * * * *Interrupt:5 Base address:0x1040 eth2 * * *Link encap:Ethernet *HWaddr 00:60:97:2D:3F:DB * * * * * *inet addr:192.168.71.254 *Bcast:192.168.71.255 *Mask:255.255.255.0 * * * * *UP BROADCAST RUNNING MULTICAST *MTU:1500 *Metric:1 * * * * *RX packets:1119464 errors:0 dropped:0 overruns:0 frame:0 * * * * *TX packets:1875447 errors:0 dropped:0 overruns:0 carrier:0 * * * * *collisions:0 txqueuelen:1000 * * * * *RX bytes:111746614 (106.5 Mb) *TX bytes:2614261312 (2493.1 Mb) * * * * *Interrupt:9 Base address:0x1080 lo * * * *Link encap:Local Loopback * * * * * *inet addr:127.0.0.1 *Mask:255.0.0.0 * * * * *UP LOOPBACK RUNNING *MTU:16436 *Metric:1 * * * * *RX packets:49930 errors:0 dropped:0 overruns:0 frame:0 * * * * *TX packets:49930 errors:0 dropped:0 overruns:0 carrier:0 * * * * *collisions:0 txqueuelen:0 * * * * *RX bytes:3938872 (3.7 Mb) *TX bytes:3938872 (3.7 Mb) и часть конфига самбы... # workgroup = NT-Domain-Name or Workgroup-Name * workgroup = Freenet # server string is the equivalent of the NT Description field * server string = Server hosts allow = 127. 192.168.70. 192.168.71. 192.168.72. 192.168.64. # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them # here. See the man page for details. ; * interfaces = 192.168.12.2/24 192.168.13.2/24 interface = 192.168.64.254/24 192.168.71.254/24 192.168.70.1/24 192.168.72.254/24 # Browser Control Options: # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply * local master = yes # OS Level determines the precedence of this server in master browser # elections. The default value should be reasonable * os level = 70 # Domain Master specifies Samba to be the Domain Master Browser. This # allows Samba to collate browse lists between subnets. Don't use this # if you already have a Windows NT domain controller doing this job * domain master = yes # Preferred Master causes Samba to force a local browser election on startup # and gives it a slightly higher chance of winning the election # *preferred master = yes # Enable this if you want Samba to be a domain logon server for # Windows95 workstations. *# domain logons = yes # if you enable domain logons then you may want a per-machine or # per user logon script # run a specific logon batch file per workstation (machine) ; * logon script = %m.bat # run a specific logon batch file per username ; * logon script = %U.bat # Where to store roving profiles (only for Win95 and WinNT) # * * * *%L substitutes for this servers netbios name, %U is username # * * * *You must uncomment the [Profiles] share below ; * logon path = \\%L\Profiles\%U # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server * wins support = yes # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both # * wins server = no # WINS Proxy - Tells Samba to answer name resolution queries on # behalf of a non WINS capable client, for this to work there must be # at least one WINS Server on the network. The default is NO. * wins proxy = no # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names # via DNS nslookups. The built-in default for versions 1.9.17 is yes, # this has been changed in version 1.9.18 to no. # * dns proxy = yes # Case Preservation can be handy - system default is _no_ # NOTE: These can be set on a per share basis ; *preserve case = no ; *short preserve case = no # Default case is normally upper case for all DOS files ; *default case = lower # Be very careful with case sensitivity - it can break things! ; *case sensitive = no |
|
Отправлено: 15:16, 23-05-2004 |
Новый участник Сообщения: 22
|
Профиль | Отправить PM | Цитировать Еще одни грабли... * DNS отказывается работать, запускается, слушает 53 порт, но не резолвит. *Домен полностью выдуманный, комп не имеет выход в и-нет! возможно проблема в том что домен freenet.fr , а комп *super-mozg...? Команду hostname freenet.fr выполнил, *в resolf.conf прописал domain freenet.fr nameserver 192.168.70.1. *
un *4 10:16:00 Super-Mozg named: named startup succeeded Jun *4 10:16:00 Super-Mozg named[563]: starting BIND 9.2.1 -u named Jun *4 10:16:00 Super-Mozg named[563]: using 1 CPU Jun *4 10:16:00 Super-Mozg named[567]: loading configuration from '/etc/named.conf' Jun *4 10:16:00 Super-Mozg named[567]: no IPv6 interfaces found Jun *4 10:16:00 Super-Mozg named[567]: listening on IPv4 interface lo, 127.0.0.1#53 Jun *4 10:16:00 Super-Mozg named[567]: listening on IPv4 interface eth0, 192.168.70.1#53 Jun *4 10:16:00 Super-Mozg named[567]: listening on IPv4 interface eth0:4, 192.168.68.254#53 Jun *4 10:16:00 Super-Mozg named[567]: listening on IPv4 interface eth0:1, 192.168.66.253#53 Jun *4 10:16:00 Super-Mozg named[567]: listening on IPv4 interface eth1, 192.168.64.254#53 Jun *4 10:16:00 Super-Mozg named[567]: listening on IPv4 interface eth2, 192.168.71.254#53 Jun *4 10:16:01 Super-Mozg named[567]: command channel listening on 127.0.0.1#953 Jun *4 10:16:01 Super-Mozg named[567]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700 Jun *4 10:16:01 Super-Mozg named[567]: dns_master_load: db.192.168.64:2: no current owner name Jun *4 10:16:01 Super-Mozg named[567]: zone 64.168.192.in-addr.arpa/IN: loading master file db.192.168.64: no owner Jun *4 10:16:01 Super-Mozg named[567]: dns_master_load: db.192.168.70:1: no current owner name Jun *4 10:16:01 Super-Mozg named[567]: zone 70.168.192.in-addr.arpa/IN: loading master file db.192.168.70: no owner Jun *4 10:16:01 Super-Mozg named[567]: dns_master_load: db.192.168.71:1: no current owner name Jun *4 10:16:01 Super-Mozg named[567]: zone 71.168.192.in-addr.arpa/IN: loading master file db.192.168.71: no owner Jun *4 10:16:01 Super-Mozg named[567]: dns_master_load: db.freenet.fr:2: no current owner name Jun *4 10:16:01 Super-Mozg named[567]: zone fr/IN: loading master file db.freenet.fr: no owner Jun *4 10:16:01 Super-Mozg named[567]: dns_master_load: db.127.0.0:1: no current owner name Jun *4 10:16:01 Super-Mozg named[567]: zone 0.0.127.in-addr-arpa/IN: loading master file db.127.0.0: no owner Jun *4 10:16:01 Super-Mozg named[567]: zone localhost/IN: loaded serial 42 Jun *4 10:16:01 Super-Mozg named[567]: running И еще [root@freenet root]# service named status number of zones: 9 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF server is up and running [root@freenet root]# nslookup -sil freenet.fr Server: 192.168.70.1 Address: 192.168.70.1#53 ** server can't find freenet.fr: SERVFAIL [root@freenet root]# nslookup 192.168.70.1 Note: nslookup is deprecated and may be removed from future releases. Consider using the `dig' or `host' programs instead. Run nslookup with the `-sil[ent]' option to prevent this message from appearing. Server: 192.168.70.1 Address: 192.168.70.1#53 ** server can't find 1.70.168.192.in-addr.arpa: SERVFAIL Где ковырять то начинать? как заставить выводить более подробную информацию об ошибках? |
Отправлено: 12:34, 04-06-2004 | #11 |
Для отключения данного рекламного блока вам необходимо зарегистрироваться или войти с учетной записью социальной сети. Если же вы забыли свой пароль на форуме, то воспользуйтесь данной ссылкой для восстановления пароля. |
Старожил Сообщения: 213
|
Профиль | Отправить PM | Цитировать Mozgoved
покажите для полноты named.conf и файлы зон |
------- Отправлено: 14:22, 04-06-2004 | #12 |
Новый участник Сообщения: 22
|
Профиль | Отправить PM | Цитировать Вот named.conf
[root@freenet root]# cat /etc/named.conf // generated by named-bootconf.pl options { * * * *directory "/var/named"; // * * *directory "/usr/local/dns"; * * * */* * * * * * If there is a firewall between you and nameservers you want * * * * * to talk to, you might need to uncomment the query-source * * * * * directive below. *Previous versions of BIND always asked * * * * * questions using port 53, but BIND 8.1 uses an unprivileged * * * * * port by default. * * * * */ * * * *// query-source address * port 53; }; // // a caching only nameserver config // controls { * * * *inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; zone "." IN { * * * *type hint; * * * *file "named.ca"; }; zone "localhost" IN { * * * *type master; * * * *file "localhost.zone"; * * * *allow-update { none; }; }; zone "0.0.127.in-addr.arpa" IN { * * * *type master; * * * *file "named.local"; * * * *allow-update { none; }; }; zone "fr" IN { * * * *type master; * * * *file "db.freenet.fr"; * * * *allow-update { none; }; }; zone "64.168.192.in-addr.arpa" IN { * * * *type master; * * * *file "db.192.168.64"; * * * *allow-update { none; }; }; zone "70.168.192.in-addr.arpa" IN { * * * *type master; * * * *file "db.192.168.70"; * * * *allow-update { none; }; }; zone "71.168.192.in-addr.arpa" IN { * * * *type master; * * * *file "db.192.168.71"; * * * *allow-update { none; }; }; zone "0.0.127.in-addr-arpa" IN { * * * *type master; * * * *file "db.127.0.0"; * * * *allow-update { none; }; }; include "/etc/rndc.key"; Файл зоны: * * * *$TTL 3h * * * *fr. IN SAO *freenet.fr. mozgoved.frenet.fr. ( * * * * * * * * * * * * * * * *1 * * * * * * * * * * * * * * * *3h * * * * * * * * * * * * * * * *1h * * * * * * * * * * * * * * * *1w * * * * * * * * * * * * * * * *1h) ; name DNS * * * *fr. *IN NS freenet.fr. ; adresa uzlov * * * *localhost.freenet.fr * *IN A 127.0.0.1 * * * *mozgoved.freenet.fr * * IN A 192.168.64.11 * * * *freenet-gw.frenet.fr * *IN A 192.168.70.82 * * * *freeman.freenet.fr * * *IN A 192.167.70.70 * * * *gw.freenet.fr * * * * * IN A 192.168.64.254 * * * *gw.freenet.fr * * * * * IN A 192.168.71.254 * * * *gw.freenet.fr * * * * * IN A 192.168.70.1 * * * *pit.freenet.fr * * * * *IN CNAME freenet.fr * * * *wh70.freenet.fr * * * * IN A 192.168.70.1 * * * *wh71.freenet.fr * * * * IN A 192.168.71.254 * * * *wh64.freenet.fr * * * * IN A 192.168.64.254 и последнее [root@freenet named]# cat db.192.168.70 $TTL 3h * * * 1.70.168.192.in-addr.arpa. IN SAO freenet.fr. mozgoved.freenet.fr. ( * * * * * * * * * * * * * * * * * * * *1 * * * * * * * * * * * * * * * * * * * *3h * * * * * * * * * * * * * * * * * * * *1h * * * * * * * * * * * * * * * * * * * *1w * * * * * * * * * * * * * * * * * * * *1h) ; DNS * * * *1.70.168.192.in-addr.arpa. IN NS freenet.fr. * * * *1.70.168.192.in-addr.arpa IN PTR freenet.fr. |
Отправлено: 00:56, 05-06-2004 | #13 |
Старожил Сообщения: 213
|
Профиль | Отправить PM | Цитировать Mozgoved
1. zone "0.0.127.in-addr-arpa": не нужно 2. zone "64.168.192.in-addr.arpa", zone "70.168.192.in-addr.arpa", zone "71.168.192.in-addr.arpa": лучше объявить zone "168.192.in-addr.arpa" и в ней описывать обратные записи 3. fr. IN SAO freenet.fr. mozgoved.frenet.fr.: не SAO, а SOA 4. объявляете зону fr, а хосты пишете в зоне freenet.fr 5. localhost.freenet.fr IN A 127.0.0.1: не нужно 6. при объявлении полного имени хоста в конце имени нужно ставить точку: mozgoved.freenet.fr. итого: учите матчасть ![]() |
------- Отправлено: 15:38, 07-06-2004 | #14 |
Новый участник Сообщения: 22
|
Профиль | Отправить PM | Цитировать JeweL
Спасибо за участие, но увы. Прежний грабли все "граблистей"... * [root@freenet named]# nslookup > set all Default server: 192.168.70.1 Address: 192.168.70.1#53 Set options: *novc * * * * * * * * *nodebug * * * * nod2 *search * * * * * * * *recurse *timeout = 0 * * * * * retry = 2 * * * port = 53 *querytype = A * * * * class = IN *srchlist = freenet.fr > ДОЛЖНА БЫТЬ ЕЩЕ ОДНА ЗАПИСЬ "domain=freenet.fr " файл resolv.conf { [root@freenet named]# cat /etc/resolv.conf domain freenet.fr nameserver 192.168.70.1 } файл hosts { cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. #127.0.0.1 * * * * * * *Super-Mozg localhost.localdomain localhost 127.0.0.1 * * * * * * *freenet.fr localhost.localdomain localhost 192.168.70.70 * * * * *freenet-gw } часть named.conf controls { * * * *inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; zone "." IN { * * * *type hint; * * * *file "named.ca"; }; zone "localhost" IN { * * * *type master; * * * *file "localhost.zone"; * * * *allow-update { none; }; }; zone "0.0.127.in-addr.arpa" IN { * * * *type master; * * * *file "named.local"; * * * *allow-update { none; }; }; zone "freenet.fr" IN { * * * *type master; * * * *file "db.freenet.fr"; * * * *allow-update { none; }; }; [root@freenet named]# cat db.freenet.fr * * * *$TTL 3h * * * *$ORIGIN freenet.fr. * * * *@ * IN SOA freenet.fr. mozgoved.frenet.fr. ( * * * * * * * * * * * * * * * *1 * * * * * * * * * * * * * * * *3h * * * * * * * * * * * * * * * *1h * * * * * * * * * * * * * * * *1w * * * * * * * * * * * * * * * *1h) ; name DNS * * * * *IN NS freenet.fr. ; adresa uzlov * * * *localhost * * * IN A 127.0.0.1 * * * *mozgoved * * * *IN A 192.168.64.11 * * * *freenet-gw * * *IN A 192.168.70.70 * * * *//freeman * * * IN A 192.167.70.70 * * * *@ * * * * * * * IN A 192.168.64.254 * * * * * * * * * * * *IN A 192.168.71.254 * * * * * * * * * * * *IN A 192.168.70.1 * * * *pit * * * * * * IN CNAME freenet.fr * * * *wh70 * *IN A 192.168.70.1 * * * *wh71 * *IN A 192.168.71.254 * * * *wh64 * *IN A 192.168.64.254 named startup succeeded starting BIND 9.2.1 -u named Jun *9 23:04:00 Super-Mozg named[9827]: using 1 CPU Jun *9 23:04:00 Super-Mozg named[9831]: loading configuration from '/etc/named.conf' Jun *9 23:04:00 Super-Mozg named[9831]: no IPv6 interfaces found Jun *9 23:04:00 Super-Mozg named[9831]: listening on IPv4 interface lo, 127.0.0.1#53 Jun *9 23:04:00 Super-Mozg named[9831]: listening on IPv4 interface eth0, 192.168.70.1#53 Jun *9 23:04:00 Super-Mozg named[9831]: listening on IPv4 interface eth1, 192.168.64.254#53 Jun *9 23:04:00 Super-Mozg named[9831]: listening on IPv4 interface eth2, 192.168.71.254#53 Jun *9 23:04:00 Super-Mozg named[9831]: command channel listening on 127.0.0.1#953 Jun *9 23:04:00 Super-Mozg named[9831]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700 Jun *9 23:04:00 Super-Mozg named[9831]: dns_master_load: db.freenet.fr:2: no current owner name Jun *9 23:04:00 Super-Mozg named[9831]: zone freenet.fr/IN: loading master file db.freenet.fr: no owner Jun *9 23:04:00 Super-Mozg named[9831]: zone localhost/IN: loaded serial 42 Jun *9 23:04:00 Super-Mozg named[9831]: running В ИТОГЕ ПОЛУЧАЮ.... nslookup freenet.fr Server: * * * * 192.168.70.1 Address: * * * *192.168.70.1#53 ** server can't find freenet.fr: SERVFAIL |
Отправлено: 01:39, 10-06-2004 | #15 |
Новый участник Сообщения: 22
|
Профиль | Отправить PM | Цитировать ... может каую то загагулину не прописал, глянте свежим взглядом, подскажите. Не дайте окончательно потерять веру в себя!! :-)
|
Отправлено: 12:46, 11-06-2004 | #16 |
Старожил Сообщения: 213
|
Профиль | Отправить PM | Цитировать если домен локальный, то zone "." можно убрать
если объявляете зону zone "freenet.fr", то хост freenet.fr в ней быть ну никак не может. Соответственно записи @ IN SOA freenet.fr. mozgoved.frenet.fr. IN NS freenet.fr. @ IN A 192.168.64.254 IN A 192.168.71.254 IN A 192.168.70.1 pit IN CNAME freenet.fr неправильны. Хост freenet.fr может быть объявлен в зоне fr |
------- Отправлено: 13:13, 11-06-2004 | #17 |
![]() |
Участник сейчас на форуме |
![]() |
Участник вне форума |
![]() |
Автор темы |
![]() |
Сообщение прикреплено |
| |||||
Название темы | Автор | Информация о форуме | Ответов | Последнее сообщение | |
[решено] Проблема с Samba-сервером в Samba-домене | uder | Программное обеспечение Linux и FreeBSD | 3 | 01-12-2009 09:42 | |
Debian/Ubuntu - SAMBA сервер как член домена SAMBA LDAP | RFox | Общий по Linux | 0 | 27-08-2009 10:04 | |
Suse/OpenSuSE - samba + samba-vscan + clamav | eboue | Общий по Linux | 2 | 02-09-2008 22:29 | |
samba | Ambal | Общий по Linux | 7 | 28-07-2005 02:31 | |
Снова и снова "обнаружено новое устройство" | Guest | Microsoft Windows 95/98/Me (архив) | 4 | 24-06-2003 13:58 |
|