From owner-freebsd-isdn Mon Jul 6 14:45:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24857 for freebsd-isdn-outgoing; Mon, 6 Jul 1998 14:45:10 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from cyclone.degnet.baynet.de (cyclone.degnet.baynet.de [194.95.214.129]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id OAA24830 for ; Mon, 6 Jul 1998 14:44:58 -0700 (PDT) (envelope-from malte@webmore.com) Received: from neuron.webmore.com (unverified [194.95.214.173]) by cyclone.degnet.baynet.de (EMWAC SMTPRS 0.83) with SMTP id ; Mon, 06 Jul 1998 23:46:05 +0200 Received: (from malte@webmore.com) by neuron.webmore.com (8.8.8/8.8.8) id XAA01038; Mon, 6 Jul 1998 23:43:56 +0200 (CEST) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Mon, 06 Jul 1998 23:43:56 +0200 (CEST) Reply-To: malte@webmore.com From: Malte Lance To: freebsd-isdn@FreeBSD.ORG, hm@hcs.de Subject: fallback-IP-addr for dyn. dials. Is there any use for it ? Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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. Now the code does the following: - If spppcontrol is called with the additional argument "dynlip=a.b.c.d" 'dynamic local IP-addr assignment' for sppp will be enabled and every time a dynamic dialup-connection closes, the IP-addr a.b.c.d will be assigned to the interface as a fallback-IP-addr. - If spppcontrol is called with the additional argument "dynlip" 'dynamic local IP-addr assignment' for sppp will be enabled and the currently assigned IP-addr on the interface is taken as a fallback-IP-addr and every time a dynamic dialup-connection on that interface closes, the fallback-IP-addr will be assigned to this interface. - Handling of an 0.0.0.0-addr as indicator for 'dynamic local IP-addr assignment' for sppp still works as usual. 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 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. - So with my changes it is possible to assign a fallback-IP-addr to an isppp-interface. Every time a dialup-connection is opened and sppp is in 'dynamic local IP-addr assignment'-mode, the IP-addr given by the peer is assigned to the interface. But when the connection closes, the fallback-IP will be assigned again to that interface. That makes an additional 0.0.0.0-dial-trigger-rule in the firewall useless (when setup correct). 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 ?) Malte. ---------------------------------- E-Mail: Malte Lance Date: 06-Jul-98 Time: 23:00:58 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message