Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Jul 1998 23:43:56 +0200 (CEST)
From:      Malte Lance <malte@webmore.com>
To:        freebsd-isdn@FreeBSD.ORG, hm@hcs.de
Subject:   fallback-IP-addr for dyn. dials. Is there any use for it ?
Message-ID:  <XFMail.980706234356.malte@webmore.com>

next in thread | raw e-mail | index | archive | help
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 <malte@webmore.com>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980706234356.malte>