Linux-Networking Digest #763, Volume #9           Sun, 3 Jan 99 06:13:35 EST

Contents:
  Re: lpd won't accept print jobs from other machines (Tim Lines)
  Re: hub doesn't light up, but NIC DOES!!? ("Bob Fahey [[EMAIL PROTECTED]]")
  Re: Newbie Question - net.jpg (0/1) ("mct1")
  How to wake-on-lan ? (Job eisses)
  Re: Apache - Virtual Host or /etc/hosts (Mark Worsdall)
  Re: Traffic Shaping info? (Paul Golubev)
  SLiRP, pppd, telnet ("Peter J. Van Der Maas")
  Re: Installing RH5.1 from a win95 machine ("Bertie Price")
  Has anyone had any luck with port forwarding (Alan Strader - Megsinet)
  EQL/MultilinkPPP; ~100kbps=2 x 56k modems? (Kaz Morishita)
  Re: is it always necessary to bind() before connect()? (L J Bayuk)
  Re: smbmount failing (Jayasuthan [VorHacker])
  Re: graphical login screen?? (Jarek Luberek)
  Can ping IP address but not server name??? ("Bertie Price")
  Re: AF_UNIX (MP - Netvision)
  Re: How to use 2 DNS servers ? (Brian McCauley)
  Re: AF_UNIX (L J Bayuk)
  SNA for Linux?? (Eddie)
  Re: Restrict login by remote host (Stuart R. Fuller)

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

From: Tim Lines <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: lpd won't accept print jobs from other machines
Date: Sat, 02 Jan 1999 17:33:06 -0800

Your hosts.allow line looks alright to me (after a quick RTFM).  What did you put in 
hosts.lpd?  My print server is running
Caldera 1.2.  The client I'm typing this from runs Redhat 5.1.  With a standard BSD 
lpd an lpd.hosts with a single line with "+"
would be both necessary and sufficient ( I say this after spending the better part of 
a day earlier this week configuring a BSD
lpd to run under solaris 2.6 - compiling under GCC vs Sun workshop compilers solved 
most of that problem).  I looked at my
caldera print server and found NO hosts.lpd file whatsoever.  This leads me to believe 
I am NOT running a BSD derived lpd.

(Excuse me while I look at www.caldera.com and www.redhat.com)

I'm back now.

www.caldera.com tells me I'm running LPRng  (that's funny, I still have most of my 
hair).  "man lpr" mentions LPRng.  Pretty good
confirmation.

I can't find any mention on www.redhat.com but a "man lpr" on my redhat machine 
returns something that looks a WHOLE LOT like a
standard BSD man page.

Conclusion:  I believe you are running a standard BSD lpd and I am not.  This leads me 
to believe that a hosts.lpd that looks
like:

+

should be enough to get you by.  I don't think hosts.allow or hosts.deny will be 
consulted by your BSD lpd and are therefore
irrelevant to the current discussion.

Give it a try.  Let me know whether it works or not.  I'm always trying to learn.


John R Carlisle wrote:

> I have redhat 5.2 set up on a workstation with a local printer configure through 
>printtool.  I want to send print jobs from one
> other machine.
>
> I've done the following things.
>
> placed and entry in hosts.lpd and hosts.equiv
> placed the "ALL: ALL" line in hosts.allow.  hosts.deny is empty
> restarted the machine after I'd made the changes
>
> the workstation still refuses to allow the connection.  Any help would be 
>appreciated.
>
> Thanks
> John Carlisle


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

From: "Bob Fahey [[EMAIL PROTECTED]]" <[EMAIL PROTECTED]>
Subject: Re: hub doesn't light up, but NIC DOES!!?
Date: Sun, 3 Jan 1999 02:18:42 -0500

This is a multi-part message in MIME format.

=======_NextPart_000_008C_01BE36BF.62068340
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ahmed,
   Please recompile your kernal with the NIC card included, not as a =
module (besides, you need the NIC most of the time anyway, no?).  It =
works alot better that way for some reason. =20
Bob sends

    Ahmed Aden wrote in message <[EMAIL PROTECTED]>...
    I have encountered some difficulty getting my NIC Card (NETGEAR =
FA310TX, 100Mbps) to appear visible to my hub.  My card, from what I've =
been told uses the DEC tulip driver, so I included it as a modular =
driver on my Linux machine(Slackware 3.5 kernel 2.0.34).  Upon boottime, =
I get the following 2 important & relevant lines after the "Updating =
module dependencies" line:=20
    #Other irrelevant modules being loaded, then...=20
    tulip.c:v0.88 4/7/98 [EMAIL PROTECTED]=20
    eth0:  Lite-On 82c168 PNIC at 0xf800, 00 a0 cc 3a 51 53, IRQ 9.=20

    My NIC lights up only once thereafter, but the corresponding light =
on my hub never lights up. I've used the wire on another PC as well as =
attaching another known good one to it, so I know the wiring's good.  =
The hub (NETGEAR Fast Ethernet hub) seems to work fine on 2 other =
machines it's connected to. Does anybody have any suggestions as to =
where to look to find out what could be causing this problem?  Please =
e-mail me at:  [EMAIL PROTECTED] as well as crossposting to the newsgroup. =
 Any help would be greatly appreciated.=20


=======_NextPart_000_008C_01BE36BF.62068340
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 =
Transitional//EN">
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#c8e0d8>
<DIV><FONT color=3D#000000 size=3D2>Ahmed,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT><FONT size=3D2>&nbsp;&nbsp; =
Please=20
recompile your kernal with the NIC card included, not as a module =
(besides, you=20
need the NIC most of the time anyway, no?).&nbsp; It works alot better =
that way=20
for some reason.&nbsp; </FONT></DIV>
<DIV><FONT size=3D2>Bob sends</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
    <DIV>Ahmed Aden<[EMAIL PROTECTED]> wrote in message &lt;<A=20
    =
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</=
A>&gt;...</DIV>I=20
    have encountered some difficulty getting my NIC Card (NETGEAR =
FA310TX,=20
    100Mbps) to appear visible to my hub.&nbsp; My card, from what I've =
been=20
    told uses the DEC tulip driver, so I included it as a modular driver =
on my=20
    Linux machine(Slackware 3.5 kernel 2.0.34).&nbsp; Upon boottime, I =
get the=20
    following 2 important &amp; relevant lines after the =
&quot;<B>Updating=20
    module dependencies</B>&quot; line: <BR>#Other irrelevant modules =
being=20
    loaded, then...=20
    <P><B>tulip.c:v0.88 4/7/98 [EMAIL PROTECTED]</B>=20
    <BR><B>eth0:&nbsp; Lite-On 82c168 PNIC at 0xf800, 00 a0 cc 3a 51 53, =
IRQ=20
    9.</B><B></B>=20
    <P>My NIC lights up only once thereafter, but the corresponding =
light on my=20
    hub never lights up. I've used the wire on another PC as well as =
attaching=20
    another known good one to it, so I know the wiring's good.&nbsp; The =
hub=20
    (NETGEAR Fast Ethernet hub) seems to work fine on 2 other machines =
it's=20
    connected to. Does anybody have any suggestions as to where to look =
to find=20
    out what could be causing this problem?&nbsp; Please e-mail me =
at:&nbsp;=20
    [EMAIL PROTECTED] as well as crossposting to the newsgroup.&nbsp; Any =
help=20
    would be greatly appreciated. </P></BLOCKQUOTE></BODY></HTML>

=======_NextPart_000_008C_01BE36BF.62068340==



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

From: "mct1" <[EMAIL PROTECTED]>
Subject: Re: Newbie Question - net.jpg (0/1)
Date: Sat, 02 Jan 1999 17:30:32 GMT


User wrote in message <368d96a0.3033415@news>...
>Hi,
>
>I have a small expiremental LAN setup in my basement with the
>cable modem as the connection to the Internet

        Do you have assigned 'static' addresses...? from your provider. I'm
not
        sure about Shaw, but many CMP's use the 'computer name' / hostname
        to login the DNS, and assign the address(s). Thus, Mr. Linux box
will
        need to run DHCP 'dhcpcd'
>
>(see attached diagram)
>
>My problem is that my Linux Box (RedHat 5.0) can't see the internet.
>Both computers can ping each other just fine.

        Try configuring the DHCP client on the Linux box, look for it here:
                ftp://sunsite.unc.edu/pub/Linux/system/network/daemons/

        and download the dhcpcd-0.70.tar.gz program. Installing it is
        pretty streight forward.
>
>Initially neither machine could see each other but
>I added the default gateway using the route command then
>they were able to see each other. (the ip I used for the gateway was
>the address of the gateway of my service provider - is that right?)

            No, The Linux box will assign itself the correct gateway when it
            connects to your CMP. (this is somewhat of a guss, because as I
            said, I'm not sure about Shaw, and I seen nothin in the
Howto..)?
            Normally, the system looks for it's assigned gateway on the LAN,
            then the gateway, i.e. a system with 2 ethernets sends packets
            to/from  the Internet.

>However, anything outside my two machines are invisible to my
>Linux box.  My windows machine works fine but it is using DHCP
>and I am unsure if I can get Linux to do that .

            Yes, Linux will do this happly. DHCP is simple to install. I
think once the Linux
            box is running DHCP, it will connect.

            Some pointers:
                If Shaw is anything like @home, you'll need another IP
address/hostname, if
                you don't already have two (one for the winblows, and one
for the Linux box)
                I don't think you can log in with two hostnames the same..?
                An alternative would be IP_masquerading, this way you keep
the LAN intact,
                and use the Linux machine as the gateway for the winblow(s)
machines.
                The Linux machine will need 2 ethernets to do this.
                I only seen one win box in your diagram, (running IP
masquerading might still be
                a better idea, and save you a little on a second IP...?

                @home removes your 'assigned IP address(s), the ones you set
on the win boxes,
                and disables file and print sharring (:>( , so you loose the
LAN. They DO NOT turn
                on the DHCP stuff on the win machines because the computer
name / hostname is
                used to log, and assign the static address(s).



(I'm a recent Windows
>convert *grin*)
>
>I have a sneaking suspicion that it has something to do with the
>subnet mask but I can't figure it out.


            I think the CMP (Shaw) dosn't recconize the Linux box's
hostname.

            **Please forgive if any of this turn's out to be incorrect,
i.e.. with Shaw's setup, and once
            you get things running, please post. There may be other 'Shaw'
users with Linux!

>
>Anybody have any suggestions? (I'm with Shaw if that helps)
>
>Thanks alot



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

From: Job eisses <[EMAIL PROTECTED]>
Subject: How to wake-on-lan ?
Date: Sun, 03 Jan 1999 02:42:44 +0100

Does anyone know how to send a wakeup packet to a machine that sleeps
with wake-on-lan set up?
                                        -job

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

From: Mark Worsdall <[EMAIL PROTECTED]>
Subject: Re: Apache - Virtual Host or /etc/hosts
Date: Sun, 3 Jan 1999 01:39:51 +0000

In article <[EMAIL PROTECTED]>, Matthew Vanecek
<[EMAIL PROTECTED]> writes
>
>Microsoft works with Microsoft. Linux works with everything.  The best
>way to set it up  is to have Linux as you gateway/masq box.  Set up
>Linux with IP Masquing, and hook to the internet thru it.
>
>Why would anyone want to use Microsoft for a gateway, anyhow?

1) The linux box is in the sparebedroom out of the way and also does not
have a modem or a phone line to connect to.

2) I am reliant on other people to open boxes for me and swap hardware.

3) I am responisible for some daily running of websites and have my
win98 box setup (for 3 years now) to do the job, so transistion will
have to be done slowly and not interfere with my daily web work.

Thats is why I would want to do this, perhaps you should have said "What
reasons have put you in the situation where you have to do this and
would you rather have the linux box be your internet gateway?"
:-)

Rather academic since installing MSIE5 Beta2 I have been unable to get
OMNI's web server to run on the win98 box, even after uninstalling it
the win98 box will not let it start. Apache V1.3.3 win32 does, however
work complaining about the host name worsdall.demon.co.uk not being able
to be resolved. STILL THIS IS NOT RELEVENT in this group.

M.
-- 
Mark Worsdall - Oh no, I've run out of underpants :(
Home:- [EMAIL PROTECTED]  WEB site:- http://www.worsdall.demon.co.uk
Shadow:- [EMAIL PROTECTED]    WEB site:- http://www.shadow.org.uk
Work:- [EMAIL PROTECTED]    WEB site:- http://www.hinwick.demon.co.uk
TCP/IP gatewaying http://www.hinwick.demon.co.uk/computerDept/

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

From: Paul Golubev <[EMAIL PROTECTED]>
Subject: Re: Traffic Shaping info?
Date: Sat, 02 Jan 1999 06:37:42 GMT

Dave Calvin <[EMAIL PROTECTED]> wrote:

> I'm looking for information on traffic shaping.  I need to know things like
> what exactly it can do, and what the current state of traffic shaping is
> in Linux.  Are there any good documents on this kind of stuff on the web?
> Any pointers would be greatly appreciated.

If you use 2.1.x kernel - try to play with my cbq.init script.
ftp://ftp.equinox.gu.net/pub/linux/cbq/cbq.init

> Dave

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

From: "Peter J. Van Der Maas" <[EMAIL PROTECTED]>
Subject: SLiRP, pppd, telnet
Date: 3 Jan 1999 08:13:02 GMT

I was wondering if anyone could offer a little help with a problem I am
having.  I want to run slirp through a telnet session so I can set up
some port redirection.  The problem is how do I get pppd to open a
connection through a telnet session.  I have come across a program
called fwprc, intended to do firewall piercing, that I think will help.
However, the site where the src is located , www.tunes.org, is not
available.  Any help with this would be greatly appreciated.


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

From: "Bertie Price" <[EMAIL PROTECTED]>
Subject: Re: Installing RH5.1 from a win95 machine
Date: 3 Jan 1999 08:18:46 GMT

If you have enough drive space, and if you run fat16 then xcopy the redhat
directory and rawrite as well as the  2  boot images from the cd to your
win95 drive. Use fips to free up and create a free partition if you dont
already have one. The create the boot disks using rawrite and the images
you copied from the cd. Boot with the linux diskettes and choose "install
from hard drive" when prompted by menu's. Point the
source to /redhat on the dos drive and it will do the installation.

Good Luck .... Bertie  



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

From: Alan Strader - Megsinet <[EMAIL PROTECTED]>
Subject: Has anyone had any luck with port forwarding
Date: Sat, 02 Jan 1999 19:51:59 -0600

    What I am trying to dois have traffic going to 205.xxx.xxx.6 TCP
port 80 be redirected to 172.xxx.xxx.5 to port 23 (This is for testing,
the ports will change when our software vender give us the appropriate
ports, but I need to test the concept before I can tell the powers to be
that we can start testing the real products).  I also have masquerading
setup using ipchains.  This seems to be working.  I can get out (telnet,
web,ftp,etc.) from any box on the 172.xxx.xxx.0/24 network to any other
box on 172.xxx.xxx.0, 205.xxx.xxx.0, or the Internet.  I have not been
able to get the inboud port forwarding to work.

    Any Help on this would be greatly appricaited.

    I am working with the following:

Linux Box:
Distribution:    Red Hat Linux release 5.2 (Apollo)
Kernel:           2.2.0-pre1-ac4 on an i586
ipchains:         1.3.8, 27-Oct-1998
eth0:               172.xxx.xxx.6
eth1:                205.xxx.xxx.6

Output form ipchains -L

Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
target     prot opt     source                destination
ports
MASQ       all  ------  172.xxx.xxx.0/24        anywhere
n/a
MASQ       tcp  ------  anywhere              205.xxx.xxx.6
http ->   http
Chain output (policy ACCEPT):
Chain acctin (0 references):
Chain acctout (0 references):
Chain acctboth (0 references):
Chain inp (0 references):
Chain out (0 references):
Chain fwd (0 references):
Chain IpFwAdM! (0 references):

Output from  ipmasqadm portfw -l
prot localaddr            rediraddr               lport    rport  pcnt
pref
TCP  205.xxx.xxx.6         172.xx.xxx.5              8800   telnet
9    10
TCP  205.xxx.xxx.6         172.xxx.xxx.5              http   telnet
9    10


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

From: Kaz Morishita <[EMAIL PROTECTED]>
Subject: EQL/MultilinkPPP; ~100kbps=2 x 56k modems?
Date: Sun, 3 Jan 1999 00:30:37 -0800


As I promised that I was going to post the result of
my struggle with EQL and Multilink PPP, I am posting what I have
found so far.

My goal:
I have a small network of four computers at home.  I wanted to
connect these computers to the Internet as fast as possible,
and as cheap as possible.  I looked for a way to bond two phone
lines as one to get a fast connection, i.e., two 56k modems = ~100k.
I tried EQL and Multilink PPP on Linux to have a Linux box to
work as a router.  But I ended up using WinProxy on Windows98 to have
it work as a router.  Because I found the following facts:

About EQL:
You need a static IP address for your Linux computer at home.
However, most ISPs will assign you an IP address dynamically.
ISP needs to have a router, Livingstone Portmaster 2 or later.
I could not find any ISP using this type of router in my area.

About Multilink PPP:
Linux support for Multilink PPP has been on the wish list
of kernel development for a while, but it is still at its 
early stage. (Very limited Multilink PPP is possible with
kernel versions 2.1.37 to 2.1.43, which are outdated.) 

About WinProxy:
I got an account from an ISP with Multilink PPP support.
My account costs $29.95/mo. with unlimited usage and five e-mail accounts.
(Let me know if you would like to know which ISP I am using.)
Just set up Multilink as instructed on Windows98.
Setup WinProxy just as instructed on its User's Manual.
You are done.  You get ~100kbps connection to the Internet from Windows and
Linux computers on the network at home. (Oh, yes, you can use cheap winmodems.)
It should also be possible to get ~150kbps connection if you have three 
phone lines and three 56k modems (if your account allows three connections).  
But I haven't tried because I have only two phone lines.

I really wish Multilink PPP support in Linux is going to be available soon..

Kaz






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

From: [EMAIL PROTECTED] (L J Bayuk)
Subject: Re: is it always necessary to bind() before connect()?
Date: 3 Jan 1999 01:14:03 GMT

dunno wrote:
>i can't seem to connect() after i socket().
>do i have to bind() when using AF_INET and SOCK_STREAM?
No. bind() is usually only needed for servers about to listen()
and accept(). What error are you getting from connect()?

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

From: Jayasuthan [VorHacker] <[EMAIL PROTECTED]>
Subject: Re: smbmount failing
Date: 3 Jan 99 08:45:29 GMT

Geoff McCaughan <[EMAIL PROTECTED]> wrote:

Ok I had that error message but olny went the host computer turn off..
check share folder and its case sensitive.... try this

smbmount //pcname/sharename /mnt/smb -I ip.address.here.ok -U ntusername


: I'm running Redhat 5.2 and trying to mount an SMB share on an NT 4.0 box.

: Here's my command line and result:

: smbmount //geoff1/share /mnt/smb
: Password:
: mount error: Invalid argument
: Please look at smbmount's manual page for possible reasons

: In /var/log/messages I get:

: kernel: smb_dont_catch_keepalive: server->data_ready == NULL

: Can anyone give me a clue how to fix this, or even what the problem might
: be?

: I can connect to this server with smbclient with no problems.

-- 
===============================================================================
Information System
Jayasuthan


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

From: Jarek Luberek <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.x
Subject: Re: graphical login screen??
Date: Sun, 03 Jan 1999 04:20:13 +0100

Marc wrote:
> 
> on my system switching to runlevel5 will not start xdm (it will on RH systems) I
Yes, that's true. Should have mentioned that. Doing to much redhat
nowadays.
I should probably widen my horizon somewhat ;-)

> just fired up my trusty run level editor and added xdm to the level 5
> startup....and reflections X will scan for an xdm host (it calls it an xdmcp host)
> :)
looks like you got there anyway. That's all that matters.
> 
> Cheers!!!:)

Greetings,

/jarek

http://home2.swipnet.se/~w-29258

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

From: "Bertie Price" <[EMAIL PROTECTED]>
Subject: Can ping IP address but not server name???
Date: 3 Jan 1999 09:05:32 GMT

Hi,

I have two machines -   1 Linux Redhat 5.0 IP 192.168.0.1
                        2 Win 95 IP 192.168.0.2
I can ping both IP addresses from each other and I can ping the linux box
name
from the linux box but i cannot ping the linux box name from the win95
machine.
Does DNS have to be enabled and setup in win95? 

Regards Bertie

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

From: MP - Netvision <[EMAIL PROTECTED]>
Subject: Re: AF_UNIX
Date: Sun, 03 Jan 1999 09:15:48 +0200

This is a multi-part message in MIME format.
==============DA16E08D5C5262874803B4AD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



L J Bayuk wrote:

> [EMAIL PROTECTED] wrote:
> >Hi,
> >
> >Does anyone know how can I grant my users a permission to use socket
> >with AF_UNIX on Linux  2.0.35 ?
> >
> Not clear what you mean. A client can connect to an AF_UNIX socket
> if it has filesystem permission to the socket, since AF_UNIX sockets
> exist on the filesystem as special files. And any user process can
> create an AF_UNIX (Unix Domain) Socket if they have rights to
> create in the directory where they are trying to put the socket.
> What are you trying to do?

Thanks for your help.

I'm trying to run two simple programs, cook.c and chef.c.

When runnig as root - it's fine.

When running as a simple user it stack at cook.c on the connect function
call.
I did change permissions , ownership and group, and copied the files to a
user's writeable library.
socket and all other functions returned a correct return code, but still
- connect never ends.

The programs are attached.



                                                    Thanks,


Moshe.




==============DA16E08D5C5262874803B4AD
Content-Type: application/x-unknown-content-type-C_auto_file;
 name="chef.c"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="chef.c"

I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c2lnbmFsLmg+DQojaW5jbHVkZSA8c3lz
L3NvY2tldC5oPg0KI2luY2x1ZGUgPHN5cy90eXBlcy5oPg0KI2luY2x1ZGUgPHN5cy91bi5o
Pg0KI2luY2x1ZGUgPHN5cy9maWxlLmg+DQoNCiNkZWZpbmUgREVGQVVMVF9QUk9UT0NPTCAw
DQoNCnZvaWQgbWFpbigpDQp7DQogIGludCBzZXJ2ZXJGRCxjbGllbnRGRCxzZXJ2ZXJMZW4s
Y2xpZW50TGVuOw0KICBzdHJ1Y3Qgc29ja2FkZHJfdW4gc2VydmVyVU5JWEFkZHJlc3M7DQog
IHN0cnVjdCBzb2NrYWRkcl91biBjbGllbnRVTklYQWRkcmVzczsNCiAgc3RydWN0IHNvY2th
ZGRyKiBzZXJ2ZXJTb2NrQWRkclB0cjsNCiAgc3RydWN0IHNvY2thZGRyKiBjbGllbnRTb2Nr
QWRkclB0cjsNCiAgDQoNCiAgc2lnbmFsKFNJR0NITEQsU0lHX0lHTik7DQoNCiAgc2VydmVy
U29ja0FkZHJQdHI9KHN0cnVjdCBzb2NrYWRkciopICZzZXJ2ZXJVTklYQWRkcmVzczsNCiAg
c2VydmVyTGVuPXNpemVvZihzZXJ2ZXJVTklYQWRkcmVzcyk7DQoNCiAgc2VydmVyRkQ9c29j
a2V0KEFGX1VOSVgsU09DS19TVFJFQU0sREVGQVVMVF9QUk9UT0NPTCk7DQogIHNlcnZlclVO
SVhBZGRyZXNzLnN1bl9mYW1pbHk9QUZfVU5JWDsNCiAgc3RyY3B5KHNlcnZlclVOSVhBZGRy
ZXNzLnN1bl9wYXRoLCJyZWNpcGUiKTsNCiAgdW5saW5rKCJyZWNpcGUiKTsNCiAgYmluZChz
ZXJ2ZXJGRCxzZXJ2ZXJTb2NrQWRkclB0cixzZXJ2ZXJMZW4pOw0KICBkbw0KICAgIHsNCiAg
ICAgIGNsaWVudEZEPWFjY2VwdChzZXJ2ZXJGRCxjbGllbnRTb2NrQWRkclB0ciwmY2xpZW50
TGVuKTsNCiAgICAgIGlmKGNsaWVudEZEID09IC0xKSBzbGVlcCgxKTsNCiAgICB9DQogIHdo
aWxlKGNsaWVudEZEID09IC0xICk7DQogIGlmIChmb3JrKCkgPT0gMCApDQogICAgew0KDQog
ICAgICB3cml0ZVJlY2lwZShjbGllbnRGRCk7DQogICAgICBjbG9zZShjbGllbnRGRCk7DQog
ICAgICBleGl0KDApOw0KICAgIH0NCiAgZWxzZQ0KICAgIGNsb3NlKGNsaWVudEZEKTsNCn0N
Cg0KDQp2b2lkIHdyaXRlUmVjaXBlKGludCBmZCkNCnsNCiAgc3RhdGljIGNoYXIgKmxpbmUx
PSJzcGFtIHNwYW0gc3BhbSI7DQogIHN0YXRpYyBjaGFyICpsaW5lMj0ic3BhbSBhbmQgc3Bh
bSI7DQogIHdyaXRlKGZkLGxpbmUxLHN0cmxlbihsaW5lMSkrMSk7DQogIHdyaXRlKGZkLGxp
bmUyLHN0cmxlbihsaW5lMikrMSk7DQp9DQo=
==============DA16E08D5C5262874803B4AD
Content-Type: application/x-unknown-content-type-C_auto_file;
 name="cook.c"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="cook.c"

I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c2lnbmFsLmg+DQojaW5jbHVkZSA8c3lz
L3NvY2tldC5oPg0KI2luY2x1ZGUgPHN5cy90eXBlcy5oPg0KI2luY2x1ZGUgPHN5cy91bi5o
Pg0KDQojZGVmaW5lIERFRkFVTFRfUFJPVE9DT0wgMA0KDQptYWluKCkNCnsNCiAgaW50IGNs
aWVudEZkLHNlcnZlckxlbixyZXN1bHQ7DQogIHN0cnVjdCBzb2NrYWRkcl91biBzZXJ2ZXJV
TklYQWRkcmVzczsNCiAgc3RydWN0IHNvY2thZGRyKiBzZXJ2ZXJTb2NrQWRkclB0cjsNCg0K
ICBzZXJ2ZXJTb2NrQWRkclB0cj0oc3RydWN0IHNvY2thZGRyKikgJnNlcnZlclVOSVhBZGRy
ZXNzOw0KICBzZXJ2ZXJMZW49c2l6ZW9mKHNlcnZlclVOSVhBZGRyZXNzKTsNCg0KICBjbGll
bnRGZD1zb2NrZXQoQUZfVU5JWCxTT0NLX1NUUkVBTSxERUZBVUxUX1BST1RPQ09MKTsNCiAg
c2VydmVyVU5JWEFkZHJlc3Muc3VuX2ZhbWlseSA9IEFGX1VOSVg7DQogIHN0cmNweShzZXJ2
ZXJVTklYQWRkcmVzcy5zdW5fcGF0aCwicmVjaXBlIik7DQogIA0KICBkbw0KICAgIHsNCiAg
ICAgIHJlc3VsdD1jb25uZWN0KGNsaWVudEZkLCBzZXJ2ZXJTb2NrQWRkclB0cixzZXJ2ZXJM
ZW4pOw0KICAgICAgaWYocmVzdWx0ID09IC0xKSBzbGVlcCgxKTsNCiAgICB9DQogIHdoaWxl
KHJlc3VsdCA9PS0xKTsNCiAgcmVhZFJlY2lwZShjbGllbnRGZCk7DQogIGNsb3NlKDApOw0K
fQ0KDQpyZWFkUmVjaXBlKGludCBmZCkNCnsNCiAgY2hhciBzdHJbMTAwXTsNCiAgd2hpbGUo
cmVhZExpbmUgKGZkLHN0cikpDQogICAgcHJpbnRmKCIlcyBcbiIsc3RyKTsNCn0NCg0KcmVh
ZExpbmUoaW50IGZkLCBjaGFyICpzdHIpDQp7DQppbnQgbjsNCmRvDQogIHsNCiAgICBuPXJl
YWQoZmQsc3RyLDEpOw0KICB9DQp3aGlsZShuPjAgJiYgKnN0cisrICE9TlVMTCk7DQpyZXR1
cm4obj4wKTsNCn0NCiAgDQoNCg0K
==============DA16E08D5C5262874803B4AD==


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

From: Brian McCauley <[EMAIL PROTECTED]>
Crossposted-To: comp.protocols.tcp-ip.domains
Subject: Re: How to use 2 DNS servers ?
Date: 03 Jan 1999 10:32:45 +0000

Philippe PAULEAU <[EMAIL PROTECTED]> writes:

> I have two interfaces on my linux system, one for my local network, the
> other for the ouside internet.
> 
> I need to configure 2 DNS servers, dns.mydomain.com for local resolve
> which is authoritative for mydomain.com, and the other for internet DNS.

Why do you think that you need two?  An single DNS server can be both
authorative for some domains and act as a recursive server for others.

> But i don't want to be authoritative for mydomain.com.

Why?  Surely this would be the simplest solution.

> The resolv.conf file doesn't seems to allow this.

That is right. 

> So, what is the easiest way to do this ?

You will have to be more precise about what it is you wish to avoid
doing.  It's as though you say "I want to knock in a nail but I don;t
want to use a hammer".  I could say "knock it in with a rock" but in
that case the rock would be acting as a hammer - so you would still be
using a hammer.

A stub zone may be a solution to your problem but until you explain
your problem I can't be sure.

> Do i have to use named and how i configure it ?

Yes, to run any nameserver you need named.

-- 
     \\   ( )  No male bovine  | Email: [EMAIL PROTECTED]
  .  _\\__[oo   faeces from    | Phones: +44 121 471 3789 (home)
 .__/  \\ /\@  /~)  /~[   /\/[ |   +44 121 627 2173 (voice) 2175 (fax)
 .  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
  # ll  l\\  ~~~~ ~   ~ ~    ~ | http://www.wcl.bham.ac.uk/~bam/
 ###LL  LL\\ (Brian McCauley)  |

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

From: [EMAIL PROTECTED] (L J Bayuk)
Subject: Re: AF_UNIX
Date: 3 Jan 1999 01:18:23 GMT

[EMAIL PROTECTED] wrote:
>Hi,
>
>Does anyone know how can I grant my users a permission to use socket
>with AF_UNIX on Linux  2.0.35 ?
>
Not clear what you mean. A client can connect to an AF_UNIX socket
if it has filesystem permission to the socket, since AF_UNIX sockets
exist on the filesystem as special files. And any user process can
create an AF_UNIX (Unix Domain) Socket if they have rights to
create in the directory where they are trying to put the socket.
What are you trying to do?

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

From: Eddie <[EMAIL PROTECTED]>
Subject: SNA for Linux??
Date: 3 Jan 1999 01:18:56 GMT

Where can I get info on implementing an SNA server on Linux?
I would like to replace a old and about-to-die Novell machine with a
Linux box.

Has anyone tried this successfully? An good documentations?

Thx
Eddie

PS: please also email responses to [EMAIL PROTECTED], I can't get
newsgrps at work ;-)


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

From: [EMAIL PROTECTED] (Stuart R. Fuller)
Subject: Re: Restrict login by remote host
Reply-To: [EMAIL PROTECTED]
Date: Sun, 03 Jan 1999 11:00:04 GMT

Brent Foster ([EMAIL PROTECTED]) wrote:
: Greetings-
: 
: I've been looking all over for a solution to a problem that I'm
: having, and just can't find one.  
: 
: Here is the situation.  On a public access machine, I want to
: make sure that the user bill can only login from *.foo.com.
: This way, if bill tries to login from *.bar.com he will get
: denied.  
: 
: Use TCP wrappers you say :).  I can't.. the user joe needs
: to be able to login from anywhere in the world, including
: *.bar.com.  I don't want to close off access to the machine,
: I just need to make sure bill can only login from *.foo.com.
: 
: Whatever the solution is, it needs to work on a per user basis.
: 
: Does anyone have some suggestions on how I might implement 
: this?

I just tried this on my system using TCP wrappers.

I originally had a line in my /etc/hosts.allow:

ALL : localhost

which allows access to all services by users on my system.  I commented this
out, and inserted a new line:

ALL : stu@ALL

Now, from a root account, I tried to telnet to localhost and was refused
before ever receiving a login: prompt.  Then, from my "stu" account, I was
able to login successfully.  I believe that you would be able to extend this
exercise to allow "joe" to login from anywhere.

        Stu

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


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