RE: Samba and PPP
> Hi, Ulf Bertilsson! On 19-Feb-03, you wrote: > > UB>> ppp0: > UB>> flags=40F1 MTU=1500 > UB>> inet 192.168.255.254 --> 192.168.255.253 netmask > > UB>> Hardware type: PPP > UB>> > UB>> Use "ifconfig -h" for usage. > UB>> 16.System:> > UB>> --- cut --- > UB>> PC has IP 192.168.255.253. > UB>> When i try to specify a 255.255.255.252 (FFFC) netmask > UB>> for ppp0, Samba > UB>> adds ppp0 to the list of interfaces, but the interface just > UB>> does not pass > UB>> broadcasts. > UB>> What's wrong? How to solve my problem? > UB> > UB> Pavel, > UB> > UB> I had this running on my A1200 some years ago. > UB> > UB> I think you could solve this problem with simple stuff as > adding an > UB> "lmhost" file spesifying all host in your "lan". > UB> Broadcast are not in theory needed for operation. > > I know. Broadcasts are not the problem itself. The problem > is that Samba > does not bind to ppp0 at all, it completely ignores this > interface. Have you tried another tcp stack ? > This causes it to be impossible to connect to the Samba server > from PC side. Strange, I guess nmap'ing the ip will show no open ports ? > I write about it here because i think it is not > Amiga-specific problem. > I've tried to list through the Samba docs, and there are some > notes meaning > that Samba can be used on PPP links. But there are no words about the > setting up the things there. I do however remeber only having PPP interface on my A1200 with serial nullmodem to an NT4.0 server. (Miami3.2, KIck 3.1, WB3.1) Are you using amitcp ? > UB> Are you sure your nmbd is running fine. > > Of couse it does. My Amiga is connected also to a LAN via > CNet card. And i > work perfectly in LAN. Oki. Have a look for the new 3com pcmica drivers btw. > UB> The old versions (on aminet) have some issues. > UB> > UB> Try get the newest gcc based ports by Olaf (2.2.5 > available also), nmbd > UB> is more stable here. > > I'll try to. More info updated on the amiga samba list. I think you can call the amiga 2.2.5 for beta and not alpha anymore. Some memory fragmentation and stuff, but works quite well. Maybe this puzzle is something Chris H like to punder about ? Why should smb bind well to PPP links ? ;D -- Ulf
Re: Samba and PPP
Hi, I have played with this before. I did finally get it to work, but along the way there are a few stumbling blocks. I believe that Samba will only bind to interfaces that are "UP" at the time of Samba starting. Tyically with PPP, the interface (ppp0) will not be available (up) until a PPP link is established. Have you tried establishing your PPP link BEFORE starting Samba? I know that this is not good, but I seem to remember that I had this problem (though it was under AIX). Cheers, Steve Pavel Fedin wrote: Hi, Ulf Bertilsson! On 19-Feb-03, you wrote: UB>> ppp0: UB>> flags=40F1 MTU=1500 UB>> inet 192.168.255.254 --> 192.168.255.253 netmask UB>> Hardware type: PPP UB>> UB>> Use "ifconfig -h" for usage. UB>> 16.System:> UB>> --- cut --- UB>> PC has IP 192.168.255.253. UB>> When i try to specify a 255.255.255.252 (FFFC) netmask UB>> for ppp0, Samba UB>> adds ppp0 to the list of interfaces, but the interface just UB>> does not pass UB>> broadcasts. UB>> What's wrong? How to solve my problem? UB> UB> Pavel, UB> UB> I had this running on my A1200 some years ago. UB> UB> I think you could solve this problem with simple stuff as adding an UB> "lmhost" file spesifying all host in your "lan". UB> Broadcast are not in theory needed for operation. I know. Broadcasts are not the problem itself. The problem is that Samba does not bind to ppp0 at all, it completely ignores this interface. This causes it to be impossible to connect to the Samba server from PC side. I write about it here because i think it is not Amiga-specific problem. I've tried to list through the Samba docs, and there are some notes meaning that Samba can be used on PPP links. But there are no words about the setting up the things there. UB> Are you sure your nmbd is running fine. Of couse it does. My Amiga is connected also to a LAN via CNet card. And i work perfectly in LAN. UB> The old versions (on aminet) have some issues. UB> UB> Try get the newest gcc based ports by Olaf (2.2.5 available also), nmbd UB> is more stable here. I'll try to. Kind regards.
Re: Samba and PPP
Hi, Ulf Bertilsson! On 19-Feb-03, you wrote: UB>> ppp0: UB>> flags=40F1 MTU=1500 UB>> inet 192.168.255.254 --> 192.168.255.253 netmask UB>> Hardware type: PPP UB>> UB>> Use "ifconfig -h" for usage. UB>> 16.System:> UB>> --- cut --- UB>> PC has IP 192.168.255.253. UB>> When i try to specify a 255.255.255.252 (FFFC) netmask UB>> for ppp0, Samba UB>> adds ppp0 to the list of interfaces, but the interface just UB>> does not pass UB>> broadcasts. UB>> What's wrong? How to solve my problem? UB> UB> Pavel, UB> UB> I had this running on my A1200 some years ago. UB> UB> I think you could solve this problem with simple stuff as adding an UB> "lmhost" file spesifying all host in your "lan". UB> Broadcast are not in theory needed for operation. I know. Broadcasts are not the problem itself. The problem is that Samba does not bind to ppp0 at all, it completely ignores this interface. This causes it to be impossible to connect to the Samba server from PC side. I write about it here because i think it is not Amiga-specific problem. I've tried to list through the Samba docs, and there are some notes meaning that Samba can be used on PPP links. But there are no words about the setting up the things there. UB> Are you sure your nmbd is running fine. Of couse it does. My Amiga is connected also to a LAN via CNet card. And i work perfectly in LAN. UB> The old versions (on aminet) have some issues. UB> UB> Try get the newest gcc based ports by Olaf (2.2.5 available also), nmbd UB> is more stable here. I'll try to. Kind regards.
RE: Samba and PPP
> Hello! > > Could anyone of you tell me, how to configure my Samba > server to work with > PPP interfaces? > I have an Amiga machine running Samba v2.0.7. And a Windoze95 PC > connected to it via null-modem cable. > The problem is: Samba ignores all non-broadcast interfaces. > So smbd and > nmbd just do not sit on ppp0 interface, so PC can't connect > to Samba. Also > smbclient can't find my PC by name (i have to specify an -I > option), because > it ignores ppp0 too. > After examining a source code, i found the following procedure: > --- cut --- > static void add_interface(struct in_addr ip, struct in_addr nmask) > { > struct interface *iface; > if (iface_find(ip)) { > DEBUG(3,("not adding duplicate interface > %s\n",inet_ntoa(ip))); > return; > } > > if (ip_equal(nmask, allones_ip)) { > DEBUG(3,("not adding non-broadcast interface > %s\n",inet_ntoa(ip))); > return; > } > > iface = (struct interface *)malloc(sizeof(*iface)); > if (!iface) return; > > ZERO_STRUCTPN(iface); > > iface->ip = ip; > iface->nmask = nmask; > iface->bcast.s_addr = MKBCADDR(iface->ip.s_addr, > iface->nmask.s_addr); > > DLIST_ADD(local_interfaces, iface); > > DEBUG(2,("added interface ip=%s ",inet_ntoa(iface->ip))); > DEBUG(2,("bcast=%s ",inet_ntoa(iface->bcast))); > DEBUG(2,("nmask=%s\n",inet_ntoa(iface->nmask))); > } > --- cut --- > My interfaces are: > --- cut --- > 16.System:> ifconfig > lo0: flags=C9 MTU=1536 > inet 127.0.0.1 netmask FF00 > Hardware type: Loopback > > eth0: > flags=4863 MTU=1500 > inet 10.4.20.98 netmask FFFC broadcast 10.4.20.99 > Hardware type: Ethernet, address: 0:80:ad:c6:be:75 > > ppp0: > flags=40F1 MTU=1500 > inet 192.168.255.254 --> 192.168.255.253 netmask > Hardware type: PPP > > Use "ifconfig -h" for usage. > 16.System:> > --- cut --- > PC has IP 192.168.255.253. > When i try to specify a 255.255.255.252 (FFFC) netmask > for ppp0, Samba > adds ppp0 to the list of interfaces, but the interface just > does not pass > broadcasts. > What's wrong? How to solve my problem? Pavel, I had this running on my A1200 some years ago. I think you could solve this problem with simple stuff as adding an "lmhost" file spesifying all host in your "lan". Broadcast are not in theory needed for operation. There is also further mechanisms such an WINS that might help you with this issue. Using IP based resolution should also work. Are you sure your nmbd is running fine. The old versions (on aminet) have some issues. Try get the newest gcc based ports by Olaf (2.2.5 available also), nmbd is more stable here. Best of luck Pavel. -- Ulf