Date: Tue, 26 Sep 2000 11:17:42 +0200 From: Luke Roberts <luke@roberts.nl> To: freebsd-isdn@freebsd.org Subject: SpppControll problem with 14b 0.95 and FreeBSD 4.1 Message-ID: <5.0.0.25.2.20000926105218.00a0ba90@pop.roberts.nl>
next in thread | raw e-mail | index | archive | help
I just reinstalled my FreeBSD machine with 4.1 and i4b 0.95. The installation went smooth and i4b seems to be working fine with my Teles 16.3 ISA non PnP card ( I can see incomming calls in the fullscreen i4b ). Unfortunatly though I get spppcontroll errors when trying to dial out to my ISP: SPPPCONTROL: SIOCGIFGENERIC(SPPPIOGDEFS): bad address SPPPCONTROL: SIOCGIFGENERIC(SPPPIOGDEFS): bad address SPPPCONTROL: SIOCGIFGENERIC(SPPPIOGDEFS): bad address As far as I know I have installed and complied all the necessary i4b options in my kernel. I tried to solve this problem by reading the i4b archives but couldn't find the asnwer there either. Hope sombody can help so I've added my Kernel config lines, rc.conf and i4b conf files. These worked with i4b 0.90 on FreeBSD 3.2. Thanks, Luke --------------- Kernel config --------------- options IPFIREWALL options IPDIVERT device isp0 # Teles S0/16.3 options "TEL_S0_16_3" device isic0 at isa? port 0xd80 irq 5 flags 3 pseudo-device "i4bq921" pseudo-device "i4bq931" pseudo-device "i4b" pseudo-device "i4btrc" 4 pseudo-device "i4bctl" pseudo-device "i4brbch" 4 pseudo-device "i4btel" 2 options IPR_VJ pseudo-device "i4bipr" 4 pseudo-device "i4bisppp" 4 ----------------- /etc/rc.conf ----------------- gateway_enable="YES" hostname="dilis.intranet.iv" firewall_enable="YES" firewall_script="/etc/rc.firewall.isdn" firewall_type="open" firewall_quiet="YES" network_interfaces="xl0 lo0 rl0 isp0" ifconfig_xl0="inet 192.168.0.100 netmask 255.255.255.0" ifconfig_lo0="inet 127.0.0.1" ifconfig_isp0="inet 0.0.0.0 0.0.0.1 link1 mtu 576" spp_interfaces="isp0" isdn_enable="yes" isdn_gfsdev="/dev/ttyv4" isdn_flags="" defaultrouter="-interface isp0" natd_program="/sbin/natd" natd_enable="YES" natd_interface="isp0" natd_flags="-f /etc/natd.conf" named_enable="YES" named_program="/usr/sbin/named" named_flags="-b /etc/namedb/named.conf" linux_enable="YES" --------------------- /etc/go-xs4all.rc (this scripts starts an isdn connection to my isp xs4all. It calls /etc/isdn/isdnd-xs4all.rc and /etc/ppp-xs4all.rc) --------------------- #! /bin/sh pidnat=`cat /var/run/natd.pid` pid=`cat /var/run/isdnd.pid` echo "Killing old isdnd" kill $pid sleep 3 kill $pid sleep 3 echo "Starting new isdnd" isdnd -c /etc/isdn/isdnd-xs4all.rc -f -r /dev/ttyv4 sleep 3 /etc/ppp-xs4all.rc echo "Updating natd" sleep 3 kill -HUP $pidnat sleep 3 kill -HUP $pidnat sleep 3 echo "Updating gateway" route delete default sleep 3 route add default -interface isp0 echo "This ship can sail again! (I hope)" -------------------- /isdn/isdnd-xs4all.rc (called from /etc/goxs4all.rc) -------------------- #============================================================================== # SYSTEM section: isdnd global configuration parameters #============================================================================== system # accounting # ---------- acctall = on # generate info for everything acctfile = /var/log/isdnd.acct # name & location of accounting file useacctfile = yes # generate accouting info to file # monitor # ------- monitor-allowed = yes # global switch: monitor on/off monitor-port = 451 # default monitor TCP port # Monitor rights are granted due to the most specific host/net spec, i.e. in # the example below host 192.168.1.2 will have the rights specified on that # line, even so it belongs to net 192.168.1.0/24 as well. # # A monitor specification may either be: # # - the name of a local (UNIX-domain) socket; this MUST start with a "/" monitor = "/var/run/isdn-monitor" monitor-access = fullcmd monitor-access = channelstate, logevents monitor-access = callin, callout # regular expression pattern matching # ----------------------------------- regexpr = "xs4all outgoing call active" regprog = isdn-up regexpr = "xs4all outgoing call disconnected" regprog = isdn-down regexpr = "<unknown> incoming call from" regprog = isdn-incoming # realtime priority section # ------------------------- rtprio = 25 # modify isdnd's process priority #======================================================================= # entry section: PPP example #====================================================================== entry name = xs4all usrdevicename = isp usrdeviceunit = 0 isdncontroller = 0 isdnchannel = -1 local-phone-incoming = 0255540xxx remote-phone-incoming = 0235315666 local-phone-dialout = 255540xxx remote-phone-dialout = 0235315666 remdial-handling = first dialin-reaction = reject dialout-type = normal b1protocol = hdlc idletime-incoming = 300 idletime-outgoing = 300 ratetype = 0 unitlength = 0 unitlengthsrc = conf dialretries = 25 dialrandincr = on recoverytime = 1 usedown = on downtries = 5 downtime = 10 # EOF ######################################################################### ---------------------- /etc/ppp-xs4all.rc (called from /etc/goxs4all.rc) ---------------------- #!/bin/sh echo "killing old is0 ip number" ifconfig isp0 delete -link1 down echo "starting pap" spppcontrol isp0 myauthproto=pap echo "initialising login name" spppcontrol isp0 myauthname=ivisors echo "initialising passwd" spppcontrol isp0 myauthsecret=Netverts echo "initialising isp0 device with 0.0.0.0" ifconfig isp0 194.109.13.117 0.0.0.1 netmask 0xffffffff mtu 576 link1 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?5.0.0.25.2.20000926105218.00a0ba90>