Linux-Networking Digest #735, Volume #11         Wed, 30 Jun 99 17:13:50 EDT

Contents:
  Re: nfs mount a drive on NT to redhat linux? (Y2K)
  Re: MASQ: failed TCP/UDP checksum ("Irene ah!")
  Re: Why not C++ (Greg Comeau)
  print to remote nt printer ("Chris Bergstrom")
  Linux Web and DNS server possible with one IP? ("George")
  Should NIS server run ypbind? ([EMAIL PROTECTED])
  Re: Newbie: Dialup and ethernet (Tom Wojciaczyk)
  Re: Setting up PPP (Clifford Kite)
  Re: REQ:A telnet session logger. ([EMAIL PROTECTED])
  Re: Linux - Win networking ("Bob Glover")
  Re: Banner after print job. ("Rich Sena ras*at*tiac.net")
  DHCP: How to trace owner; X client? (Frederic Faure)
  Re: Why not C++ (Greg Comeau)
  Re: Network Programming ("Wilbert de Graaf")

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

From: [EMAIL PROTECTED] (Y2K)
Subject: Re: nfs mount a drive on NT to redhat linux?
Date: 29 Jun 1999 11:36:18 PDT

Yes, I do have samba on my linux, and currently I can see directories
on linux from my NT box, which appears as a share drive on my NT.
Basically, I want to do the reverse: I want to be able to see a
directory on NT from my linux so that I can cd into it, and start
running shell scripts etc.

Actually, here's what I really want to do.  I want to install Oracle
on my linux, but I don't have enough space for the sources.  So I want
to put the sources on NT, and then run install on my linux.  I tried
burning the oracle on a cd, but then the files were changed to
read-only, so I couldn't even run the install script from the cd-rom.

Sounds crazy?  Maybe.  There's got to be a way though.

On Tue, 29 Jun 1999 00:26:30 -0400, Jason X Pacheco
<[EMAIL PROTECTED]> wrote:

>i believe u can use pc-nfs on nt to do that...it's probably just easier
>to share the directory on NT and use samba on ur linux box to mount it.
>besides, samba is free :)
>
>good luck
>-jxp
>
>[EMAIL PROTECTED] wrote:
>
>> Is it possible to mount a directory/drive on NT to my linux box so
>> that I can see it on my linux?
>>
>> Is there any NFS server for NT that can do this?


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

From: "Irene ah!" <[EMAIL PROTECTED]>
Subject: Re: MASQ: failed TCP/UDP checksum
Date: Thu, 1 Jul 1999 00:42:47 +0800

I included -vj in /etc/ppp/options, but can't solve this problem
(-vj should be default setting)

"CCP: timeout ..." is not each connect show

(
    )
(

>
>Pass the options "novj" and "novjccomp" to pppd. How this is be done
>does depend on your setup. It could be at the command line or in
>/etc/ppp/options.ppp0 or ... Refer to the script you call to dial for
>where to place the options.
>
>
>Malware



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

From: [EMAIL PROTECTED] (Greg Comeau)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: Why not C++
Date: 30 Jun 1999 13:27:40 -0400
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]> Johan Kullstam <[EMAIL PROTECTED]> 
writes:
>is `alloca' a valid `allocator'?

It's not a standard function if that's what you mean.

>static type checking has nothing to do with anything.  imho it's a
>negative.  static types are more a disadvantage the larger and more
>complex a program gets.

It's certainly an annoyance given you will get a diagnostic if you
let out a decl etc, but I don't see how you can say it is a
disadvantage in a large app.  Certainly if I don't have static types
I would would a static analyzer program, to say the least.

>C++ doesn't have insignificant runtime costs.  when you buy into the
>complexity that C++ offers you, i think a more heavyweight language is
>in order.

Nobody said it was insignificant costs.

>now, i liked C's += -= &c operators.  but how to do it in lisp?  well,
>there are incf and such, but i wanted something bigger.  immagine a
>an operator called _= where on the right hand side _ would be the left
>hand side.
>
>  x _= foo(_);
>
>would be the same as
>
>  x = foo(x);
>
>this is not terribly important when x is just a variable, but if the
>left hand side is complex and involves much pointer chasing like 
>x->y->z->w[5] then having a way to reference it would be a win.
>
>  x->y->z->w[5] _= fabs(_);
>
>could perform
>
>  x->y->z->w[5] = fabs(x->y->z->w[5]);
>
>the first is more clear imho just like += and friends.

Every so often I wish for something like this,
I'm not sure how it fits into this conversation though.....

>  (asetf foo (abs it))
>
>is equivalent to
>
>  (setf foo (abs foo)).
>
>whether asetf or _= are worthwhile ideas is not my point.  my point is
>that in lisp you *can* make an asetf.  in C++, no matter what
>templates you have, you cannot create a new operation like _=.  
>
>also note that in the definition of asetf i used a lisp function
>group.  how do you invoke C++ functions to help you expand a C++
>template?  what about functions which are 99% the same but differ in
>one spot.  how can you make an template-if which could invoke the
>right part based on the type or some aspect of the type being passed?
>
>consider a min function in C++ that you wish to templatize
>
>template <class X>
>X min(
>   X a,
>   Y b)
>{
>   return a < b ? a : b;
>}
>
>how do you use this for classes for which < is not defined?  how would
>you substitute another definition of < if two less-than concepts would
>make sense for a certain class?  perhaps you could pass a function.
>but now < and the alt_less_than function would take different syntaxes
>and hence not work like
>
>  min(a,b,<)  and   min(a,b,alt_less_than)

You've lost me somewhat.  Perhaps some Q's:
* Are you fmiliar with template partial specialization?
* How would you substitute another <?  How you you use this for
  classes (or whatever lisp has) for which < is not defined?

- Greg
-- 
       Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418-3214
     Producers of Comeau C/C++ 4.2.38 -- New Release!  We now do Windows too.
    Email: [EMAIL PROTECTED] / Voice:718-945-0009 / Fax:718-441-2310
                *** WEB: http://www.comeaucomputing.com *** 

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

From: "Chris Bergstrom" <[EMAIL PROTECTED]>
Subject: print to remote nt printer
Date: Wed, 30 Jun 1999 13:25:10 -0400

I am trying to set up RH6.0 to print to an ethernet ready laserjet hp4000
with a que on an NT server.  Ive tried to set up using samba and as a remote
(unix).  but neither will work.  When set up as samba it acts like its
printing but nothing really happens.  When set up as remote, i get an error:
lpr: connect: Connection refused jobs queued, but cannot start daemon.

how should i be configuring this?   server:print1   printer: hp 4000



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

From: "George" <[EMAIL PROTECTED]>
Subject: Linux Web and DNS server possible with one IP?
Date: Wed, 30 Jun 1999 12:31:55 -0700

Hi everybody,

I'm going to have the Basic Plan of Pacific Bell's ADSL service installed in
a few weeks.  I want to put up a Linux web server but that plan does not
give me a domain (and it only gives me one IP).  If I register a domain with
Internic myself, and build my own Linux DNS server, will my web site be
visible to the world?  Are there other alternatives to this?

Please forgive the following "newbie" network question.  When my ADSL gets
installed, I will only have one IP address.  I know that this means that the
Internet connection will come into only one Linux Box.  Is it possible to
put a DNS server, a web server and a proxy/firewall server in the same Linux
box , and use it as my Internet gateway?  --if not, please don't laugh :-)
If I can't do this, what can I do to put up a web site?

Thank you for any help,

George

Email:  [EMAIL PROTECTED]

If replying by email, please remove the "REMOVE-THIS--ANTI-SPAM." from the
email address.





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

From: [EMAIL PROTECTED]
Subject: Should NIS server run ypbind?
Date: Wed, 30 Jun 1999 19:42:31 GMT

Should a NIS server run ypbind like all its client machines?


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: Tom Wojciaczyk <[EMAIL PROTECTED]>
Subject: Re: Newbie: Dialup and ethernet
Date: Wed, 30 Jun 1999 15:43:39 -0400

Make sure you have a static route for your local network 
(ie. 192.168.1.0/24) route out your eth0, and don't specify a default
route.  Let pppd establish a default route for all other than the local
network.  

Wally McClure wrote:
> 
> Hello all.  I am a new Linux user.  I have Caldera Open Linux 2.2.  I have
> an ethernet connection to my local network and a dialup connection to the
> internet through a modem (USR 56K).  The problem is that I can not use both
> at the same time.  If I want to connect to my network, I can not dial out to
> the internet.  When I want to dial out to the internet, I have to disable my
> ethernet connection and reboot.  If I attempt to dialup when connected to my
> network, I can not access anything concerning the internet.  When I run a
> traceroute, I recieve a really large round trip to my local system.  I would
> like to be able to use both at the same time.  Any info to make this happen
> is greatly appreciated.
> 
> Wally

-- 
=============================================================
:Tom Wojciaczyk, Network Engineer
:Cisco Systems, Inc.
:(804) 762-5535

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

From: kite@NoSpam.%inetport.com (Clifford Kite)
Subject: Re: Setting up PPP
Date: 30 Jun 1999 10:56:28 -0500

[EMAIL PROTECTED] wrote:

: login name that might work, but the said no.  I tried everything, i
: thought maybe that the system interpreted the @ as a separation between
: username and password, so being a programmer, i tried
: 389154024\@worldnet.att.net  But nothing works!  Can anyone tell me why,
: any experience with Worldnet?  Thanx in advance!

The login/password likely isn't for most users, I think Worldnet uses
CHAP authentication.

This may help with CHAP (md5) configuration:

http://axion.physics.ubc.ca/ppp-linux.html


--
Clifford Kite <kite@inet%port.com>                    Not a guru. (tm)
/* My confidence in this answer (X), on a scale of 1 to 10:
   |----|----|----|----|----|----|----|----|----|----|
   0----1----2----3----4----5----6----7----8----9----10 */


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

From: [EMAIL PROTECTED]
Crossposted-To: comp.unix.admin
Subject: Re: REQ:A telnet session logger.
Date: Wed, 30 Jun 1999 20:46:29 GMT


  on telnet session first 40 byes are reserved for the command
options.. it will say things like.  what is your current tab size,
what encryptions are you using, etc.. 

  if you are trying to display this kind of options, you will get all
kind of nasty character's that are really really hard to read (unless
you have all the RFC memorized)..

  if you know how to program little bit, you can delete the first 40
byes of data on the each session, so that all you see is more
important info..

  I have personally never used netcat, so I can't really tell you what
they do, but if netcat grabs all the packet information (in telnet)..
above explaination is correct..

>Hi, guys,
>I'm playing with netcat (nc-1.10) for a solaris 2.6 on Ultrasparc IIi.
>Maybe there are other ways to do logging on telnet sessions. I'm
>very new to sysadm. Thanks for help. There's gotta be a better
>way of doing this.
>
>The netcat's compiled with the -DGAPING_SECURITY_HOLE
>to make it able to excute a file.
>
>And it seems like it's very close to working, but cannot get it done
>with:
>1. comment the /etc/inetd.conf telnet line. Also the /etc/services 
>2. kill inetd and restart. port 23 freed.
>3. nc -l -v -p 23 -e /usr/local/bin/bash >telnetlog 2>&1
>
>I get this on the server:(looks okay)
>
>       listening on [any] 23 ...
>
>And then telnet to the port 23 of this Ultrasparc from some other
>machine. I get:
>       Connected to xxx.xxx.xxx,
>       Escape character is '^]'.
>And nothing more. Good thing is that I get the log on the server side.
>       connect to [xxx.xxx.xxx.xxx] from AAA.AAA.AAA.AAA
>       [xxx.xxx.xxx.xxx] 5751
>
>And I don't even get the real output. (The telnet session content).
>Just the 2>&1 content.
>       
>       


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

From: "Bob Glover" <app1rtg_at_air.ups.com>
Subject: Re: Linux - Win networking
Date: Wed, 30 Jun 1999 16:45:24 +0100

[EMAIL PROTECTED] wrote in message <7lc8ft$4oi$[EMAIL PROTECTED]>...
>I read the IPCHAINS HOWTO and can't quite figure
>out how to translate ipmasqadm or ipfwadm
>commands to ipchains.  I'm trying to set up my
>system to permit any internal ip to go out and
>deny all inbound, except for port 80, 1494, 1604
>and those should be redirected to 10.1.1.3.
>
>So far I've got:
>ipchains -P forward DENY
>ipchains -A forward -i eth0 -j MASQ
>echo 1 > /proc/sys/net/ipv4/ip_forward
>
>and want to add the following translated:
>ipmasqadm portfw -a -P tcp -i eth0 80 -R 10.1.1.3
>80
>ipmasqadm portfw -a -P tcp -i eth0 1494 -R
>10.1.1.3 1494
>ipmasqadm portfw -a -P tcp �I eth0 1604 -R
>10.1.1.3 1604
>
>*eth0 = external interface
>*eth1 = internal interface


Well, in my previous post I glossed over how my firewall rules are really
set up.  But since you asked, I treat packets differently based upon which
device they came from.  It seems easier to me that way.  For example, the
input rules:

# Note, some of the syntax here may be wrong because I'm doing this from
memory.

# safety first!  now you must explicitly accept any packet types or they get
denied
ipchains -P input DENY

# first create user-defined chains for each network interface.
# You can think of user-defined chains as subroutines of a sort (if that
helps)
ipchains -N ppp0-in
ipchains -N eth0-in
ipchains -N eth1-in

# now divert the packets into a chain based upon the device they came in on
ipchains -A input -i ppp0 -j ppp0-in
ipchains -A input -i eth0 -j eth0-in
ipchains -A input -i eth1 -j eth1-in
ipchains -A input -i lo -j ACCEPT

#############################################################
# now let's apply rules for eth0 (lets say it has an IP/netmask of
192.168.99.1/24)

# we should still try to prevent spoofing
ipchains -A eth0-in -s ! 192.168.99.0/24 -j DENY

# now apply other rules that accept the packet types that you want
ipchains -A eth0-in -s 0/0 -p http -j ACCEPT
# i'm not going to enumerate anymore, you get the idea

# finally add a rule to deny anything that was not excplicitly accepted.
why?
# Because it bothers me if I can't tell where the 37 packets that were
denied
# by the default policy came to me from.  This let's me know where the
# packets are comming from by doing 'ipchains -nvL eth0-in'
ipchains -A eth0-in -j DENY

I suggest that you do something similar.  As for port forwarding, I haven't
used that before, so I can't be much help.  You seem to be on the right
track though.

Good luck and don't fear the Penguin!



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

From: "Rich Sena ras*at*tiac.net" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux
Subject: Re: Banner after print job.
Date: Wed, 30 Jun 1999 09:11:55 -0400

Tozz - they're right - I telneted to our jet-direct boxx and set 
'banner: 0' and it stopped printing the banners - lpd was doing it's thing
correctly and honnoring the :sh: directive but the print spooler (we use
an HP Jet Direct box) was adding the banner - and it was only doing it for
the linux boxen - not the wintel's - but they use a special client/driver
that might have a client specific on/off switch...

Thanks for the help all...

-- 
<T.I.A.C.>
There Is A Cabal

On Wed, 30 Jun 1999, Tozz wrote:

==>Like I said before, I'm 100% procent SURE it's coming from the linux box!
==>
==>You see, when I install th printer directly (sending directly to the
==>printer, instead of linux) I don't got the problem.
==>
==>It's really linux...
==>
==>[EMAIL PROTECTED] wrote in message <7lcade$594$[EMAIL PROTECTED]>...
==>>In article <[EMAIL PROTECTED]>,
==>>  "Rich Sena ras*at*tiac.net" <[EMAIL PROTECTED]> wrote:
==>>> Actually defining :sh: in the printcap *should* do it - but it does
==>>not...
==>>> - the only thing that I can think of - is because redhat's printool is
==>>> redirecting to a filter file with an if (input filter)
==>>> statement :if=/var/spool/lpd/lp/filter: *and* since in the
==>>> man page and HOWTO it is specifying :sh: as the final argument in the
==>>> entry - it is ignoring it...  don't know if that floats - I played
==>>with
==>>> positioning it before and after the filter redirections tyo no avail -
==>>it
==>>> may need to be defined in that actual filter itself...
==>>
==>>
==>>hi guys,
==>>
==>>someone pointed it out already, i'm just a repeater:
==>>( let me tell you, it worked for me!!)
==>>if the page comes AFTER the printjob, this is from the printer(box,
==>>maybe) NOT from the spooler!!!
==>>so telnet to your printer(box) and look at the configuration.
==>>btw, what puzzled me, the same printer did NOT print any extra pages
==>>when printing from winnt.
==>>
==>>
==>>Sent via Deja.com http://www.deja.com/
==>>Share what you know. Learn what you don't.
==>
==>
==>
==>


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

From: [EMAIL PROTECTED] (Frederic Faure)
Subject: DHCP: How to trace owner; X client?
Date: Wed, 30 Jun 1999 19:36:13 GMT
Reply-To: [EMAIL PROTECTED]

All,

        We're currently using ISC's dhcp daemon to give out fixed IP
addresses and other infos. The reason we do this instead of just
building a pool, is that the latter makes it difficult to monitor the
network using eg. NetWatch.

        I was thinking of changing this by giving out dynamic
addresses from a pool, and have the daemon write the MAC address of
the requester into a file. Then, all I'd have to do to know who is
doing what on the network, is to grep through this file, and look up
the name of the person who owns the NIC. Is there a better way? 

Having to add an entry in dhcpd.conf, and entries in the DNS every
time we         add a host on the network, and update those files
whenever a NIC moves to another host is a pain.

        Also, is there an ncurses- or X-based client to work with the
above configuration files more easily?

Thanks for any info,
FF.
--
The system required Windows 95 or better, so I installed Linux!

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

From: [EMAIL PROTECTED] (Greg Comeau)
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: Why not C++
Date: 30 Jun 1999 14:19:59 -0400
Reply-To: [EMAIL PROTECTED]

In article <7l6a5b$ueh$[EMAIL PROTECTED]> Bernd Eckenfels <[EMAIL PROTECTED]> writes:
>In comp.os.linux.networking Johan Kullstam <[EMAIL PROTECTED]> wrote:
>>> ... you will end up with identical machine code, no matter whether you
>>> compile with the C compiler, or compile with the C++ compiler (using the
>>> same C compiler as the back end).
>
>sure, but if you have virtual functions, then those need a lookup. I think
>it is measured between 2-30%. This is True for Eiffel Compilers who generate
>C from Eiffel code, too.
>
>In theory there is no overhead if you dont use C++ Features, but then
>again.. it is not faster as C.

This thread continues to be ridiculously narrow-minded and biased.
Has it dawned on you that to use the equivalent of virtual functions
in C also requires a lookup?  And that would also be measured 2-30%?
Sigh.

- Greg
-- 
       Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418-3214
     Producers of Comeau C/C++ 4.2.38 -- New Release!  We now do Windows too.
    Email: [EMAIL PROTECTED] / Voice:718-945-0009 / Fax:718-441-2310
                *** WEB: http://www.comeaucomputing.com *** 

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

From: "Wilbert de Graaf" <[EMAIL PROTECTED]>
Subject: Re: Network Programming
Date: Thu, 1 Jul 1999 08:22:58 +0200

Michael,

The book that covers unix network programming is

    "Unix Network Programming 2nd Edition", W.Richard Stevens

and I'm -sure- you won't be disappointed. But there are good sources on the
net too. This is one of them:

    http://www.gerhardmuller.de.docs/UnixCommunicationFacilities/ip/

- Wilbert



Michael Koops wrote in message
<[EMAIL PROTECTED]>...
:Hi,
:
:does some documentation exist in the net about network programming ? If
yes,
:where can I get it ?
:
:Thanks,
:Mike
:-------------------------
:[EMAIL PROTECTED]



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


** 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