From owner-freebsd-isdn Fri Jul 10 07:23:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA16511 for freebsd-isdn-outgoing; Fri, 10 Jul 1998 07:23:35 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA16180 for ; Fri, 10 Jul 1998 07:21:36 -0700 (PDT) (envelope-from hohmuth@olymp.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id QAA27395; Fri, 10 Jul 1998 16:20:43 +0200 (CEST) (envelope-from hohmuth@olymp.sax.de) Received: (from hohmuth@localhost) by olymp.sax.de (8.8.8/8.8.8) id QAA00671; Fri, 10 Jul 1998 16:03:14 +0200 (CEST) (envelope-from hohmuth) From: Michael Hohmuth To: malte@webmore.com Cc: freebsd-isdn@FreeBSD.ORG, hm@hcs.de Subject: Re: fallback-IP-addr for dyn. dials. Is there any use for it ? References: Mime-Version: 1.0 (generated by tm-edit 7.105) Content-Type: text/plain; charset=US-ASCII Date: 10 Jul 1998 16:03:13 +0200 In-Reply-To: Malte Lance's message of Mon, 06 Jul 1998 23:43:56 +0200 (CEST) Message-ID: <87n2ahls66.fsf@olymp.sax.de> Lines: 58 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Malte Lance writes: > Generally i want to know if there is any use for my changes to sppp. > Over the weekend i've hacked sppp. The goal was: > - extend spppcontrol to take an IP-addr as an argument for > fallback-assignment to the interface (isppp) when the connection > closes (in 'dynamic local IP-addr assignment'-mode for dialup). > - hack if_spppsubr.c to handle fallback-assignment correct. > Why did i do that: > - For dialups with dynamic addr assignment in sppp the local IP-addr on > the interface when not connected is usually 0.0.0.0 Unless you assign the interface an IP address before connecting. This is what I do: IF=isppp0 ifconfig $IF inet 141.76.92.31 141.76.1.5 netmask 0xffffff00 link1 spppcontrol $IF myauthproto=pap myauthname=pmh1 \ myauthsecret=`cat /etc/isdn/pap-passwd` callin isdnd route add -interface default $IF ifconfig $IF up Here, the interface is assigned 141.76.92.31 before connection, and this IP address has been allowed to send out data in the firewall configuration. Therefore, autodial works. > For this to work with a deny-by-default firewall-setup, i always was > forced to add an additional pass-rule for the address 0.0.0.0 to any. > Without such a rule, the firewall would block all packets with the > source addr 0.0.0.0 and as a result, no dialup would be triggered. I also use a firewall setup, but I don't need a firewall configuration entry for 0.0.0.0 to have `isdnd' dial automatically. Also, the IP address is not reset when disconnecting. I have to admit, however, that I'm always assigned the same IP address. I haven't thought about how to configure the firewall if I was assigned a different IP address each time. > Now i am wondering if my changes to the sppp-code are of any use to anyone ? > - Is there any use for it ? > - Is there use for it to be added to the public sppp-code ? > (<=> is there use for it to be sent to Hellmuth ?) Perhaps you should check first whether my approach is general enough to support your setup? Michael -- hohmuth@innocent.com, hohmuth@inf.tu-dresden.de http://home.pages.de/~hohmuth/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message