Linux-Networking Digest #664, Volume #11 Fri, 25 Jun 99 11:13:39 EDT
Contents:
Re: Dell Latitude with 3CCFE575BT-D (Alan Schmitt)
Re: Why not C++ (Bruce Hoult)
Re: PROXY (Marlon)
Re: ping (Derek Lucas)
Re: Strange gnome ppp problem (mike murray)
Re: No email at linux client through msproxy ("Andrey Smirnov")
Re: Connecting to NT network with Linux??? (Nicholas E Couchman)
Re: /AutoPPP (Bill Unruh)
Re: Linux And Windows 95 (Nicholas E Couchman)
Re: HowTo Monitor Internet Acvities While At Work? (Dennis Breeden)
Re: Why not C++ (Bruce Hoult)
Need examples scripts for ppp (Carlos Villegas)
What network cards at 100Mbs works best with linux ????? (interzone)
Re: mgetty for dial-in blocks outgoing traffic ([EMAIL PROTECTED])
SOCKS5 and RH6 (Nathan Valentine)
Re: IP Masq/DNS ("Bob Glover")
Re: headless server ("Bob Glover")
Re: Linux wont route to gateway ("Bob Glover")
----------------------------------------------------------------------------
From: Alan Schmitt <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.portable,redhat.hardware.arch.intel
Subject: Re: Dell Latitude with 3CCFE575BT-D
Date: Fri, 25 Jun 1999 11:42:49 +0000
I'm not sure if it is a relevant thing to say for this card, but my network
card needed me to say "y" for cardbus support in the make config for pcmcia-cs
Alan
------------------------------
From: [EMAIL PROTECTED] (Bruce Hoult)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: Why not C++
Date: Fri, 25 Jun 1999 23:54:41 +1200
In article <[EMAIL PROTECTED]>, "Thomas Steffen"
<[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] (Bruce Hoult) writes:
>
> > You might want to check out Dylan. It's much simpler and easier to learn
> > than C++, and yet is more powerful than C++ -- for example Dylan supports
> > dynamic dispatch on more than just one argument of a function, plus Dylan
> > has things such as lexically scoped local functions, anonymous functions,
> > and closures,
>
> though i'm not sure it supports closures the way i would like g++ to
> do...
How is that? See an example of closures in Dylan at the end...
> anyway, Dylan looks like a very potent language. however, until
> a safe compiler base is available (which means gcc basically), i am
> unlikely to switch.
The Dylan I'm using (and helping to improve) -- Gwydion Dylan, aka "d2c"
-- produces C code which is then compiled using gcc. That has several
benefits: portability, known quality of code generation, ability to
inspect intermediate C code to verify/understand it (and it's actually
pretty readable -- d2c pretty-prints it and bases the C names on the
original Dylan variables, so it's a bit easier to understand than the
output of Stroustrup's "cfront" was), and ability to leave certain easy
optomisations (such as inlining) to gcc.
It's possible to call back and forth between Dylan and C code, so existing
OS and other libraries can be used seamlessly from Dylan programs. At the
moment you have to hand-code the interface routines in Dylan (as I've done
below), but we're working on automatically producing the interface
routines from C header files and this works for simple cases (not yet
callback functions) now.
> and C++ seems to be there to stay (as unfortunate
> as it may be for better languages).
C++ is certainly going to be around, and the best language for some
purposes, for many many years to come. It's better than what came before
it. I was an early-adopter of C++ (in 1989), back when it was arguably in
a more rudimentary state than Dylan is today. Much as I saw the potential
of C++ at the time, it was far from a certainty that it would take over
from C as it has.
Stroustrup did a number of things right. I think the most important of
those were link-compatability with C, the philosophy that you don't pay
for advanced features if you don't use them, and compiling to C in the
reference implementation to ensure easy and widespread portability. With
d2c we have the same properties, plus the compiler being "free software"
in the FSF sense. OTOH, Harlequin's Dylan for Windows is free for
personal use, but not "free".
I personally think that d2c is therefore vital to the penetration and
acceptance of Dylan, and Harlequin seem to agree because they are
cooperating with the Gwydion Dylan project and are giving assistance such
as open-sourcing some libraries written by them.
C++ also maintained source code compatability with C, but Java has shown
that the market will accept deviation from this. Dylan's syntax is not as
close to C's as is Java's syntax, but it's not so far away as to be
shocking to anyone who has programmed in the C/Pascal/Algol family.
Unlike, for example, SmallTalk, Lisp or FORTH, each of which can send C
programmers running screaming.
I tend to think that in terms of adoption Dylan today is about at the
stage that C++ was at in 1990 or so. Back then, C++ was nearly a decade
old, but there was basically just CFront. Zortech C++ was out, but
Microsoft, Borland and Symantec probably didn't even have C++ on their
horizons yet -- they certainly hadn't released anything. Dylan is in much
better shape now than C++ was then in as much as the language definition
is far more stable and complete. The implementations aren't 100% there
yet, but the definition is stable. Dylan is also better off with standard
libraries. The Dylan equivilent of the STL was defined alongside the
Dylan language from the start, and integrates with the language much
better.
The other major thing needed is a GUI library. Apple had a pretty nice
one in their Dylan Technology Release in 1995 (and the development
environment was *awesome*), but it was very Mac Toolbox-specific.
Harlequin's DUIM is hopefully more portable, and there are plans to port
it to d2c/Unix.
You asked about closures before. I just happen to have been implementing
code for PowerPC (x86 was already done) that allows closures to be passed
out to C code and used as callbacks. Closures already worked within a
Dylan program, of course (as did non-closure callback functions), but to
pass them to C functions that expect just a simple function pointer we
need to create a machine code thunk/trampoline at runtime and pass the
thunk to the C program.
I'll include one of my test programs below.
-- Bruce
========================= docalc.c ===========================
typedef int (*getIntFunc)(void);
typedef void (*putIntFunc)(int);
void doCalc(int n, getIntFunc a, getIntFunc b, putIntFunc c);
void doCalc(int n, getIntFunc a, getIntFunc b, putIntFunc c)
{
int p = a() * n + b();
c(p);
}
==================== testclosure.dylan =======================
module: testclosure
synopsis: tests passing closures to C as callback functions
author: Bruce Hoult
copyright:
// This method will be automagically generated from the C header file
// once melange/pidgin is done
define method doCalc(n, f1, f2, f3) => ();
call-out(
"doCalc", int:, int: n,
ptr: callback-entry(
callback-method() => (n :: <integer>); f1() end),
ptr: callback-entry(
callback-method() => (n :: <integer>); f2() end),
ptr: callback-entry(
callback-method(newVal :: <integer>) => (); f3(newVal) end)
);
end doCalc;
//////////////////////////////////////////////////////////////////////
// function that makes a closure holding two integers, and returns
// functions to access each integer and to alter one of them
define method makeClosure (x :: <integer>, y :: <integer>)
=> (getX, getY, setX);
values(
method() x end,
method() y end,
method(newX) x := newX end
)
end method makeClosure;
define method main(appname, #rest arguments)
let (i, j, k) = makeClosure(10,5);
let (q, r, s) = makeClosure(7,2);
doCalc(13, i, j, k); // should set i() to 10 * 13 + 5 = 135
doCalc(3, q, r, s); // should set q() to 7 * 3 + 2 = 23
format-out(
"Values of closure variables = %d,%d and %d,%d\n",
i(), j(), q(), r()
);
exit(exit-code: 0);
end method main;
==============================================================
------------------------------
Date: Thu, 24 Jun 1999 22:25:59 -0400
From: Marlon <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: PROXY
[EMAIL PROTECTED] wrote:
> I linux box(198.168.200.1) doing PPP. How do I get WIN95
> (198.168.200.2) Browser to connect to the internet through the linux
> box?
> I can telnet from win95 to linux.
>
> JJ
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
I too am trying to do the same thing. I have a Linux box with IP
192.168.1.254 with my Win95 logged into in with samba. My Win95's IP is
192.168.1.2.
How do I get my Win95 client to share my PPP connection that Linux has
up and running?
------------------------------
Date: Thu, 24 Jun 1999 13:07:13 -0400
From: Derek Lucas <[EMAIL PROTECTED]>
Subject: Re: ping
Do you have any type of firewalling running on your Linux system (ipfwadm
or ipchains), which would be blocking ICMP packets? If so, remove the
deny all filter/chain on ICMP packets. If not, your ISP may be running
filters at their routers, which prevent ICMP packets from being sent. Or,
the host(s) you are trying to ping have ICMP filters in place.
--
Derek Lucas
Systems Administrator
OneNet Communications, Inc.
513.618.1000 : [EMAIL PROTECTED]
On Tue, 22 Jun 1999, Manuel Zabelt wrote:
> Hello!
>=20
> If I type =B4ping 127.0.0.1=B4 everything works fine.
> But if I want to =B4ping anyhost=B4 almost nothing is shown, but there is
> something going through the network(xosview tells me).
> Only the first line =B4PING anyhost (IP): 56 data bytes=B4 is shown.
> If I quit (Ctrl-C) the following is shown:
> --- anyhost ping statistic ---
> =B4n packets transmitted, 0 packets received, 100% loss=B4
>=20
>=20
> Everything else than ping (http,ftp,traceroute) works fine.
> Does anyone know, how, I can solve this problem?
>=20
>=20
------------------------------
From: mike murray <[EMAIL PROTECTED]>
Subject: Re: Strange gnome ppp problem
Date: Fri, 25 Jun 1999 06:19:43 -0500
When I upgraded to rh 6.0, mine quit. I had to go to linuxconf, ppp &
edit my ppp setup.
A couple of the lines there had wrapped to the next lines & therefore
were unusable.
Hope it helps
------------------------------
From: "Andrey Smirnov" <[EMAIL PROTECTED]>
Crossposted-To: microsoft.public.proxy,alt.os.linux.caldera
Subject: Re: No email at linux client through msproxy
Date: Thu, 17 Jun 1999 18:42:29 -0700
Whe client is running NT, you need to install special software to use
'transparent' proxy. You need to set your Linux box to use transparent proxy
(check http://support.microsoft.com/support and search for transparent
proxy), or you can configure SOCKS proxy on NT server if you are running
MS-Proxy 2.0.
Good luck!
John Perser <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> I'm able to connect and surf web pages through my msproxy from a linux
> client but I'm unable to access newgroups or download email. All this
> using Netscape. Does anyone know what might be stopping the linux
> client from being able to work?
> I can ping the server but no external pings work.
> All this works when the client is running NT of course.
>
> --
> John Perser Audio Evangelist & Product Mgr.
> Multigen-Paradigm Inc. www.multigen-paradigm.com
> ---
> Q: Imagine standing in a jungle at night with your eyes closed, you hear
>
> heavy breathing behind, above you and to the left? What are you?
> A: Scared and running away...
> Q: Imagine the same situation with your ears plugged. What are you?
> A: A midnight snack.
>
>
------------------------------
From: Nicholas E Couchman <[EMAIL PROTECTED]>
Subject: Re: Connecting to NT network with Linux???
Date: Thu, 24 Jun 1999 17:40:11 GMT
I think all you need to do is find out the ports the poxy is running on. I
can tell you that the default port for MS Proxy for NT is 80. I have it on
my NT comp at home, but it doesn't require a Proxy Client. You just
manually set the proxy for the IP address and port number.
--Nick
Bindy wrote:
> Hi,
>
> Need some help with connecting to NT network through Linux... Currently,
> I am connected to a large NT network with windoze98. Now to access the
> net (telnet, etc) I need a Microsoft Proxy Client to actually get
> anything (thru win98)...
>
> I can get an IP address from the server, but am stuck from that point.
>
> My question is, how do I do it in linux??? Is there something like
> MSP???
>
> Please help...
------------------------------
From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: /AutoPPP
Date: 24 Jun 1999 21:18:36 GMT
In <[EMAIL PROTECTED]> [EMAIL PROTECTED]
([EMAIL PROTECTED]) writes:
>Has anyone got the /AutoPPP function working with RH 6.0/Mgetty? I
>would like to set up some dial-in users, so they can use the same login/
>pwd for telnet and ppp. So far only telnet works.
Yup. Works well. However you have to set it and pppd up properly. I
suspect you are trying to use the login option for pppd. in that case
put the line
* '' *
into /etc/pap-secrets. This uses the null password for eveyone, and
after this matches everyone, the login option then tells the sytem to
use the passwd database/passwords for login.
------------------------------
From: Nicholas E Couchman <[EMAIL PROTECTED]>
Subject: Re: Linux And Windows 95
Date: Thu, 24 Jun 1999 17:24:17 GMT
I think there is a website called www.samba.org. You need to install Samba on
your Linux box and edit the /etc/smb.conf to be a domain master, do domain
logins, etc. I have my own WinNT box, so I don't use Samba for that purpose,
therefore I am not going to be that great of a help to you, but all you need to
find is documentation on Samba (can be found in /usr/doc/samba-x.x.x.x).
--Nick
molten wrote:
> Hey there, i am looking for some docs on how to get windows 95 logging onto
> a linux box, if you know of any ideas, please send them to
> [EMAIL PROTECTED]
>
> Thanks in advance,
> Jeff
------------------------------
From: Dennis Breeden <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.questions,comp.os.linux.misc,microsoft.public.windowsnt.misc
Subject: Re: HowTo Monitor Internet Acvities While At Work?
Date: Fri, 25 Jun 1999 12:54:35 GMT
Jimmy Navarro wrote:
> I work around huge comporate network of NT servers: SMB server, PDC,
> firewall, routers, e-mail servers, etc... Is there way to remotely
> monitor or track down employees abusing the LAN-to-Internet continuous
> connectivity surfing the WWWduring working hours with their Ethernet
> connected Windows 95/NT workstations? Any suggestion?
Check out a commercial product, EcoScope by Compuware. This is exactly
what we are doing with it.
------------------------------
From: [EMAIL PROTECTED] (Bruce Hoult)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: Why not C++
Date: Sat, 26 Jun 1999 00:58:04 +1200
Forgot to include the test run output...
[bruce@sparky closure]$ ./testclosure
Values of closure variables = 135,5 and 23,2
[bruce@sparky closure]$
------------------------------
From: Carlos Villegas <[EMAIL PROTECTED]>
Subject: Need examples scripts for ppp
Date: Fri, 25 Jun 1999 13:20:24 GMT
It was very exciting to get into the internet with my Linux OS. Great
feeling. Now I want to learn about all this ppp-on, ppp-up, scripts etc.
Where can I find the scripts. Can anybody send me an example of scripts
to dial and disconnect from their ISPs? Also how can you give non-root
users access to use these root-owned scripts.
The reason I want to use the scripts directly is to not have to
"Activate" the my ppp0 interface from withing the 'netcfg' utility.
Ideally I'd like to be able to call a script what would get me into the
internet! :) I hope I'm not asking for too much. :) Linux is great. I
love it.... Keep up the GOOOOOD job guys/galls!!!!!
your linux friend,
Carlos Villegas ( linuxing from Alhambra California, US )
e-mail: [EMAIL PROTECTED]
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: interzone <[EMAIL PROTECTED]>
Subject: What network cards at 100Mbs works best with linux ?????
Date: Fri, 25 Jun 1999 14:57:15 +0200
I have bought two Fast Ethernet cards CNET PRO120 , the chip inside is
a Macronix 98715 , normally it works with the drivers tulip , but it's
been one month I have tried to make it works, without success.
I had all the problem you can ever imagine... Cards were not recognize ,
then yes , after only one of the two computer with exactly the same
config , don't find the card... so I decide to sell these cards , and to
buy two new cards , still at 100Mbs Fast Ethernet...
Which card are known to worrk the best , with linux ...What model I can
buy with eyes close , and that will works without problems.... It is
very important for me to establish this fast network , with my computer
, so if , someone can help me choosing a card, it will be coool....
for information I have Redhat 5.2 ( kernel 2.3.6 ) Kde 1.1.1 , scsi
harddrives...128MB ram
I need your help, or I become crazy.....
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: mgetty for dial-in blocks outgoing traffic
Date: Fri, 25 Jun 1999 14:35:28 GMT
I've managed to get something working. See my other posts.
Michael
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: Nathan Valentine <[EMAIL PROTECTED]>
Subject: SOCKS5 and RH6
Date: Fri, 25 Jun 1999 14:49:32 GMT
Hey folks,
I'm having a little trouble setting up SOCKS5 on a multi-homed
machine.
First let me lay out the scenario for you. I have a RH6.0 machine with
two NICs; one to my cable modem service, one to my internal(home)
network. I want to set up the RH box as a packet filtering firewall, but
in the meantime I would like to set up a SOCKS5 server. I'd like for my
internal machines to pass thru socks for all traffic to the world but
I'd also like to prevent anyone on the outside from having access to the
proxy. I've read the docs on the socks.nec.com website and tried the
socks5 RPM and building from source. I simply cannot get socks to work.
When I run it like "socks5 -o" to get a one-shot with debug prints and
try to connect to a website with Netscape it says:
10730: Config: Reading config file: /etc/socks5.conf
10730: Interface Query: if0 addr/mask is 0100007f:000000ff
10730: Interface Query: if0 is lo(1) with 1 IPs
10730: Interface Query: if1 addr/mask is 26750518:00feffff
10730: Interface Query: if1 is eth0(1) with 1 IPs
10730: Interface Query: if2 addr/mask is 0102a8c0:00ffffff
10730: Interface Query: if2 is eth1(1) with 1 IPs
10730: Config: Config file read
10730: Socks5 attempting to run on interface 0.0.0.0:1080
10730: Accept: Waiting on accept or a signal
10730: Route: dst on the same subnet
10730: Checking Authentication
10730: Check: Checking port range (0 <= 1077 <= 65535)?
10730: Auth: Line 1: Matched
10730: Proxy: Received request with incompatible version number: 71
10730: Auth Failed: (192.168.2.2:1077)
10730: Proxy: done cleaning up
It's quite possible that I just don't understand the config
rules for
socks5.conf. The documentation and man pages are a little ambiguous
about how to use the permit, auth, and interface rules. I would really
appreciate it if someone could give me a hand with this one. Most of the
posts to USENET which appear to be related to this problem are either in
German or Dutch(?). I don't trust babelfish to get the translation
correct given the technical nature. Thanks.
--
Nathan Valentine - [EMAIL PROTECTED] AIM: NRVesKY
=====================================================================
University of Kentucky Linux Users Group
http://www.uky.edu/StudentOrgs/UKLUG
------------------------------
From: "Bob Glover" <app1rtg_at_air.ups.com>
Subject: Re: IP Masq/DNS
Date: Fri, 25 Jun 1999 13:20:38 +0100
Not using DNS. No matter how you set up your DNS, in actual operation it
must return one of your five static IP addresses to the remote client
(somewhere out there). That remove client will not be able to see you using
a private IP address. Not much room for maneuvering there.
If you want to have multiple hostnames, like www.mycompany.com and
www2.mycompany.com, I know you can put them on the same box with Apache, but
that only works with the Apache web server. It wouldn't help you with say
IRC or something else.
Good luck.
Mike Engelhart wrote in message
<9Vyc3.3359$[EMAIL PROTECTED]>...
>I have a simple question which I can't find the yes or no answer to for
what
>I'm thinking about doing. I have an ADSL modem and 5 static IP addresses.
>I recently ran out of IP addresses and SWB wants to charge me $200 a month
o
>to get 20 more IP's which I don't want to pay for. Anyway, if I set up a
>machine to do IP Masquerading on one of my real IP's and put a DNS master
on
>another real IP, and then put the rest of the machines on the private
>network, can I set up DNS so that anyone can transparently go to say
>"www.mycompany.com" or "www2.mycompany.com" which would be running on
>private IP's behind the firewall? Is this difficult to do?
>
>Thanks for any advice,
>
>Mike
------------------------------
From: "Bob Glover" <app1rtg_at_air.ups.com>
Subject: Re: headless server
Date: Fri, 25 Jun 1999 13:26:04 +0100
Did you try subscribing to the Redhat mailing list. It's pretty good.
To subscribe send an email to [EMAIL PROTECTED]
with "subscribe" in the subject line.
Russell Treleaven wrote in message
<8AAc3.20247$[EMAIL PROTECTED]>...
>Serial Consoles - New on the x86 and Alpha versions. The kernel now echoes
>all text through a defined serial port. By cleverly attaching a getty to
>that same serial port, 2 way communications can be achieved over a serial
>link with the Linux operating system. These configurations are typically
>known as "headless" machines and have been supported for a long time in the
>SPARC kernel.
>
>The above is straight from the RedHat webpage. I bought RedHat 6.0
primarily
>for this feature.
>I can't figure out how to do it. I called RedHat and there tech support
>didn't know either.
>
>This is in my opinion a very valuable feature. Anybody have info.
>
>Regards,
>
>[EMAIL PROTECTED]
>
>
------------------------------
From: "Bob Glover" <app1rtg_at_air.ups.com>
Subject: Re: Linux wont route to gateway
Date: Fri, 25 Jun 1999 13:31:31 +0100
Did you enable IP forwarding?
------------------------------
** 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
******************************