[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian]:ISDN-Problem



Am 13.09.00 schrieb Klaus-M. Klingsporn:

> Am Die, 12 Sep 2000, hat Wolfgang Arnsberg geschrieben:
> 
> >> Weiß jemand Rat?
> >ja, ich :-)
> >...
> >PS:
> >Du brauchst eine Erweiterung der scripte /etc/ppp/ip-[up,down]/isdnutils
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Sorry, richtig ist: /etc/ppp/ip-[up,down].d/isdnutils          

> >Dort mußt Du noch einen Passus für ippp1 bauen. Dann geht's. An der Stelle
> >hab ich auch rumgekrampft.
> 
> Vielleicht ersparst du mir das rumgekramppfe, ich hab nämlich auch
> schon, allerdings erfolglos probiert, und mailst mir die Datei?

(Glück gehabt. _Du_ warst mir nicht böse, daß ich die Erklärung, ich geb's zu,
etwas weit hinten in die Mail verfrachtet hab, gell? Asche auf mein Haupt)

Ich pack mal hier malbeispielhaft  /etc/ppp/ip-up.d/isdnutils hin:

..........
#!/bin/sh

# example /etc/ppp/ip-up.d script for use with ipppd and dynamic IP numbers.
# Edit / add to the entries to suit the requirements of the interface.

case "$PPP_IFACE" in
        ippp0)  route del default
                route add default netmask 0 $PPP_IFACE  # usually necessary
                # The next lines are for masquerading over ippp link.
                # hostname -i should give ip address of local network interface
                # See comments in /etc/isdn/device.* about firewalling!
                # ipfwadm -I -i accept -W $PPP_IFACE -P tcp -D $PPP_LOCAL smtp
                # ipfwadm -I -i accept -W $PPP_IFACE -P udp -D $PPP_LOCAL 1024:
                # masquerading rules, for transparently connecting local net to
                # ETH_IPostname -i | tr -d ' '^M                
                # ipfwadm -F -i accept -m -P tcp -S $ETH_IP/24
                # ipfwadm -F -i accept -m -P udp -S $ETH_IP/24
                ;;

        ippp1)  route del default
                route add default netmask 0 $PPP_IFACE  # usually necessary
                # The next lines are for masquerading over ippp link.
                # hostname -i should give ip address of local network interface.
                # See comments in /etc/isdn/device.* about firewalling!
                # ipfwadm -I -i accept -W $PPP_IFACE -P tcp -D $PPP_LOCAL smtp ident 1024:65535
                # ipfwadm -I -i accept -W $PPP_IFACE -P udp -D $PPP_LOCAL 1024:65535
                # masquerading rules, for transparently connecting local net to internet
                # ETH_IP=ostname -i | tr -d ' '
                
		# ipfwadm -F -i accept -m -P tcp -S $ETH_IP/24
                # ipfwadm -F -i accept -m -P udp -S $ETH_IP/24
                ;;

esac
..........

Du siehst, es wird nur ein Passus für ippp1 neu definiert und damit de
default-route auf Interface ippp1 gesetzt (für den 2. Provider)

Gleiches gilt für /etc/ppp/ip-down.d/isdnutils:

..........
#!/bin/sh

# example /etc/ppp/ip-down.d script for use with ipppd and dynamic IP
numbers.
# Edit / add to the entries to suit the requirements of the interface.

case "$PPP_IFACE" in
        ippp0)  route del default               # this disables dial-on-demand
                # next line for 2.2.XX 
                route add default netmask 255.0.0.0 lo
                # re-enable this for 2.0.XX and delete above
                # route add default netmask 0 $PPP_IFACE        # this enables dial-on-demand
                # The next lines are for masquerading over ippp link.
                # hostname -i should give ip address of local network interface.
                # See comments in /etc/isdn/device.* about firewalling!
                # ipfwadm -I -d accept -W $PPP_IFACE -P tcp -D $PPP_LOCAL smtp ident 1024:65535
                # ipfwadm -I -d accept -W $PPP_IFACE -P udp -D $PPP_LOCAL 1024:65535
                # masquerading rules, for transparently connecting local net to internet
                # ETH_IP=ostname -i | tr -d ' '
                
		# ipfwadm -F -d accept -m -P tcp -S $ETH_IP/24
                # ipfwadm -F -d accept -m -P udp -S $ETH_IP/24
                isdnctrl huptimeout $PPP_IFACE 60               
                ;;

        ippp1)  route del default               # this disables dial-on-demand
                # next line for 2.2.XX
                route add default netmask 255.0.0.0 lo
                # re-enable this for 2.0.XX and delete above
                # route add default netmask 0 $PPP_IFACE        # this enables dial-on-demand
                # The next lines are for masquerading over ippp link.
                # hostname -i should give ip address of local network interface
                # See comments in /etc/isdn/device.* about firewalling!
                # ipfwadm -I -d accept -W $PPP_IFACE -P tcp -D $PPP_LOCAL smtp
                # ipfwadm -I -d accept -W $PPP_IFACE -P udp -D $PPP_LOCAL 1024:
                # masquerading rules, for transparently connecting local net to
                # ETH_IPostname -i | tr -d ' '^M                
                # ipfwadm -F -d accept -m -P tcp -S $ETH_IP/24
                # ipfwadm -F -d accept -m -P udp -S $ETH_IP/24
                isdnctrl huptimeout $PPP_IFACE 60
                ;;
esac

..........


Ich hab 'n bischen rumgepusselt bis es für Kernel 2.2.x auf meinem
slink-System funktionierte. Kernel 2.2.x behandelt die defaut-route etwas
anders. Aber da blicke ich noch nicht so ganz durch (Hallo Ihr
Netzwerspezialisten!!!) Aber so geht's bei mir.

Du mußt natürlich mittels isdnconfig das zweite Device ippp1 samt Zubehör
definiert haben. Aber das hast Du ja, da Du schreibst, Du seist sauber
eingelogged aber kriegst nur keine Verbindung (ping)

Hoffe geholfen zu haben und verzeiht mir die Zeilenüberläge, die war hier
Absicht.

Gruß Wolfgang
 


--
\  /\  /\   Wolfgang			fonto:  0631 7501713
 \/  \/. \. Arnsberg			faxto:  0631 37100079

-----------------------------------------------------------
Um sich aus der Liste auszutragen schicken Sie bitte eine
E-Mail an majordomo@jfl.de die im Body
"unsubscribe debian-user-de <deine emailadresse>" enthaelt.
Bei Problemen bitte eine Mail an: Jan.Otto@Lehmanns.de
-----------------------------------------------------------
Anzahl der eingetragenen Mitglieder:     774


Reply to: