Linux-Networking Digest #844, Volume #9          Mon, 11 Jan 99 01:13:33 EST

Contents:
  Re: HELP!! ADSL & @Home Cable on one Machine!! (Luca Filipozzi)
  Re: pppd and user permissions (Warren Mira)
  Re: Cannot send packets outside the network (Warren Mira)
  nfs with smp (smp_spins) (Frantzcy Paisible)
  Re: Automatically cut ppp link (Dale Lakes)
  Re: Linux Dial Upon Demand Internet Server (Dale Lakes)
  Re: ppp with isdn (Joe Zeff)
  Re: PPP 2.2 - Authentication? (TjL)
  ppp-2.3.5 and kernel 2.2.0-pre6 (Karl Staas)
  Re: pppd and user permissions (Frank Hale)
  Re: Creating Dial-Up accounting in X? ([EMAIL PROTECTED])
  Re: su won't let me shutdown/ifconfig (Ronny Haryanto)
  problem with LAN + PPP (Patrick Gagnon)
  Redhat 5.2 - Can't Get Internet Access Going ("Steve")

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

From: [EMAIL PROTECTED] (Luca Filipozzi)
Subject: Re: HELP!! ADSL & @Home Cable on one Machine!!
Date: Sun, 10 Jan 1999 19:19:02 -0800

In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> All regular trafic on adsl line
> ftpd on @home Cable line
> Problem 1.. only one routing table
> Problem 2.. @home uses dhcp.. so my ip changes (although P 1 
> is my main concern)

Let's call your @home interface eth0 and your adsl interface eth1.

You can configure your DHCP client (dhcpcd) to listen on eth0. You can 
configure dhcpcd to run a shell script when it successfully gets an IP 
address (dhcpcd has a command line option for this: "-c filename").

The following environment variables (amongst others) are set and passed 
to the shell script: HOSTNAME, ROUTER, IPADDR, NETMASK and BROADCAST.

So you need a shell script that will set up the routing table that you 
want and set the appropriate metric values. By using metric values, you 
can set up two default routes to two different gateways (one for @home 
and one for adsl) but have one route be preferred over the other. This 
way, most traffic will be routed over eth1 (adsl) rather than eth0 
(@home). This should solve problem #2.

Of course, the solution to problem #2 routes all of your traffic and 
can't be applied to individual protocols. So if somebody makes an ftp 
connection to your box via eth0 (@home), will the packets leaving your 
machine for his go out over eth1 (adsl)? I suspect that they might. So 
you will also need to use ipfwadm to deny outgoing ftp packets on eth1 
(adsl, the preferred default route). Since there is a second default 
route, the packets should then go out eth0 (@home, the second default 
route). This should solve problem #1.

You will probably want to deny incoming ftp traffic on eth1 (adsl) so 
that people can only ftp to your machine via eth0 (@home). In fact, you 
should probably use ipfwadm to secure your linux box on all the other 
ports, leaving open only those services that you need (ftp, http, smtp, 
pop, icmp, etc.)

I haven't tried this, but I think that it'll work.

Good luck.
-- 
Luca Filipozzi <[EMAIL PROTECTED]>
My views don't represent my employer's.

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

Date: Mon, 11 Jan 1999 11:28:51 +0800
From: Warren Mira <[EMAIL PROTECTED]>
Subject: Re: pppd and user permissions

# chown root.root /usr/sbin/pppd

then make a symbolic link of pppd to /usr/bin......hope this helps......

Frank Hale wrote:

> I have a perl script which connects to my isp. It needs to call pppd and
> the script works fine for root but it won't work as a user. The error
> message says
>
> /usr/sbin/pppd: using the name option requires root privilege
>
> I have set the permissions to setuid. At least I think I have I did a
> chmod 4755 on it. How can I get the pppd program to work with users?
>
> --
> From:      Frank Hale
> Email:     [EMAIL PROTECTED]
> ICQ:       7205161
> Homepage:  http://members.xoom.com/frankhale/
> Jade:      http://jade.netpedia.net/


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

Date: Mon, 11 Jan 1999 11:31:49 +0800
From: Warren Mira <[EMAIL PROTECTED]>
Subject: Re: Cannot send packets outside the network

can u post a copy of your routing table?

Narayan Parameshwar wrote:

> Hi!
>
>             I am a beginer with linux. I have installed RedHat 5.2 on my
> computer which has  3com 3c509 ethernet card. The address of the machine
> is 192.168.100.111.  I have the following problem:
>
>         I am able  ping or telnet to a machine within our network (such
> as 192.168.100.101). However, I cannot send IP packets outside my
> network. I have specified 192.168.100.100 as the gateway (which is our
> router) and DNS (which is on our ISP network)  address is also
> specified. I do not have any host specific routes or  any other entries
> in the routing table. The packets do not even leave the machine. I get
> network unreachable error message. This occurs regardless of whether I
> entered name of the machine or a specific IP address.
>
>        I have not specified any netmask. It does not work even if i
> specifiy any netmask. But I think the problem is in the proper
> specification of netmasks. I really appreciate if any of you can provide
> any solution to this problem.
>
> Regards,
> Narayan Parameshwar
> AWARD Solutions, Inc
> (972) 664-0727
> [EMAIL PROTECTED]


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

From: Frantzcy Paisible <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions
Subject: nfs with smp (smp_spins)
Date: Sun, 10 Jan 1999 22:19:01 -0500

Hi!
I'm running a dual Pentium machine.

    I can't seem to get nfs running on it, I get this error when i try
to"insmod nfs" :

/lib/modules/2.0.36/fs/nfs.o: unresolved symbol smp_spins

can any one help me with this ?

Frantzcy



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

From: Dale Lakes <[EMAIL PROTECTED]>
Subject: Re: Automatically cut ppp link
Date: Mon, 11 Jan 1999 04:01:23 GMT

I have used diald to control my ppp connection for the past year and am 100%
satisfied. I highly reccomend it!

http://www.loonie.net/~eschenk/diald.html

later
DL

"Choon-Cheng Chee (remove removethis in my e-mail)" wrote:

> On Wed, 06 Jan 1999 12:49:59 -0500, "Marc D. Behr"
> <[EMAIL PROTECTED]> wrote:
>
> >
> >Have you tried using the demand-dial option of pppd? This will cause the
> >link to come up when needed and dies after all traffic has stopped.
> >
> >In your options file, add
> >
> >
> >demand
> >idle 900
> >
> >To have the link die after 15 minutes of idle time.
> >
>
> "demand" may not work for newer distribution like RH 5.2. The kernel
> support has been removed. But "idle" still works.
>
> Choon-Cheng Chee
> =========================
> chee at mail-me dot com
> Kuala Lumpur, Malaysia
> =========================
> * Watch my return address! Editing required !*

--
"The best defense against logic is ignorance."




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

From: Dale Lakes <[EMAIL PROTECTED]>
Subject: Re: Linux Dial Upon Demand Internet Server
Date: Mon, 11 Jan 1999 04:12:43 GMT

I highly reccomend diald (dialer daemon). It is extremely configurable and
invisible to the users. For example, you can tell the kids "No Internet after
9PM and before 7AM!" and configure diald to disable the link between those
hours. Very nice.

http://www.loonie.net/~eschenk/diald.html

DL

Jay Bramble wrote:

> Ok,  I am a moron when it comes to Linux.  Just starting to really use it
> and I need help from all of you Guru's.
>
> I have set up a second machine that is running RedHat 5.2.  My first machine
> is a WinSlows 98 machine.  I have Samba running with out too much trouble
> (share access, not user access).
>
> My Linux box is a P-166 with 98Mgs of memory (lots of it) and (1) 1.2 Gig
> IDE (NT Server),  85Mg IDE(Root) and (4) 1.5 Gig SCSI-2 drives.  /usr,
> /user/local, /home, /arcs.
>
> What I want to do is move my 56k modem to my Linux box and have it be my
> dialup connection.  I am using Wingate on my 98 machine now, so my son and
> daughter can use their machines on the net, but I have to start the dial up
> process on my 98 machine.
>
> How can I get Linux to do this automatically?
>
> I know this is a BIG question..........
>
> In case you are interested,  I run NT Server on this box too. Dual Boot.
> To play and figure out how to get it to be a DNS, DHCP and RAS box.
> But mainly I use it and my kids machines as a Rendering Farm for a piece of
> RayTrace Animation software called LIGHTWAVE.  Using Screamer Net I can have
> 4 CPU's processing the animations instead of just 1 CPU.   Really cool and
> FASSSST....

--
"The best defense against logic is ignorance."




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

From: [EMAIL PROTECTED] (Joe Zeff)
Crossposted-To: 
alt.comp.linux.isp,;,alt.linux,;,alt.os.linux,;,alt.uu.comp.os.linux.questions,;,comp.os.linux.help,;,comp.os.linux.misc,;,;,comp.os.linux.setup
Subject: Re: ppp with isdn
Date: Sun, 10 Jan 1999 18:24:18 GMT
Reply-To: [EMAIL PROTECTED]

[EMAIL PROTECTED] (tom) wrote:

>Now what?  How do I connect to my ISP?

If you'll read what's been posted to this group in the last few days,
you'll see that I've just answered your question: call Earthlink tech
support and have us either talk you through our walk through, or send
you a copy.

---
Joe Zeff
     The Guy With the Sideburns
another clue like that and I may have to start thinking.
http://www.lasfs.org



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

From: [EMAIL PROTECTED] (TjL)
Crossposted-To: comp.sys.next.sysadmin
Subject: Re: PPP 2.2 - Authentication?
Date: Mon, 11 Jan 1999 04:22:54 GMT

In <77b9ho$h50$[EMAIL PROTECTED]> Matthew Hocker wrote:

> My question: how do I set up pppd to authenticate in the ppp session, like
> windows 98 does?

More than likely they are using PAP for authentication.

You make a chat script just like before, except that you leave off everything 
after the "ogin:" 

You have to make a /etc/ppp/pap-secrets file and set them up according to the 
manpage.

See http://www.peak.org/next/ppp/ and get the latest binary installer.

 
> Many thanks. Please email to [EMAIL PROTECTED] (take the xx's out)

Well you'll either have to provide a working email address or check back for 
followups.

BTW there's really no reason to muck your email address in the BODY of the 
messages.  Spammers take them out of the headers and there's no evidence they 
take them from the body (which would take too long anyway).

TjL

--
"I realized I had run out of floppy disks, and wondered how that
was possible.  Then it dawned on me.....
                     AOL is sending out CDs now."          - me
(Remove obvious portion if replying by email.)


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

From: Karl Staas <[EMAIL PROTECTED]>
Subject: ppp-2.3.5 and kernel 2.2.0-pre6
Date: Mon, 11 Jan 1999 04:24:53 GMT

I've built 2.2.0-pre6 with ppp.2.3.5 and
can't succesfully send lcp packets (neither
requests or acknowledges). I send requests
but never see acks and I get requests which
I ack but get retries on those requests.
I've read the pppd README and README.linux,
the kernel Documentation/networking/ppp.txt,
and many others. I've done "make kernel" in
the pppd distribution and it says the kernel
sources are OK and copies nothing. I also
know that for 2.0.35 I needed to copy ppp.c
anyway because the kernel sources were newer
datestamps but older contents. Anything like
that now? The FILEVERSIONs in the kernel
sources are newer than those in pppd-2.3.5 yet
the kernel sources say 2.3.3!
The pppd-2.3.5 sources work ok with my 2.0.35
kernel.

Here's the lpc req/ack where you can see the
retries ...Jan 10 00:14:08 oscar pppd[77]: sent [LCP ConfReq id=0x1
<asyncmap 0x20a0000> <magic 0x4a946ac3> <pcomp> <accomp>]
Jan 10 00:14:10 oscar pppd[77]: rcvd [LCP ConfReq id=0x2 <asyncmap 0x0>
<magic 0xd61d6603> <pcomp> <accomp>]
Jan 10 00:14:10 oscar pppd[77]: sent [LCP ConfAck id=0x2 <asyncmap 0x0>
<magic 0xd61d6603> <pcomp> <accomp>]
Jan 10 00:14:11 oscar pppd[77]: sent [LCP ConfReq id=0x1 <asyncmap
0x20a0000> <magic 0x4a946ac3> <pcomp> <accomp>]
Jan 10 00:14:13 oscar pppd[77]: rcvd [LCP ConfReq id=0x3 <asyncmap 0x0>
<magic 0xd61d6603> <pcomp> <accomp>]
Jan 10 00:14:13 oscar pppd[77]: sent [LCP ConfAck id=0x3 <asyncmap 0x0>
<magic 0xd61d6603> <pcomp> <accomp>]
Jan 10 00:14:14 oscar pppd[77]: sent [LCP ConfReq id=0x1 <asyncmap
0x20a0000> <magic 0x4a946ac3> <pcomp> <accomp>]
Jan 10 00:14:16 oscar pppd[77]: rcvd [LCP ConfReq id=0x4 <asyncmap 0x0>
<magic 0xd61d6603> <pcomp> <accomp>]
Jan 10 00:14:16 oscar pppd[77]: sent [LCP ConfAck id=0x4 <asyncmap 0x0>
<magic 0xd61d6603> <pcomp> <accomp>]
Jan 10 00:14:17 oscar pppd[77]: sent [LCP ConfReq id=0x1 <asyncmap
0x20a0000> <magic 0x4a946ac3> <pcomp> <accomp>]
Jan 10 00:14:19 oscar pppd[77]: rcvd [LCP ConfReq id=0x5 <asyncmap 0x0>
<magic 0xd61d6603> <pcomp> <accomp>]
Jan 10 00:14:19 oscar pppd[77]: sent [LCP ConfAck id=0x5 <asyncmap 0x0>
<magic 0xd61d6603> <pcomp> <accomp>]
Jan 10 00:14:20 oscar pppd[77]: sent [LCP ConfReq id=0x1 <asyncmap
0x20a0000> <magic 0x4a946ac3> <pcomp> <accomp>]
Jan 10 00:14:22 oscar pppd[77]: rcvd [LCP ConfReq id=0x6 <asyncmap 0x0>
<magic 0xd61d6603> <pcomp> <accomp>]
Jan 10 00:14:22 oscar pppd[77]: sent [LCP ConfAck id=0x6 <asyncmap 0x0>
<magic 0xd61d6603> <pcomp> <accomp>]
-- 
thanks

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

From: Frank Hale <[EMAIL PROTECTED]>
Subject: Re: pppd and user permissions
Date: 11 Jan 1999 04:15:24 GMT

Warren Mira wrote:
> 
> # chown root.root /usr/sbin/pppd
> 
> then make a symbolic link of pppd to /usr/bin......hope this helps......
> 

-rwsr-xr-x   1 root     root       106876 Jun  8  1998 pppd*

I followed your instructions and it still tells me that I need root
privileges here is the message:

/usr/sbin/pppd: using the name option requires root privilege

I still need to be able to pass it the name option. How can I get a user
to be able to use this command? I want to use pppd as a user. 


-- 
From:      Frank Hale
Email:     [EMAIL PROTECTED]
ICQ:       7205161
Homepage:  http://members.xoom.com/frankhale/
Jade:      http://jade.netpedia.net/

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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.x
Subject: Re: Creating Dial-Up accounting in X?
Date: Sun, 10 Jan 1999 18:43:01 -0800

Steve Harvey <[EMAIL PROTECTED]> wrote:
> In article <7736r6$44$[EMAIL PROTECTED]>, GC wrote:
>>Hi,
>>
>>How can I create a Dial-Up account to my ISP under X Windows to use with
>>Netscape? What dial-up software do I need? What are the procedures involved?
>>

> Take a look at the program 'wvdial' - it nicely automates the process of
> setting up a PPP connection, and is very smart about auto-configuring your
> modem and soforth; just tell it your ISP's phone number, uid, and password
> and it'll do the rest.


>   -Steve

I really like wvdial also.  You could also consider X-isp which goes in a
slightly different direction.  I use X-isp quite a bit here now.  I just
like the program and it seems quite robust.

 -- 

Michael E. Perry
[EMAIL PROTECTED]
==================

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

From: Ronny Haryanto <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux,linux.redhat.misc
Subject: Re: su won't let me shutdown/ifconfig
Date: Mon, 11 Jan 1999 05:48:16 GMT

"A.G." wrote:
> I have read in many a post that one shouldn't logon as root.
No, one shouldn't [telnet|rlogin|...] as root. Login as normal user,
then su.
 
> Alright, I have set up an account for myself to log on. But how do I
> shutdown the system in the end of the session? "su" doesn't help - I get
> "command not found" message when I try to enter shutdown or ifconfig for
> example.
I believe shutdown and ifconfig are in /sbin, and /sbin is not
included in $PATH by default for some reason (security?).

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

From: Patrick Gagnon <[EMAIL PROTECTED]>
Subject: problem with LAN + PPP
Date: Mon, 11 Jan 1999 00:47:07 -0500


==============2A99837FCACD9388932CC9EB
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello!

    I'm running RedHat 5.2 and my access to the LAN does not work when
i'm connected to internet via PPP at the same time. So my LAN works when
i'm not using PPP.  The problem comes from the /etc/hosts file...

Here is my /etc/hosts file that I use when my PPP works good :

127.0.0.1 localhost    localhost.localdomain

As you see, there's only my localhost and in this situation, my LAN
doesn't works. But I can ping. Samba doesn't work, I freeze. I takes 5
minutes to get to ftp to my station from another station on the LAN.

To get my LAN to work, I use this /etc/hosts :

127.0.0.1 localhost    localhost.localdomain
127.214.87.128    server.house.ca    server  (NT server)
127.214.87.129    jos.house.ca            jos        (win95 workstation)

127.214.87.131    john.house.ca        john    (win98 workstation)

(My IP is 127.214.87.130)
When I use this file, my PPP doesn't work.

Here is my resolv.conf
================
search house.ca
nameserver 127.214.1.99 (ISP domain server)
nameserver 127.214.87.128 (LAN domain server)


Ehhh... Another thing, as i've read, the file smbmount is used to mount
(map) shared volume via smb.
I installed samba 2b5 and I don't find the smbmount binary. It was not
on the package from RedHat 5.2 too... And I can't mount smb via the
mount command.

Thank you !!!!!

==============2A99837FCACD9388932CC9EB
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Hello!
<P>&nbsp;&nbsp;&nbsp; I'm running RedHat 5.2 and my access to the LAN does
not work when i'm connected to internet via PPP at the same time. So my
LAN works when i'm not using PPP.&nbsp; The problem comes from the /etc/hosts
file...
<P>Here is my /etc/hosts file that I use when my PPP works good :
<P>127.0.0.1 localhost&nbsp;&nbsp;&nbsp; localhost.localdomain
<P>As you see, there's only my localhost and in this situation, my LAN
doesn't works. But I can ping. Samba doesn't work, I freeze. I takes 5
minutes to get to ftp to my station from another station on the LAN.
<P>To get my LAN to work, I use this /etc/hosts :
<P>127.0.0.1 localhost&nbsp;&nbsp;&nbsp; localhost.localdomain
<BR>127.214.87.128&nbsp;&nbsp;&nbsp; server.house.ca&nbsp;&nbsp;&nbsp;
server&nbsp; (NT&nbsp;server)
<BR>127.214.87.129&nbsp;&nbsp;&nbsp; 
jos.house.ca&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jos&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (win95 workstation)
<BR>127.214.87.131&nbsp;&nbsp;&nbsp; 
john.house.ca&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
john&nbsp;&nbsp;&nbsp; (win98 workstation)
<P>(My IP is 127.214.87.130)
<BR>When I use this file, my PPP doesn't work.
<P>Here is my resolv.conf
<BR>----------------
<BR>search house.ca
<BR>nameserver 127.214.1.99 (ISP domain server)
<BR>nameserver 127.214.87.128 (LAN domain server)
<BR>&nbsp;
<P>Ehhh... Another thing, as i've read, the file smbmount is used to mount
(map) shared volume via smb.
<BR>I installed samba 2b5 and I don't find the smbmount binary. It was
not on the package from RedHat 5.2 too... And I can't mount smb via the
mount command.
<P>Thank you !!!!!
<PRE></PRE>
</HTML>

==============2A99837FCACD9388932CC9EB==


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

From: "Steve" <[EMAIL PROTECTED]>
Subject: Redhat 5.2 - Can't Get Internet Access Going
Date: Sun, 10 Jan 1999 23:53:55 -0500

We have a very simple network here - a hub feeding a few computers off of a
cable modem.  No DHCP - every computer has a dedicated IP.  The cable modem
(192.168.100.1) is the "default gateway".

This is exactly what I've set up in Redhat 5.2 and I can't get out on the
net.  I can, however, see all the computers on our network, and can even
ping the cable modem, but can't get anywhere outside.  The other machines,
all running Win98, are working fine.  I've set the DNS's correctly, the
netmask is right (255.255.255.0), and the default gateway (the cable modem)
is set just as in Win98.

After many hours, I'm still getting nowhere.  Obviously, I'm missing
something.  It's probably something stupid.  Any suggestions???

Thanks!

-Steve



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


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