Linux-Networking Digest #402, Volume #10          Sat, 6 Mar 99 18:13:45 EST

Contents:
  efficient access counter for Apache 1.3 on Linux ? ("Cameron Spitzer")
  Re: How can I stop my eth1 network card ("Clemens Hlauschek")
  VPN and IP Masquerading (Patrick Clauberg)
  Re: Samba Question (David Kirkpatrick)
  bind-8 & dns nameserver mystery (Duncan Family)
  Re: Samba Question ("Rocky")
  Exchange Server Public Folder Alternative. ("Alvin")
  RH 5.1 - ipfwadm error - ip masq (Joseph Schwarz)
  Re: 3Com 905 (Eric Whitten)
  Re: How do I boot Monitor-less 486 without a login and then... ? (Super C5)
  Re: dls faster in Windows!! (Richard Steiner)
  DNS configuration (Roberto Boldori)
  Re: Won't let me telnet into RedHat 5.2 Telnet as root, Whare are the configureation 
files for this? (Super C5)
  init script for sshd? (RedHat 5.2 Linux) (Georg Schwarz)
  Re: IPv6 and Internet2? (omegapi)
  Re: How to telnet as root (eric whitten)
  Re: Using mgetty and diald on same line ("Charles Stack")
  alas!  another IP masq question (mbh)
  Re: Linux as a router to replace school NT4 box? (Stefano Del Cont)

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

From: "Cameron Spitzer" <[EMAIL PROTECTED]>
Subject: efficient access counter for Apache 1.3 on Linux ?
Date: 6 Mar 1999 21:08:58 GMT

Before mod_perl came along, the Apache Web server uesd to have 
a counters module.  It seems mod_perl has obsoleted that,
and the "portable" (not Linux-specific) advice is to write access counters
in Perl and run them through mod_perl.  But I didn't see any perl
counters there.

What's the most efficient way to count accesses in real time?
We do not need an on-the-fly GIF counter that looks like an odometer,
labelmaker tape, or decorative house numbers.
A plain text file containing the count and visble through the server
would suffice.

If I just open a file, read a number out, increment it, and write it
back, is Linux going to generate disk writes each time, or is that
all copy-back cached in ext2?

If I do that, should I use lockf or flock (or what?) to serialize
the operation?  Which is better?

TIA,
Cameron

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

From: "Clemens Hlauschek" <[EMAIL PROTECTED]>
Subject: Re: How can I stop my eth1 network card
Date: Sat, 6 Mar 1999 22:13:23 +0100


Holger von Ameln schrieb in Nachricht <[EMAIL PROTECTED]>...
>dave wrote:
>>
>> I have two network cards. One eth0 is for my Intranet and eth1 is for my
>> Internet connection.  I want to disable my Internet eth1 connection when
I am
>> not using my computer.  I can do this in X with the network configuration
tool
>> but I want to disable/enable from the command line.  I am using kerneld.
>>
>> Using RedHat 5.2
>
>ifconfig eth0 down

Isn't it nicer to use ipfwadm (man ipfwadm) to block the network traffic?
(you must have Firewall support compiled into your kernel)



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

From: [EMAIL PROTECTED] (Patrick Clauberg)
Subject: VPN and IP Masquerading
Date: Sat, 06 Mar 1999 21:17:49 GMT

Hi,

can I access a distant net via VPN being connected through
IP-Masquerading?

i there a howto or anything?

tnx

Patrick


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

From: David Kirkpatrick <[EMAIL PROTECTED]>
Subject: Re: Samba Question
Date: Sat, 06 Mar 1999 16:07:19 +0000
Reply-To: [EMAIL PROTECTED]

Map network driver on 98.  \\linuxmachine\linuxdrivename.  Did
you set samba passwords?
Look at man smbpasswd.  Encryption yes.
If you network is setup then you should be seeing at least an
icon for the linux machine on 98.  When your map a linux drive it
will just "show up" in say explorer as another folder you can
open and the same in WP or Word.  To print a file from the 98
side you just send it to your printer.  
  For setup for linux to print on 98 I'm not sure.  Hopefully
someone with more experience will pipe in.  The setup for the
printer off linux for remote machines was fairly easy and for
Samba to send files over to MS should be also.  There is a
section on this in the HOWTO for SMB see /usr/doc/SMB-HOWTO.
d

Rocky wrote:
> 
> I'm relitively new to samba, and have configured smb.conf and all of that,
> now I was just wondering, how to use it.  How do I access windows98 files
> from linux and print from linux on a printer hooked-up to the 98 machine,
> and vice-versa.
> 
> -thanks

-- 
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

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

From: Duncan Family <[EMAIL PROTECTED]>
Subject: bind-8 & dns nameserver mystery
Date: Sat, 06 Mar 1999 21:14:41 +0000 (GMT)

We have set up bind-8 on a machine so that it works correctly 
and nslookup gives correct results. Other machines on the
network can use the nameserver and get correct results back. 
No packages on the machine running bind-8 though can use the 
nameserver. Squid returns DNS lookup failed, any telnet attempts 
return Uknown host instantly (no delay) even though nslookup 
returns a correct result for the same hostname. Changing the 
resolv.conf file so that it uses another name server (the 
freeserve one) directly gives the same results. Has anyone got 
any ideas as to why other machines can use the nameserver for DNS 
lookup but packages on the nameserver machine cannot use it or 
any other nameservers?

System details are as follows

S.u.S.E Linux v6
kernel v2.0.36
3 machines networked using ethernet cards connected to
  the internet via a ppp link over a modem (Freeserve isp)

/etc/hosts

127.0.0.1       localhost
192.168.0.1     cecil.caythorpe.net     cecil
192.168.0.2     archie.caythorpe.net    archie
192.168.0.3 wolfman.caythorpe.net       wolfman

/etc/hosts.allow

ALL: 192.168.0.0/255.255.255.0
ALL: 255.255.255.255 0.0.0.0
ALL: 127.0.0.1/255.0.0.0

/etc/host.conf

order hosts bind
multi on

/etc/resolv.conf

search caythorpe.net
nameserver 127.0.0.1

The nameserver works fine but the packages don't seem to
use it. So what comes between, say Squid and the nameserver?
Has anyone any ideas as to what is wrong?

TIA.

-Gareth



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

From: "Rocky" <[EMAIL PROTECTED]>
Subject: Re: Samba Question
Date: Sat, 6 Mar 1999 15:26:38 -0600

The Linux box does show up in Network Neighborhood, but when I try to map
the linux from 98, it prompts a passwords and none work, where do you setup
up paswords.
-Rocky

Rocky wrote in message ...
>I'm relitively new to samba, and have configured smb.conf and all of that,
>now I was just wondering, how to use it.  How do I access windows98 files
>from linux and print from linux on a printer hooked-up to the 98 machine,
>and vice-versa.
>
>-thanks
>
>



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

From: "Alvin" <[EMAIL PROTECTED]>
Subject: Exchange Server Public Folder Alternative.
Date: Tue, 2 Mar 1999 03:13:28 +0800

Hi,

Is there an exchange server public folder alternative for linux??



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

From: [EMAIL PROTECTED] (Joseph Schwarz)
Subject: RH 5.1 - ipfwadm error - ip masq
Date: Sat, 06 Mar 1999 21:27:23 GMT


I am in the process of moving my ip masq setup from a intel machine
running redhat 5.0 (recompiled kernel 2.0.36) to a alpha machine
running redhat 5.1 (recompiled kernel 2.0.36). My local net is
192.168.1.0 I am pointing my workstations to the alpha machine as
their gateway.

IP masq on the intel box works fine, I have two rules setup in 
/etc/rc.d/rc.local, and load a couple of modules:

# IP Masquerading Policies
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0

# IP Masquerade Modules
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc

When I run these same rules on the alpha machine, 
   /sbin/ipfwadm -F -p deny
works fine, (checked with ipfwadm -F -l) but 
   /sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
returns with the error:
   ipfwadm: setsockopt failed: Invalid argument

Any option I try to "append" using the -a or "insert" using -i command
of ipfwadm -F fails.

I have pointed the other machines on the local net to use the new
gateway address.  ppp on both machines works fine, and ip forwarding
is enabled.

Has anyone seen this before?  I hope there is something simple I
overlooked in the config on the alpha machine, but I have been over it
several times and can't find anything.  The mini-HOWTO doesn't seem to
address this either.

The intel machine is using ipfwadm-2.3.0-5.i386.rpm and the alpha
machine is using ipfwadm-2.3.0-6.alpha.rpm, both from ftp.redhat.com.

Any help would be apprciated.
Thanks in advance!!
Joe
[EMAIL PROTECTED]

==================================================
Joe Schwarz
Milwaukee, WI
E-Mail: [EMAIL PROTECTED]
Web: http://www.execpc.com/~jschwarz

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

From: Eric Whitten <[EMAIL PROTECTED]>
Subject: Re: 3Com 905
Date: Sat, 6 Mar 1999 16:19:30 -0500

On Sat, 06 Mar 1999, etienne grossmann wrote:

>  Also, does your network card have both BNC and RJ-45 ? I can only
>get mine (a 3c900) to function with the BNC. See the other 3cXXX
>threads on this newsgroup.
>

        I was just recently researching what network card to buy for my linux
server.  According to the 3c905x pdf file I downloaded, all of their cards
except for the Fast Ethernet XL 3C905B-COMBO(PCI) will work.
        Good luck.
                                        

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

From: [EMAIL PROTECTED] (Super C5)
Subject: Re: How do I boot Monitor-less 486 without a login and then... ?
Date: 6 Mar 1999 22:00:28 GMT

I don't know why you wouldn't want the linux machine to ask for a login.  You
can telnet to it without anyone being logged into it as long as you have it
setup on the network.  I have a 3 computers setup in a similar way.  Two of
which are Win98 machines (I know...I know) and then a little 486 that I hardly
ever look at except with telnet.  Although I'm not sure if your going to be
able to mount your second hard drive on your P II system without booting into
linux on the new one.   The reason for that being that Windows can't (or at
least not of my knowledge) see a linux partition.  So therefore you can't share
what you don't have....ya see what I mean.  You might could put the second hard
drive in your 486 if you know how or know someone that does.  The only problem
there is your 486 might not be able to recognize it if it's too big.
I hope I was of some help to you.

Daniel

>I have a shiny new PII with two hard disks, the first with windows 98
>and the second with Redhat 5.1. networking (soon) with my faithful old
>486.  I want the 486 to boot without asking for a login and password,
>being monitorless.  The purpose being that I want to telnet (or if there
>is something better...?) from Windows on the PII to a minimal Linux
>installtion on the 486 which will have the PII's Linux partitions
>mounted on it allowing me to use the programs on the PII.
>
>Is there a more efficient way to do this?  I would appreciate any
>pointers in the right direction, thanks.
>
>
>Ian P.
>
>[EMAIL PROTECTED]
>[EMAIL PROTECTED]
>
>
>
>
>
>
>



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

From: [EMAIL PROTECTED] (Richard Steiner)
Subject: Re: dls faster in Windows!!
Reply-To: [EMAIL PROTECTED]
Date: Mon, 01 Mar 1999 09:43:15 GMT

Here in comp.os.linux.networking, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> spake unto us, saying:

>My download speeds are terrible when compared to Windows. In fact,
>my Windows PC delivers better performance with a 33.6k than my RH
>box delivers with a 56k.

How are you measuring performance?

-- 
   -Rich Steiner  >>>--->  [EMAIL PROTECTED]  >>>---> Bloomington, MN
    OS/2 + Linux (Slackware+RedHat+SuSE) + FreeBSD + Solaris + BeOS +
    WinNT4 + Win95 + PC/GEOS + MacOS + Executor = PC Hobbyist Heaven!
                  The Theorem Theorem: If If, Then Then

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

From: Roberto Boldori <[EMAIL PROTECTED]>
Subject: DNS configuration
Date: Sat, 06 Mar 1999 18:08:23 +0100

Hi all,

I have a RedHat 5.0 Linux installed on my PC and I also have PPP
connection (dinamic IP) with my ISP. I would like to configure
the my own local DNS even though my ISP has his one. This because
it allows me to implement further services.

I have already read both NET-3-HOWTO and NAG, now I have some
questions:

1. According to NAG I just have to modify some files
(/etc/resolv.conf and /etc/hosts) to configure to have the name
resolver working properly. I expected to also add a deamon in the
init process. Am I right ?

2. I am not sure that I have installed the DNS when I setup my
Linux box, how can I be sure that everything has been installed ?

3. Which is the diferences between BIND and named ? Acconrding to
NAG and HOWTO they seem to be two different program that both
perform name resolving. In this case which is the best (in your
opinion) ?



TIA,
Roberto.
______________________________________________________________
Roberto Boldori                    [EMAIL PROTECTED]
                                   [EMAIL PROTECTED]
______________________________________________________________


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

From: [EMAIL PROTECTED] (Super C5)
Subject: Re: Won't let me telnet into RedHat 5.2 Telnet as root, Whare are the 
configureation files for this?
Date: 6 Mar 1999 22:09:08 GMT

It's easy if you know how to edit a file.
Edit the file /etc/securetty  and add your ttyp# 
# = 0 - whatever.  I only put ttyp0 and ttyp1, but the problem is if a user
logins before you do then they get the first grabs at the next empty ttyp#. 
It's best if you don't do it at all unless you've got a *secure* network such
as a home network.
I hope this was of help to you.

Daniel

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

From: [EMAIL PROTECTED] (Georg Schwarz)
Crossposted-To: comp.security.ssh
Subject: init script for sshd? (RedHat 5.2 Linux)
Date: Sat, 6 Mar 1999 23:10:00 +0100

Has anybody written a "System V style" startup script (for init.d) for
sshd? (I'm using RedHat 5.2 Linux) I've copied and modified RedHat's
rwhod script, but I'm not sure whether stopping will always work
correctly (because unlike rwhod, there can be several sshd processes
running if people are currently logged in that host with ssh).

-- 
Georg Schwarz     [EMAIL PROTECTED], [EMAIL PROTECTED]
Institut f�r Theoretische Physik       +49 30 314-24254, FAX -21130
Technische Universit�t Berlin        http://home.pages.de/~schwarz/

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

From: omegapi <[EMAIL PROTECTED]>
Subject: Re: IPv6 and Internet2?
Date: Sat, 06 Mar 1999 17:07:00 -0500
Reply-To: [EMAIL PROTECTED]

IPv6 is a new IP addressing scheme that government is workig on.  It
uses 128-bit addressing rather than 32-bit addressing.  If they succeed,
and they eventualy will, all the computers in the world are going to
have to change their addresses, like for example 199.129.110.32 to
128-bit addressing scheme.  It means that there will be no need for
subnetts or supernetts.  It is very ingenious.  If you need more
information read some TCP/IP books. I recomend TCP/IP Addressing.

Examples:

IPv4 (Internet Protocol version 4):
128.0.0.0 is this in binnary
1000 0000 0000 0000 0000 0000 0000 0000 or 32-bit binnary.
There is no enough numbers that come out of this to accomodate all the
new computers in the world, so we, the network professionals have to
come up with subnets ( I am not going to go into this one if you don't
know what subnet is).

IPv6 (Internet Protocol version 6):
128.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 or in binnary
1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000
I hope you get the picture, how many more computers can be accomodated.
Does this answer your question?

Building on the tremendous success of the last ten years in generalizing
and adapting research
Internet technology to academic needs, the university community has
joined together with
government and industry partners to accelerate the next stage of
Internet development in academia. The Internet2 project is bringing
focus, energy and resources to the development of a new family of
advanced applications to meet emerging academic requirements in
research, teaching and learning. Internet2 universities, working with
industry, government and other research and education networking
organizations are addressing the major challenges facing the next
generation of university
networks by:

     First and most importantly, creating and sustaining a leading edge
network capability for the national research community, Second,
directing network development efforts to enable a new generation of
applications to fully exploit the capabilities of broadband networks,
and Third, working to rapidly transfer new network services and
applications to all levels of
educational use and to the broader Internet community, both nationally
and internationally.

If you need more info on Internet2 visit their official web site at
www.internet2.org.


Wire the Planet

OmegaPI

AhYap wrote:

> Can anyone tell me what is IPv6 and
> Internet2???
>
> thanx


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

From: eric whitten <[EMAIL PROTECTED]>
Subject: Re: How to telnet as root
Date: Sat, 06 Mar 1999 16:58:59 -0500
Reply-To: [EMAIL PROTECTED]

If you really really want to just telnet in as root, you could just edit
/etc/securetty, adding ports like ttyp0 and ttyp1, you get the idea.
                                                -Eric Whitten

<><><><><><><><>
"Reach out and grep someone."
<><><><><><><><>

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

From: "Charles Stack" <[EMAIL PROTECTED]>
Crossposted-To: de.alt.comm.mgetty
Subject: Re: Using mgetty and diald on same line
Date: Sat, 06 Mar 1999 22:34:17 GMT

mgetty, I believe, has the ability to look for a special lock file.  When it
is present, mgetty won't take control of the line.  Read the mgetty docs for
more on this subject...

Charles





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

Date: Sat, 06 Mar 1999 16:29:26 -0600
From: mbh <[EMAIL PROTECTED]>
Subject: alas!  another IP masq question

Hello Fellow Mandrake 5.2 users.

I have the following setup:

RH5.2/Mandrake:  runs fine, can ping www.yahoo.com and both it's 3c503
cards (ISA).
eth0 is cable modem connection, eth1 is intranet at 192.168.1.1  again,
linux can ping both
and the internet.

Win 95 (two of these):  3c503 (ISA) cards, can ping themselves and each
other through my
Linksys hub. (192.168.1.2 & 3)

But, guess what?  Linux can't ping either of the Win95 machines.

Now, I've read several documents and visited several web pages....I
can't figure out what's not
right.  BUT,

eth0 shows a little green light on always, as long as power is on;
flashes amber when I ping it.
eth1 shows no light at all, even when I ping it.

both show up in my boot sequence and all the /etc/blah blah blah files
are copied right off the internet.
I haven't setup the ipfwadm stuff yet.  I figger I'll get to that once I
can ping the Win95 machines.

Also, while I'm here, adduser doesn't seem to work like it did with
slackware 3.0 and usercfg wasn't
installed apparently.  I haven't read up on glint or rpm yet.  Is it
worth it to get usercfg?

Heck, I thought it installed everything on the CD !

Thanks for any help.   kde v1.0 needs help.

mbh


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

From: Stefano Del Cont <[EMAIL PROTECTED]>
Subject: Re: Linux as a router to replace school NT4 box?
Date: Sat, 06 Mar 1999 23:31:48 +0100

Andy wrote:

> Hi,
>
> We have just configured a NT4 box to route between two subnets on our school
> LAN, however as the current setup with the NT4 box is tying up a machine we
> are wondering if we could run linux on a old 486 or 386 todo the routing.
>
> Should configuring a Linux box to do this be fairly straightforward and
> would a 386 /486 cope with network traffic (about 60 pc's across both
> subnet's).
> Regards,
>
> Andy

  Hi Andy,

I have installed a Linux router connecting two subnets with about 20 and 100
nodes. The hardware is an old  '486/66 with no hardisk, no monitor, and no
keyboard. It works very fine. On this router I have also configured IPX
routing, firewalling and masquerading services. The entire Linux software is
located on a single bootable floppy disk. I found all needed informations on
the commonly available HOWTOs.

Ciao
Stefano



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


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