Marcus,
Matthew Pozzi has asked me to send you details of how we got the ISDN
Multilink connection working at VQA here in Brisbane. The following are
the parts I added to the network.conf file on the machine in question. This
was all done on a Dachstein CD Version of the Leaf Firewall. Our distribution
uses an isdn.lrp module loaded at startup to place the files for isdnctrl and
others relevant to the isdn interface.
Firstly the definition of the variables for the connection. these only
need to be defined once as the same settings apply for each chanel.
###############################################################################
# ISDN Link - the isdn.lrp is required for this to work. (External Interface)
###############################################################################
#ippp0_IPADDR=139.130.195.30 # My IP Address, only set if not dynamic.
#ippp0_PTPADDR=139.130.195.1 # Their IP Address, again only if not dynamic.
#ippp0_MYMSN=38049800 # My telephone Number
#ippp0_REMMSN=30073300 # Their telephone number (The ISP)
#ippp0_IP_SPOOF=YES
#ippp0_IP_KRNL_LOGMARTIANS=NO
# Simple QOS support, Options are same as ethernet above.
#ippp0_FAIRQ=YES
#ippp0_TXQLEN=64
#ippp0_BNDWIDTH=64kbit # Device Bandwidth
#ippp0_HNHL=3 # Queue Handle - must be unique
#ippp0_IABURST=25 # Interactive Burst
#ippp0_IARATE=30Kbit # Interactive Rate
#ippp0_PXMTU=1500 # Physical MTU - includes Link Layer Header
You probably have these already but I put them in for completeness. Next we
added to the Interface activation/deactivation functions as follows:
First pull out the relevant connection parameters ( not sure if I added to the
standard Dachstein here or not)
if_up () {
local ADDR
# sort out a few things to make life easier - here so that you
# can see what is done and so that you can add anything if needed
eval local IPADDR=\${"$1"_IPADDR:-""} # I am also a good genius
eval local MASKLEN=\${"$1"_MASKLEN:-""}
eval local BROADCAST=\${"$1"_BROADCAST:-""}
eval local MYMSN=\${"$1"_MYMSN:-""}
eval local REMMSN=\${"$1"_REMMSN:-""}
eval local PTPADDR=\${"$1"_PTPADDR:-""}
eval local PXMTU=\${"$1"_PXMTU:-""}
eval local DEFAULT_GW=\${"$1"_DEFAULT_GW:-""}
eval local IP_EXTRA_ADDRS=\${"$1"_IP_EXTRA_ADDRS:-""}
eval local ROUTES=\${"$1"_ROUTES:-""}
eval local FAIRQ=\${"$1"_FAIRQ:-""}
eval local TXQLEN=\${"$1"_TXQLEN:-""}
eval local IP_SPOOF=\${"$1"_IP_SPOOF:-""}
eval local IP_KRNL_LOGMARTIANS=\${"$1"_IP_KRNL_LOGMARTIANS:-""}
eval local IP_SHARED_MEDIA=\${"$1"_IP_SHARED_MEDIA:-""}
eval local BRIDGE=\${"$1"_BRIDGE:-""}
eval local PROXY_ARP=\${"$1"_PROXY_ARP:-""}
if [ -n "$BROADCAST" ] ; then
IFCFG_BROADCAST="broadcast $BROADCAST"
fi
Then the interface activation section
ippp*)
# Get ppp user
USER=`cat /etc/ppp/pap-secrets | grep ^[a-zA-Z0-9] | sed 's/\*.*//'`
# Set up the ISDN interface
isdnctrl verbose 3 #>/dev/null
isdnctrl system on #>/dev/null
isdnctrl addif $1 #>/dev/null
isdnctrl pppbind $1 0 #>/dev/null
isdnctrl addphone $1 out $REMMSN #>/dev/null
isdnctrl eaz $1 $MYMSN #>/dev/null
isdnctrl l2_prot $1 hdlc #>/dev/null
isdnctrl l3_prot $1 trans #>/dev/null
isdnctrl encap $1 syncppp #>/dev/null
isdnctrl huptimeout $1 43200 #>/dev/null
isdnctrl dialmode $1 auto #>/dev/null
# Set up second chanel on ISDN card as a slave to the first.
isdnctrl addslave $1 ippp1
isdnctrl addphone ippp1 out $REMMSN #>/dev/null
isdnctrl eaz ippp1 $MYMSN #>/dev/null
isdnctrl l2_prot ippp1 hdlc #>/dev/null
isdnctrl l3_prot ippp1 trans #>/dev/null
isdnctrl encap ippp1 syncppp #>/dev/null
isdnctrl huptimeout ippp1 43200 #>/dev/null
isdnctrl dialmode ippp1 auto #>/dev/null
if [ -z "$IPADDR" ] ; then
echo 1 >/proc/sys/net/ipv4/ip_dynaddr
ip link set $1 dynamic on
else
ip addr add $IPADDR peer $PTPADDR dev $1
fi
ip link set $1 arp off multicast off
ip link set $1 up
if [ -z "$IPADDR" ] ; then
/usr/sbin/ipppd mru 1500 mtu $PXMTU ipcp-accept-local
ipcp-accept-remote lcp-restart 1 name $USER noipdefault +mp /dev/$1 /dev/ippp1 &
else
/usr/sbin/ipppd mru 1500 mtu $PXMTU lcp-restart 1 name $USER
$IPADDR:$PTPADDR +mp /dev/$1 /dev/ippp1 &
fi
ip route add default dev $1
# Fair queuing - this can be selected for any interface
ip_frQoS $1
;;
if_down () {
ippp*)
/usr/bin/isdnctrl hangup $1
sleep 1
kill `cat /var/run/ipppd.pid`
ip route del dev $1
ip link set $1 down
isdnctrl delif $1
;;
Hope this helps you to get the configuration you need working.
Andrew GRAY
-----Original Message-----
From: Matthew Pozzi [mailto:[EMAIL PROTECTED]]
Sent: Fri, 20 Sep 2002 22:19 PM
To: Markus Koelle
Cc: [EMAIL PROTECTED]
Subject: RE: [leaf-user] leaf-bering with isdn an mppp
Markus, have not heard from my friend, but will chase him up. I found the
answer to mppp on google, so it is out there, but I have not got the
firewall access so I will have to chase him up. Yes we use a similar ISDN
system to you, Australia used the European system not the US one.
Thankfully.
Yes we used the hisax modules to, I will try and get those files for you
soon, please stay in touch.
Matthew
> -----Original Message-----
> From: Markus Koelle [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 20 September 2002 7:19 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [leaf-user] leaf-bering with isdn an mppp
>
>
> On 19 Sep 2002 at 21:50, Matthew Pozzi wrote:
>
> Hi Matt,
>
> > Markus, did you get an answer on this one?
> No, only your hopeful answer...
>
> >I have done this, but have not
> > got recent experience with it. I can let one of my friends know
> about this,
> > he managed to box after I changed it, and he can answer it very
> well. It is
> > not a very hard thing to do from memory, even I did it!
> I'm very interested in your or/and your friends tipps.
>
> > We ran a netjet 128kb ISDN card with two 64 kbit channels using
> mppp. Works
> > well, although dialling of ippp1 must be paused while ippp0 is
> negotiated
> > before mppp is initiated. Needs some scripting to fix. btw I am in
> > Australia.
>
> I'm using an old Teles 16.3 Card (with hisax-module) with German
> Telecom. Think it's
> compatible with Australian ISDN. Single channel ISDN works great.
> Perhaps can you send me your configuration und scripts.
> Please can you send me your ioptions, /etc/init.d/i4l and other
> relevant scripts!
> Thank you !
>
> > Matt
> cu
> Markus
>
>
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of
> Markus Koelle
> > > Sent: Tuesday, 17 September 2002 1:52 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [leaf-user] leaf-bering with isdn an mppp
> > >
> > >
> > > Hello,
> > >
> > > my leaf-bering box 1.0rc3 with E. Wolzaks isdn.lrp works very
> > > well as isdn-router.
> > > In order to increase the bandwidth, MPPP (channel-bundeling of
> > > the 2 B-channels)
> > > would be nice.
> > >
> > > Has anybody succeeded with leaf-bering and isdn-mppp
> (=channel bundling) ?
> > > Is there an ibod.lrp working with bering?
> > >
> > > Sincerely
> > > M. Koelle
> > >
> >
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html