ppp/samba (configuration?) question

2001-01-11 Thread Richard J Kuhns

If this isn't the right place for this, I apologize.  Feel free to set
followups appropriately.

I'm running ppp on a -current system (12/7/2000 vintage) named `moran'.
I'm using it as a gateway for small in-home network (a couple of windoze
boxes and a laptop running -stable), and I have NAT enabled.

ppp is started automatically at boot as follows:

/usr/sbin/ppp -quiet -auto -nat mintel

Here's the appropriate part of ppp.conf:

mintel:
 allow users rjk
 set openmode active 5
 set phone 1234567
 set timeout 2700
 set socket /var/tmp/internet ""
 set authname a
 set authkey b
 deny lqr
 disable lqr
 set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
 delete all
 add default HISADDR
 enable dns

In ppp.linkdown, I have:

mintel:
 iface clear

I'm using 10.1.0.0/24 internally, and moran is also running dhcpd and
samba.  Everything is working fine, except (you knew there'd be an except,
right?:) the windoze boxes on my local network can't find the samba server
on moran immediately after moran reboots.  After some experimenting with
config files and playing with ethereal, I think I know what's going on but
I don't know what to do about it.

If I don't put "10.0.0.1 localhost" in /etc/hosts, rebooting is very slow;
I have to wait for ppp to make a connection before sendmail gets going.  If
I add it to /etc/hosts I don't have to wait on sendmail but I have problems
with nmbd.

With the above configuration for ppp, ifconfig always shows 2 IP addresses
associated with tun0.  Immediately after boot, it looks like (for example):

tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1514
inet 10.0.0.1 -- 255.255.255.255 netmask 0x 
inet 63.xx.xx.13 -- 63.xx.xx.2 netmask 0xff00 
Opened by PID 115

After I lose my connection for whatever reason (which normally happens at
least 3 or 4 times a day with our local telephone service :() ppp
automatically redials and reconnects.  After this happens, ifconfig would
show:

tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1514
inet 63.xx.xx.13 -- 255.255.255.255 netmask 0x 
inet 63.xx.xx.47 -- 63.xx.xx.2 netmask 0xff00 
Opened by PID 115

The 10. address is gone, my last address is still there but points to
255.255.255.255, and my new address is fine.

ethereal shows that nmbd is saying it lives at 10.0.0.1.  If I kill nmbd
and restart it after having lost and remade my ppp connection, everything
is fine.

Note that this only affects nmbd.  Browsers and ssh work just fine.

Have I got something misconfigured?  Should ppp be keeping my last IP
address around like that?

Sorry for the length of this message.

Any comments and/or suggestions?

Thanks.

-- 
Richard Kuhns   [EMAIL PROTECTED]
PO Box 6249 Tel: (765)477-6000 \
100 Sawmill Roadx319
Lafayette, IN  47903 (800)489-4891 /


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: ppp/samba (configuration?) question

2001-01-11 Thread Brian Somers

You should get away with adding your ``set ifaddr'' line to 
ppp.linkdown (you can remove the ``iface clear'' too).

 If this isn't the right place for this, I apologize.  Feel free to set
 followups appropriately.
 
 I'm running ppp on a -current system (12/7/2000 vintage) named `moran'.
 I'm using it as a gateway for small in-home network (a couple of windoze
 boxes and a laptop running -stable), and I have NAT enabled.
 
 ppp is started automatically at boot as follows:
 
 /usr/sbin/ppp -quiet -auto -nat mintel
 
 Here's the appropriate part of ppp.conf:
 
 mintel:
  allow users rjk
  set openmode active 5
  set phone 1234567
  set timeout 2700
  set socket /var/tmp/internet ""
  set authname a
  set authkey b
  deny lqr
  disable lqr
  set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
  delete all
  add default HISADDR
  enable dns
 
 In ppp.linkdown, I have:
 
 mintel:
  iface clear
 
 I'm using 10.1.0.0/24 internally, and moran is also running dhcpd and
 samba.  Everything is working fine, except (you knew there'd be an except,
 right?:) the windoze boxes on my local network can't find the samba server
 on moran immediately after moran reboots.  After some experimenting with
 config files and playing with ethereal, I think I know what's going on but
 I don't know what to do about it.
 
 If I don't put "10.0.0.1 localhost" in /etc/hosts, rebooting is very slow;
 I have to wait for ppp to make a connection before sendmail gets going.  If
 I add it to /etc/hosts I don't have to wait on sendmail but I have problems
 with nmbd.
 
 With the above configuration for ppp, ifconfig always shows 2 IP addresses
 associated with tun0.  Immediately after boot, it looks like (for example):
 
 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1514
 inet 10.0.0.1 -- 255.255.255.255 netmask 0x 
 inet 63.xx.xx.13 -- 63.xx.xx.2 netmask 0xff00 
 Opened by PID 115
 
 After I lose my connection for whatever reason (which normally happens at
 least 3 or 4 times a day with our local telephone service :() ppp
 automatically redials and reconnects.  After this happens, ifconfig would
 show:
 
 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1514
 inet 63.xx.xx.13 -- 255.255.255.255 netmask 0x 
 inet 63.xx.xx.47 -- 63.xx.xx.2 netmask 0xff00 
 Opened by PID 115
 
 The 10. address is gone, my last address is still there but points to
 255.255.255.255, and my new address is fine.
 
 ethereal shows that nmbd is saying it lives at 10.0.0.1.  If I kill nmbd
 and restart it after having lost and remade my ppp connection, everything
 is fine.
 
 Note that this only affects nmbd.  Browsers and ssh work just fine.
 
 Have I got something misconfigured?  Should ppp be keeping my last IP
 address around like that?
 
 Sorry for the length of this message.
 
 Any comments and/or suggestions?
 
 Thanks.
 
 -- 
 Richard Kuhns [EMAIL PROTECTED]
 PO Box 6249   Tel: (765)477-6000 \
 100 Sawmill Road  x319
 Lafayette, IN  47903   (800)489-4891 /

-- 
Brian [EMAIL PROTECTED]brian@[uk.]FreeBSD.org
  http://www.Awfulhak.org   brian@[uk.]OpenBSD.org
Don't _EVER_ lose your sense of humour !




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message