Linux-Networking Digest #8, Volume #10           Tue, 26 Jan 99 17:13:49 EST

Contents:
  get MX record (Hardy Pawletta)
  Re: question re: NAT & ip-masq (Eugene Koontz)
  Re: question re: NAT & ip-masq ("Roman Spitzbart")
  Re: Romote "root" login (Loren Osborn)
  Re: configuration of eth0 & ifconfig ("Rigel Kent")
  Re: Linux-Router - HELP (Gilbert Jacolbia)
  What's net-pf-4? ("Jim Ford")
  Masq Dialer Help (spivey)
  Re: SOS SOS SOS HELP HELP HELP SOS SOS SOS ([EMAIL PROTECTED])
  Samba/mgetty/printfax problem (r)
  Re: Bad NIC performance since upgrade to 2.2.0 (Malware)
  Re: Implementing Raw IPX (Malware)
  Re: Problem w/ DEC205 (ewrk3) net card - eth0  (probe ok but not ping) (Malware)
  Can I run a web server with xDSL? (Chris Plachta)
  Connect to Netware 5 server? How To? (jmcknight)
  Re: Why Does Linux Networking Suck So Badly ? ([EMAIL PROTECTED])
  DHCP and 2.2.0 (Bill Woessner)
  Re: NE2000 ISA card and kernel 2.2.0-final (Mika Jussila)
  Re: ppp-server problem ("tim")
  Slow to connect, but then OK (Ben Sandler)
  Re: Installing dhcpcd.tar.gz, linux newbie (Stephen Carville)
  S.u.S.E. 5.3 & ISDN & PPP: pppd not functioning! (Edwin van Geelen)
  PPP-MSCHAP -> WinNT not working... ([EMAIL PROTECTED])

----------------------------------------------------------------------------

From: Hardy Pawletta <[EMAIL PROTECTED]>
Subject: get MX record
Date: 26 Jan 1999 13:54:18 +0100

Did anybody know an easy way to get the MX record for a given hostname 
from within a C program. It also shoud be possible to find out if no
MX record exists for the given host.

Thanks,

     Hardy

------------------------------

From: Eugene Koontz <[EMAIL PROTECTED]>
Subject: Re: question re: NAT & ip-masq
Date: Tue, 26 Jan 1999 10:40:00 -0800

Assuming I've loading the realaudio module with modprobe ip_masq_raudio,
what do I need to do then? How do I set up the realaudio client that is
behind the firewall? Thanks a lot,
        Eugene

------------------------------

From: "Roman Spitzbart" <[EMAIL PROTECTED]>
Subject: Re: question re: NAT & ip-masq
Date: Tue, 26 Jan 1999 20:02:51 +0100

[EMAIL PROTECTED] schrieb in Nachricht
<78k47b$e5r$[EMAIL PROTECTED]>...
>I've got two problems with the followings :
>  Incomming FTP to my servers
>  ICQ (I was looking for a tip when i read your msg)


You have to do a thing called port-forwarding. Fo further information visit
linuxsite.webjump.com!
Forward a range of ports (a. e. 2000-2500) to the internal machine, where
you wanna use icq. ICQ has an option (somewhere in connection or so) to use
a connection over a firewall where you can specifiy a range of ports
(2000-2500) that icq should use.
If you've got any problem's feel free to contact me.

Roman Spitzbart



------------------------------

From: Loren Osborn <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux,comp.os.linux.admin,comp.os.linux.help,nl.comp.os.linux
Subject: Re: Romote "root" login
Date: Tue, 26 Jan 1999 10:12:57 -0800

It's not that you CAN'T login as root from anywhere... it's just that it
is a significant security risk, so it's turned off by default... for
more information, do a 'man' on 'securetty' (refering to
/etc/securetty).

Loren

Elson Liu wrote:
> I don't think that you can logon as root from anywhere other than the
> console...I think you'd have to logon as a different user with superuser
> privileges.


------------------------------

From: "Rigel Kent" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,alt.linux,comp,linux.redhat,linux.redhat.misc
Subject: Re: configuration of eth0 & ifconfig
Date: Tue, 26 Jan 1999 06:43:10 -0800


John K wrote in message
>Hello everybody,
>
>
>...Do you think the problem is that Windows98 (as proxy) and Linux (as
client)
>are not compatible and can't communicate among them?
No. I have Redhat 5.1 client connecting through a Win95 proxy using Wingate
and their on different subnets. (Added a static route on the Win95 machine
to see the Linux's subnet while dialed in). Unfortunately, I don't know
what's wrong with your setup. Can you ping when the proxy is not dilaed in?
This shouldn't matter because they're on the same subnet. I am curious why
your values aren't sticking. You might check your system rights. Are you
doing this as root? Good luck.

>I remember that on the
>win98 wingate (proxy) I had to set up IPX SPX protocols. Do I have to do
the
>same for Linux. If yes how? From where?
>
>What else might be the problem for this simple 2 computer network
connection
>that doesn't work from the Linux (client) side.
>
>I read:
>- RH Linux Unleashed chapter 13
>- Teach yourself Linux in 24 hours
>- Linux for dummies ;-)
>- The official redHat Linux installation guide
>
>and all 4 books are *totally* useless on that matter. I like solving
>problems on my own before writing newsgroups, but on this one... ...you got
>me.
>
>Thanks in advance.
>
>



------------------------------

From: Gilbert Jacolbia <[EMAIL PROTECTED]>
Subject: Re: Linux-Router - HELP
Date: Tue, 26 Jan 1999 14:33:28 -0500
Reply-To: [EMAIL PROTECTED]

Gary Lake wrote:

> I recently just did this....I got the two NIC's running....but I still not
> routing packets
>
> in my /etc/conf.modules I had to add
> alias eth0 ne
> alias eth1 ne
>
> and at the end added the options
>
> options ne io=0x300,0x360  (substiture the IO addresses for your cards
> 0x300,0x320 in your example)
>
> Hope this happens
>

Actually I managed to let thessystem detect the NIC's after so many tries by
doing the following;

after loging in as root;

a)    insmod ne "io=0x300,0x320"
b)    ifconfig eth0 xx.xx.xx.xx netmask xx.xx.xx.xx
c)    ifconfig eth1 xx.xx.xx.xx netmask xx.xx.xx.xx
d)    ifconfig  ====> to confirm connection
e)    backup_config ====> to save changes....but gives me Buss error ????..
could it be IRQ conflict??

By the way the above configuration is being done on a Linux-Router from
LRP/Fireplug..

thanks for the input  Gary,




------------------------------

From: "Jim Ford" <[EMAIL PROTECTED]>
Subject: What's net-pf-4?
Date: Tue, 26 Jan 1999 18:54:04 -0000

I always get boot messages to the effect that net-pf-4 and 5 can't be
located. What does this mean in practice - it doen't seem to effect my
network?

Regards: Jim Ford



------------------------------

From: [EMAIL PROTECTED] (spivey)
Subject: Masq Dialer Help
Date: Tue, 26 Jan 1999 20:11:39 GMT

Howdy,

        I'm having trouble with Masqdailer  Server (from
http://cpwright.villagenet.com/mserver/index.html#rhrpm). When I start
the windows client and connect I get;

Connected to Server
Server Ready
No Active Modem Connections!
No Active Modem Connections!
Can not find connection xxxxxx
Connecting to my.isp.com
No Active Modem Connections!

        Since I get a connection I belive that I have installed it
correctly and just need to correclty edit mserver.conf. I'm useing
ppp.  So far I questions with;

stattype = pppdlock

devfile = "/proc/net/dev"    
        
checkhost = "206.102.xxx.x"     # Should this be my ISP?

admin_userallow = "user"     # User being any Linux User?

cname = "my.isp.com"  #???

ASB_script = "/sbin/ifup ppp0 &"

ASB_ipallow = "10.1.1.*:127.0.0.1"     # My LAN is 10.1.1.*

# No clue from here down

ASB_info = "America's Suggestion Box"      

# The per connection netdev, this is only needed for the netdev stat
method
# it defaults to the value of netdev.
ASB_netdev = "ppp0"

# The per connection checkhost, this is only needed for the exitcode
stat method
# it defaults to the value of checkhost.
ASB_checkhost = "164.254.128.5"

# Yet Another Connection
VillageNet(Balder)_script = "/sbin/ifup balder"
VillageNet(Balder)_ipallow = "127.0.0.1:192.168.1.*"
VillageNet(Balder)_userallow = "cpwright,mswright,ehwright"
VillageNet(Balder)_info = "VillageNet with a Statically Assigned IP"
VillageNet(Balder)_checkhost = "205.136.35.149"


        I've tried to edit everytihng but I'm not getting any where.
Can someone get me started.

Thanks,
Spivey

bougus address











------------------------------

From: [EMAIL PROTECTED]
Subject: Re: SOS SOS SOS HELP HELP HELP SOS SOS SOS
Date: Tue, 26 Jan 1999 20:10:04 GMT
Reply-To: [EMAIL PROTECTED]

On Thu, 21 Jan 1999 17:40:35 +0100, Angelo maffia
<[EMAIL PROTECTED]> wrote:

>after 'make dep' and 'make clean', issue the 'make bzImage' instead of
>'make zImage'. This would also compile bigger kernel.
>On my machine, it works.
>Regards.
>Angelo

Thats it...  wondering why all before wrote such funny things about
the error... However the solution of using modules instead is more
elegant and runs better.

Do not forget to change "make zLilo" to "make bzLilo" and to copy the
results to /vmlinuz.

Hope this helps


D. Toussi
_______________________________
Lacho calad, drego morn!
(J.R.R: Tolkien)

e-mail: [EMAIL PROTECTED]

------------------------------

From: r <[EMAIL PROTECTED]>
Subject: Samba/mgetty/printfax problem
Date: Mon, 25 Jan 1999 22:17:17 GMT

Well, I finally found what I was looking for for faxing
(respond+printfax).  It works, however, I am having one slight problem:
faxspool does not seem to run!  I know that faxspool runs manually, and
the paths are correct in printfax.pl...any suggestions?



------------------------------

From: Malware <[EMAIL PROTECTED]>
Subject: Re: Bad NIC performance since upgrade to 2.2.0
Date: Tue, 26 Jan 1999 20:47:06 +0100

Hi Christian,

you wrote:
> 
> I compiled the new 2.2.0 kernel on two machines now and they both have
> the same problem.  When I issue the ifconfig command, interface eth0
> shows something like this:
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Bcast:0.0.0.0  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:3924  Metric:1
>           RX packets:26880 errors:384 dropped:0 overruns:0
>           TX packets:0 errors:0 dropped:0 overruns:26880

Did you allready update your net-tools package as supposed in
/usr/src/linux/Documentation/Changes? Does not look like. Be sure not to
get the ones for SuSE 6.0 as they are linked agains the glibc2 which
SuSE 5.3 does not have.


Malware

------------------------------

From: Malware <[EMAIL PROTECTED]>
Subject: Re: Implementing Raw IPX
Date: Tue, 26 Jan 1999 20:37:57 +0100

Hi FtnPatrick,

you wrote:
> All I need are functions to send pre-formed packets and to receive pre-formed
> packets.  If I need to modify the kernel or write a whole new module, then so

Just open a socket with

sk=socket(PF_INET, SOCK_PACKET, ntohs(ETH_P_ALL));

You then can use the normal socket style function like bind, sendto,
recv, ... to operate on. The addresses for this sockets just contain the
name of the interface. But notice you might get into more work here
because you before might have to feature out the interfaces, frame types
and routes setted up for IPX.


As you wrote you want to put IPX-packets onto the net. Why you do not
want to use a IPX-socket for? It can be created in similiar fashion.

sk=socket(PF_IPX, SOCK_DGRAM, 0);

The datatype needed for the addresses you can find defined as struct
sockaddr_ipx in /usr/include/linux/ipx.h.


In Linux 2.1+ the ethertap device does exist which does enable to
receive and send raw packets too.


Another option might be a modified libpcap which could be available for
a huge number of systems.


Now you have atleast 4 options so choose carefully which one to use.


Malware

------------------------------

From: Malware <[EMAIL PROTECTED]>
Subject: Re: Problem w/ DEC205 (ewrk3) net card - eth0  (probe ok but not ping)
Date: Tue, 26 Jan 1999 20:22:11 +0100

Hi Glenn,

you wrote:
> Thanks for the reply.   A lot of my frustraction is the HOWTO docs are not
> helping.  I've tried "route add ..." many times and I also checked
> /etc/sysconfig/network to verify it's insertion.  I'm thinking that one of

This way we are stuck. Plz post the output of "ifconfig -n eth0" and
"route -n".


Malware

------------------------------

From: Chris Plachta <[EMAIL PROTECTED]>
Subject: Can I run a web server with xDSL?
Date: Tue, 26 Jan 1999 11:56:53 -0800

Hello,

I am in the process of trying to set up a web server (Apache on Linux)
that I will use to host multiple sites. I am trying to decide between
co-locating a server or hosting it in-house with a DSL connection. I am
wondering if there is anyone out there that is currenlty running a web
server with a DSL connection, and if there are any problems I should
know about before diving into it.

A couple of questions I have:

-How do I handle the DNS service for mulitple sites? Can I outsource
this our do I have to set up DNS on my own machine?
-How about email servcies? If I am hosting a domain, can I provide POP
mail service on my server? Is this asking too much of a single box? Can
this be outsourced?
-Are any issues with network config and DSL that I should be aware of?

Any info or insights would be GREATLY appreciated!!!

--
Chris Plachta
Alcatel USA
Phone: 707-792-7271
FAX:   707-792-6310




------------------------------

From: jmcknight <[EMAIL PROTECTED]>
Subject: Connect to Netware 5 server? How To?
Date: Tue, 26 Jan 1999 14:57:38 -0500

I have a Netware 5 server ( I wish I had spent the money on more
hardware to run Linux :) that I would like to access from my Linux box.
Is there a How-To on that anywhere? I havent seen anything and the only
thing I have seen on netware is about IPX.

tia,

Jason McKnight


------------------------------

From: [EMAIL PROTECTED]
Subject: Re: Why Does Linux Networking Suck So Badly ?
Date: Tue, 26 Jan 1999 18:50:37 GMT

I feel sorry for you buddy. Linux works as promised . . . that is if your
buddy bill would quit changing things. The only problem that I had with
networking Linux was getting my win98 machine to access the drives this is
because Bill in is wisdom changed the way passwords are handled (So nice of
bill to tell everybody) midway between win95 and win98. It wasn't until
working with linux that I realized that the only way to solve this problem is
to either update stuff under win95 or remove a feature from win98. The
problem as I see it is not with linux but rather your ineptness.

I bought linux, updated samba, got peer to peer networking working, setup
linux as server with file and print sharing, all with in a week of the first
time I ever used linux. So Thpppppt!



In article <[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] (j) wrote:
> The sheer number of messages posted here - usually half going
> unanswered - tells the tale ... Linux networking sucks.
>
> Now you can take your Winders, add in file-sharing in just a
> couple of minutes, bring up your Winders workstations and
> locate and link in within just another few minutes. Easy.
> Quick. Relatively painless. Not the Linux way ...
>
> Now you may try to defend Linux by saying that it has more
> "flexibility" - but quite frankly we could do with a lot
> less "flexibility" and a lot more simplicity. I'll bet
> that 95% of users just want to tie into a local NT server
> or use Linux AS a file/print server for Winders PCs.
> I think that "flexibility" is just an excuse - a euphamism
> for "a bunch of really unsophisticated little utilities
> written with no real plan in mind by people with a fetish
> for cryptic poorly-documented command-line parameters and
> well-hidden config files". As is, Linux is a user-UNfriendly
> mirror of MSDOS - and that goes double for "connectivity" issues.
>
> Want cheap PC networking & connectivity ? One "L" word comes
> to mind and it's NOT "Linux" - try "LanTastic" instead.
>
> Now Linux IS relatively compact and fast and DOES get past
> some of the old buggaboos inherent to DOS-derived systems,
> but Linux just isn't "ripe" yet. It needs DUN boxes and
> "Network" panels which HELP you with things and show all
> the pertinent options and conflicts right there.
>
> Someone could make a LOT of money if they could put together
> a turn-key Linux-based file/print server package which could
> autoconfigure most things and be really easy and helpful on
> the rest. Something you take out of the box and 20 minutes
> later you have a good working server. You can do that with
> Winders, but not with Linux unless you apparently have put
> in a tremendous number of obsessive hours.
>
> Now you thought I was just gonna flame ... nope. I've been
> relatively polite and realistic here. There are MANY issues
> to address, MANY refinements to be made before Linux becomes
> a really good option for administrators of small/medium networks.
> As much as I dislike Winders, it's a positive relief to boot
> back into it after fooling around for hours in vain with Linux.
> Preferring Winders to ANYTHING ... IMHO that's a pretty severe
> indictment. Linux has been badly over-sold. If it weren't so
> cheap it would be a rip-off ... a hobby OS masquerading as
> the "real deal".
>
>

============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

------------------------------

From: [EMAIL PROTECTED] (Bill Woessner)
Subject: DHCP and 2.2.0
Date: 26 Jan 1999 20:29:22 GMT

I just upgraded to the 2.2.0 kernel and found that my DCHP service no longer
worked.  So I read the Documentation/Changes and found that I need the new
dhcpcd.  So I got it, and it still didn't work.  Not only that, but it stopped
working with the old 2.0.36 kernel, too.  Any suggestions?

------------------------------

From: [EMAIL PROTECTED] (Mika Jussila)
Subject: Re: NE2000 ISA card and kernel 2.2.0-final
Date: 26 Jan 1999 20:37:41 GMT

>
>    I'm running Red Hat 5.2 kernels 2.0.34 and
>2.0.36 wich works with my ISA NE2000 compatible
>net card.  I went to get the new 2.2.0-final
>kernel, compiled it with the NE2000 driver, and
>when I booted it up, I had no network!  All my
>config files were the same, but my network is
>unreachable.

I'm runnig SuSE and I noticed also, that my NE2000 compatible
card wasn't working when I updated my kernel to 2.2.0. After compiling
NE2000 support directly to kernel and trying to run a new kernel few
times, I decided to install NE2000 support as a module:

make config (NE2000 as module (M) )
make dep
make zImage

make modules
make modules_install  (Now module files are under /lib/modules/2.0.0/ )

insmod /lib/modules/2.2.0/net/ne.o io=0x240 irq=5  (type dmesg)
/sbin/init.d/network start
/sbin/init.d/route start

After those steps, I founded that my network connection was working again. 
I hope, that you'll find some help (I'm not a guru ;)

-- 
=============================================================================
 Jussila Mika    [EMAIL PROTECTED]   +358 50 532 6275  http://www.jyu.fi/~jusmi
=============================================================================

------------------------------

From: "tim" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,aus.computers.linux,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: ppp-server problem
Date: Sun, 24 Jan 1999 22:23:35 +0100

hi !

Meanwhile I had a look at winipcfg and I got no IP-adress!!!
  I had a look at /var/log/messages :

mgetty: TIOCMBIS failed : I/O-error
mgetty: cannot turn off soft carrier: I/O-error
mgetty: tcgetattr failed :I/O-error
mgetty: cannot get TIO : I/O-error

Does anyone know what that means and why ppp isn't running ???

Tim





------------------------------

From: Ben Sandler <[EMAIL PROTECTED]>
Subject: Slow to connect, but then OK
Date: Sun, 24 Jan 1999 21:17:47 +0000

I have two machines connected with a crossover cable.  They both have
the same domain and the same subnet.  When I telnet from one to the
other, it takes several minutes to get a login prompt.  But once I get
it, the connection is as fast as typing on the local machine.  In a
related story, nfs mounting gives up after about 30 seconds, and says it
timed out.  It seems like ther physical connection is OK, but something
is fundamentally wrong.  Any ideas???

Thanks in advance,
- Ben

-- 
Ben Sandler
email me: sandler at ymail dot yu dot edu

------------------------------

From: Stephen Carville <[EMAIL PROTECTED]>
Subject: Re: Installing dhcpcd.tar.gz, linux newbie
Date: 24 Jan 1999 21:19:49 GMT

Jeffrey T Kowalczyk wrote:
> 
> Now that I've downloaded the most recent dhcpcd version to /tmp, where do I
> put the archive and run these steps to install it from? I've never used .tar
> distributions before.
> 
> <hostname>:~#gunzip dhcpcd-1.3.16.tar.gz
> <hostname>:~#cpio -i -d <dhcpcd-1.3.16.tar
> <hostname>:~#make
> <hostname>:~#make install
> 
> Do I have to recompile the rh5.2 kernel, or will this module be OK as is. Is
> there an RPM source for dhcpcd?

Yes, at ftp://rawhide.redhat.com/SRPMS/SRPMS/

However, I don't think that dhcpcd-1.3 will work with the 2.0.X kernels.  I
tried it on my laptop and the server never even saw a DHCPDISCOVER or
DHCPREQUEST message.  It may be that 1.3 requires the 2.X server though.
 
> Any other step by step instructions to install the package? I'm trying to
> get my cablemodem working here. DHCP to an NT server works fine.

Are you trying to connect using the same machine as you originally
connected with?  Some cable modem providers register your MAC address and
will only issue an address to known hosts.

-- 
Stephen Carville
[EMAIL PROTECTED]
====================================================
Management: The art of hiring intelligent, skilled individuals and then
ignoring their advice.

------------------------------

From: [EMAIL PROTECTED] (Edwin van Geelen)
Subject: S.u.S.E. 5.3 & ISDN & PPP: pppd not functioning!
Date: Sun, 24 Jan 1999 21:21:46 GMT

Hi,

I've just installed S.u.S.E. Linux 5.3. I've then recompiled the kernel to 
correctly support PPP and my Teles ISDN card. During startup I can see that 
PPP is present in the kernel.
However, when I use pppd, I get a message that the kernel doesn't support PPP. 
Do any of you know this problem? Or do I use the pppd command in a wrong way? 
My ISDN device is ippp0.

Thanks,
Edwin

------------------------------

From: [EMAIL PROTECTED]
Subject: PPP-MSCHAP -> WinNT not working...
Date: Sun, 24 Jan 1999 21:17:17 GMT

I can't get a ppp connection established to my work's
MS WinDOZE NT PPP server from my Linux box.  It works
fine when I connect from WinDOZE 98, but not from Linux.

In my Linux partition, I have installed libdes and
compiled/installed  pppd to use the MSCHAP code.

Following is all the information I can possibly have
about my problem....(sorry for the long article, I
want to make sure all the information is provided).
======================================================================
/var/log/messages:

Jan 24 16:01:28 rubens pppd[440]: pppd 2.3.5 started by root, uid 0
Jan 24 16:01:28 rubens kernel: ppp_tty_ioctl: set flags to 70000
Jan 24 16:01:28 rubens kernel: ppp_tty_ioctl: set xmit asyncmap 0
Jan 24 16:01:28 rubens kernel: ppp_tty_ioctl: set flags to 70000
Jan 24 16:01:28 rubens kernel: ppp_tty_ioctl: set mru to 5dc
Jan 24 16:01:28 rubens kernel: ppp_tty_ioctl: set rcv asyncmap 0
Jan 24 16:01:28 rubens kernel: ppp_tty_ioctl: set flags to 70010
Jan 24 16:01:28 rubens kernel: ppp: channel ppp0 going up for IP packets!
Jan 24 16:01:28 rubens pppd[440]: Using interface ppp0
Jan 24 16:01:28 rubens pppd[440]: local  IP address 192.168.1.10
Jan 24 16:01:28 rubens pppd[440]: remote IP address 192.168.1.20
Jan 24 16:01:37 rubens pppd[440]: Starting link
Jan 24 16:01:38 rubens chat[442]: abort on (BUSY)
Jan 24 16:01:38 rubens chat[442]: abort on (ERROR)
Jan 24 16:01:38 rubens chat[442]: abort on (NO CARRIER)
Jan 24 16:01:38 rubens chat[442]: abort on (NO DIALTONE)
Jan 24 16:01:38 rubens chat[442]: abort on (Invalid Login)
Jan 24 16:01:38 rubens chat[442]: abort on (Login incorrect)
Jan 24 16:01:38 rubens chat[442]: send (ATZ^M)
Jan 24 16:01:38 rubens chat[442]: expect (OK)
Jan 24 16:01:38 rubens chat[442]: ATZ^M^M
Jan 24 16:01:38 rubens chat[442]: OK
Jan 24 16:01:38 rubens chat[442]:  -- got it
Jan 24 16:01:38 rubens chat[442]: send (ATDT7131285,,,,,,1134922126,,,^M)
Jan 24 16:01:39 rubens chat[442]: expect (CONNECT)
Jan 24 16:01:39 rubens chat[442]: ^M
Jan 24 16:02:25 rubens chat[442]: ATDT7131285,,,,,,1134922126,,,^M^M
Jan 24 16:02:25 rubens chat[442]: CONNECT
Jan 24 16:02:25 rubens chat[442]:  -- got it
Jan 24 16:02:25 rubens chat[442]: send (^M)
Jan 24 16:02:25 rubens chat[442]: timeout set to 10 seconds
Jan 24 16:02:25 rubens chat[442]: expect (~)
Jan 24 16:02:25 rubens chat[442]:  57600^M
Jan 24 16:02:35 rubens chat[442]: alarm
Jan 24 16:02:35 rubens chat[442]: send (^M)
Jan 24 16:02:35 rubens chat[442]: send (^M)
Jan 24 16:02:35 rubens pppd[440]: Serial connection established.
Jan 24 16:02:36 rubens kernel: ppp_tty_ioctl: get unit: 0
Jan 24 16:02:36 rubens kernel: ppp_tty_ioctl: set flags to 70010
Jan 24 16:02:36 rubens kernel: ppp_tty_ioctl: set xasyncmap
Jan 24 16:02:36 rubens kernel: ppp_tty_ioctl: set xmit asyncmap ffffffff
Jan 24 16:02:36 rubens kernel: ppp_tty_ioctl: set flags to 70010
Jan 24 16:02:36 rubens kernel: ppp_tty_ioctl: set mru to 5dc
Jan 24 16:02:36 rubens kernel: ppp_tty_ioctl: set rcv asyncmap ffffffff
Jan 24 16:02:36 rubens kernel: ppp_tty_ioctl: set flags to 70000
Jan 24 16:02:36 rubens pppd[440]: Connect: ppp0 <--> /dev/cua1
Jan 24 16:02:36 rubens pppd[440]: Warning - secret file /etc/ppp/pap-secrets
has world and/or group access
Jan 24 16:04:06 rubens pppd[440]: LCP: timeout sending Config-Requests
Jan 24 16:04:06 rubens pppd[440]: Connection terminated.
Jan 24 16:04:07 rubens pppd[440]: Hangup (SIGHUP)


======================================================================
$ uname -a   (has been compiled with PPP 2.3.5 driver)
Linux rubens 2.0.35 #1 Sun Dec 27 23:13:30 /etc/localtime 1998 i686 unknown
$ ls -l /usr/local/lib/libdes.a
-rw-r--r--   1 root     root        65840 Jan 24 11:32 /usr/local/lib/libdes.a
$ pppd -v
pppd: unrecognized option '-v'
pppd version 2.3 patch level 5
...
======================================================================
/etc/ppp/options:

lock
modem
crtscts
noipdefault
lcp-max-configure 30
ipcp-accept-local
mtu 576
defaultroute
asyncmap 0x00000000
debug
kdebug 7
name fns.com\\rsg
remotename DialupNT
connect '/usr/sbin/chat -t 80 -v -f /etc/ppp/chat-fnc'
demand
192.168.1.10:192.168.1.20
ipcp-accept-local
ipcp-accept-remote
/dev/cua1 57600
netmask 255.255.255.0
escape FF

======================================================================
/etc/ppp/chap-secrets:

# Secrets for authentication using CHAP
# client        server          secret          IP addresses
DialupNT        fns.com\\rsg    mypassword
fns.com\\rsg    DialupNT        mypassword


======================================================================
/etc/ppp/chat-fnc:

'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
'' 'ATZ'
'OK' 'ATDT7131285,,,,,,1134922126,,,'
'CONNECT' ''
'TIMEOUT' '10'
'~--' ''
======================================================================

$ more ../pppd/Makefile
#
# pppd makefile for Linux
# $Id: Makefile.linux,v 1.26 1998/05/04 06:10:29 paulus Exp $
#

# Default installation locations
BINDIR = /usr/sbin
MANDIR = /usr/man

PPPDSRCS = main.c magic.c fsm.c lcp.c ipcp.c upap.c chap.c md5.c ccp.c \
           ipxcp.c auth.c options.c sys-linux.c md4.c chap_ms.c cbcp.c \
           demand.c
HEADERS =  callout.h pathnames.h patchlevel.h chap.h md5.h chap_ms.h md4.h \
           ipxcp.h cbcp.h
MANPAGES = pppd.8
PPPDOBJS = main.o magic.o fsm.o lcp.o ipcp.o upap.o chap.o md5.o ccp.o \
           auth.o options.o demand.o sys-linux.o ipxcp.o

all: pppd

#
# include dependancies if present and backup if as a header file
ifeq (.depend,$(wildcard .depend))
include .depend
endif

# CC = gcc
#
COPTS = -O2 -pipe -Wall -g
VER = 2.3.5
# added -ldes (rsg)
LIBS = -ldes

ifneq ($(wildcard /usr/lib/libcrypt*),)
LIBS += -lcrypt
endif

# Uncomment the next 2 lines to include support for Microsoft's
# MS-CHAP authentication protocol.
CHAPMS=y
#USE_CRYPT=y
ifneq ($(wildcard /usr/lib/libcrypt*),)
HAVE_CRYPT_H=y
endif


HAS_SHADOW=y
#USE_PAM=y

INCLUDE_DIRS= -I../include

COMPILE_FLAGS= -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE

# add -DCHAPMS (rsg)
CFLAGS= -DCHAPMS $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS)

ifdef CHAPMS
CFLAGS   += -DCHAPMS=1
ifndef USE_CRYPT
LIBS     := -ldes $(LIBS)
else
CFLAGS   += -DUSE_CRYPT=1
ifneq ($(wildcard /usr/include/crypt.h),)
CFLAGS   += -DHAVE_CRYPT_H=1
endif
endif
PPPDOBJS += md4.o chap_ms.o
ifdef MSLANMAN
CFLAGS   += -DMSLANMAN=1
endif
endif

ifdef HAS_SHADOW
CFLAGS   += -DHAS_SHADOW
#LIBS     := -lshadow $(LIBS)
endif

# For "Pluggable Authentication Modules", see ftp.redhat.com:/pub/pam/.
ifdef USE_PAM
CFLAGS   += -DUSE_PAM
LIBS     := -lpam -ldl $(LIBS)
endif

# Lock library binary for Linux is included in 'linux' subdirectory.
ifdef LOCKLIB
LIBS     := -llock $(LIBS)
CFLAGS   += -DLOCKLIB=1
endif

install: pppd
        mkdir -p $(BINDIR) $(MANDIR)
        rm -fr $(BINDIR)/pppd
        install -s -c -m 4555 -o root pppd $(BINDIR)/pppd
        install -c -m 444 -o root pppd.8 $(MANDIR)/man8
#install -c -m 4555 -o root pppd $(BINDIR)/pppd

pppd: $(PPPDOBJS)
        $(CC) $(CFLAGS) -o pppd $(PPPDOBJS) $(LIBS)

testchap:
        $(CC) test.c -o testchap chap_ms.o md4.o $(LIBS)

clean:
        rm -f $(PPPDOBJS) pppd *~ #* core

depend:
        $(CPP) -M $(CFLAGS) $(PPPDSRCS) >.depend

======================================================================
$ make testchap  (from above pppd/Makefile...)
... went okay...
$ testchap 00000000000000000000000000000000 hello
Response length is 49, response is:
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00
F4 D9 9D AF 82 64 DC 3C
53 F9 BC 92 14 B5 5D 9E
78 C4 21 48 9D B7 A8 B4
01

============= Posted via Deja News, The Discussion Network ============
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.networking) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Networking Digest
******************************

Reply via email to