Skip site navigation (1)Skip section navigation (2)
Date:      10 Jul 1998 16:03:13 +0200
From:      Michael Hohmuth <hohmuth@innocent.com>
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 ?
Message-ID:  <87n2ahls66.fsf@olymp.sax.de>
In-Reply-To: Malte Lance's message of Mon, 06 Jul 1998 23:43:56 %2B0200 (CEST)
References:  <XFMail.980706234356.malte@webmore.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87n2ahls66.fsf>