Linux-Networking Digest #292, Volume #12 Thu, 19 Aug 99 20:13:47 EDT
Contents:
Re: Reomte Phone control? (Gustin Kiffney)
Can't get CGI to work with apache ("GA�L STEHAGEN")
Re: telnet as root (Frank v Waveren)
RH 5.2 Changing IP Number ("Damien Pepper")
Re: Routing Configuration (Thomas Kaemer)
Re: IP masquerading (dmalcolm)
Connect via LAN vs. Connect via modem headache (Mike)
Re: ip-masquerading ("George Georgakis")
Re: Linux and MSExchange Mail (sandrews)
Re: Wrong Remote IP address ("LightSeeker")
Re: pppd in 'setuid-root' mode (Clifford Kite)
Re: Can't get 2 NIC's to work - Me too! (Marco Mililotti)
Re: sharing a modem on a win95 system and login in with linux ("Arcanus Magicanus")
Remote Login ("Tyler Beaton")
ip_masq_portfw.o ("Tyler Beaton")
Re: Connect... headache: addendum (Mike)
Re: NE2000 ISA help (Question 2) ("John Bekas, Jr.")
----------------------------------------------------------------------------
From: Gustin Kiffney <[EMAIL PROTECTED]>
Subject: Re: Reomte Phone control?
Date: Thu, 19 Aug 1999 22:15:21 GMT
Check out
http://www.coinet.com/~griz/vgetty/index.html
where you can try 'vgetty' which is apparently a voice
answering machine for Linux if you have a voice-capable modem. You
can get mgetty to automatically fire off a number of things, including
PPP or, I'm sure, vgetty.
But the way you stated your problem - how can you get Linux to answer,
and then if you choose get your answering machine to answer - would
not be easy to do. Your answering machine counts rings and if the
rings stop, (because your computer modem picked up) it would never
answer.
Brian Dudek <[EMAIL PROTECTED]> wrote:
> I'm sure in some fashion this can and has been done - I would like to
> 'control' my linux (RH 6) box via a telephone call to and linux
mounted
> modem.
>
> I guess it would be much like calling your answering mashing and
playing
> your messages. So, when I would call my house linux would answer the
> phone and if a given number string was entered ( by me the caller ) it
> would run a particular script ( i.e. fire off ppp for remote access
).
> If no code was received then no action would be taken and the call
would
> default to the answering machine.
>
> I know people have there boxes send them pager messages, it almost
sound
> like the reverse of what I need?
>
> I have looked at the LDP howtos and minis, nothing jumped out. Any
> resource suggestions or has anyone done such a thing - please send it
my
> way.
>
> Thanks!
> Brian
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: "GA�L STEHAGEN" <[EMAIL PROTECTED]>
Subject: Can't get CGI to work with apache
Date: Wed, 18 Aug 1999 16:49:07 +0200
I can't get Apache to work my CGI-scripts. I just made a very simple one (se
below) and placed it in /home/httpd/cgi-bin/. When I call it from Netscape
however I get the output as "text" and not translated by Netscape as
HTML-code...
Anyone got any idea to help me?
*************
#!/bin/ksh
echo
echo "<HTML>"
echo " <HEAD>"
echo " </HEAD>"
echo " <BODY bgcolor=white>"
echo " testing cgi..."
echo " </BODY>"
echo "</HTML>"
***************
gives the output...
***************
<HTML>
<HEAD>
</HEAD>
<BODY bgcolor=white>
testing cgi...
</BODY>
</HTML>
****************
...in Netscape!
Can You help me with why the code isn't translated?
Please Help
Goff
------------------------------
From: [EMAIL PROTECTED] (Frank v Waveren)
Subject: Re: telnet as root
Date: Thu, 19 Aug 1999 23:14:36 GMT
In article <7phsef$hc3$[EMAIL PROTECTED]>,
sean messenger <[EMAIL PROTECTED]> writes:
> yup.
>
> you should be able to control all the root functionality by simply
> su'ing over to the user profile of root (w/ appropriate password), but
> i've not been able to scan root mail from that profile, as su'ing seems
> to change only permissions profiles but not user i.d.
>
> any way to telnet in, su to root, and scan system mail messages with
> native mail readers?
It's just a question of setting the USER enviroment variable.
--
Frank v Waveren
[EMAIL PROTECTED]
ICQ# 10074100
------------------------------
From: "Damien Pepper" <[EMAIL PROTECTED]>
Subject: RH 5.2 Changing IP Number
Date: Fri, 20 Aug 1999 08:48:21 +1000
G'day,
Can anybody help me with changing a static ip number in RH 5.2?
Thanks IAP
--
Cheers
Damien Pepper
DSP Electronics Pty Ltd
69 Industrial Drive
Braeside VIC 3195
Ph: (03) 9587-7950
Fax: (03) 9587-7951
Mobile: 0411-225819
[EMAIL PROTECTED]
See us on the web: www.dspelectronics.com.au
------------------------------
From: Thomas Kaemer <[EMAIL PROTECTED]>
Subject: Re: Routing Configuration
Date: Fri, 20 Aug 1999 00:47:32 +0200
Kimi Sato schrieb:
>
> We have LAN with static IP address assigned to each node, and a gateway
> router connect us to ISP through T1. All Win95 node have TCP/IP set using
> DNS enabled with host, domain, and DNS search orders, as well as static IP,
> subnet mask, and gateway. I applied the same way to Linux network
> configurator, however it doesn't connect internet. It prints out to lpd
> printer on the LAN. When I ping to local (or any) IP, no response comes
> back.
> I don't know how to set up this.
> Any advice will be appreciated.
> Kimi
Did you activate ip-forwarding at the gateway?
You can see it at /proc/sys/net/ipv4/ip_forward. This file must have the
value 1.
CU Thomas
------------------------------
From: dmalcolm <[EMAIL PROTECTED]>
Subject: Re: IP masquerading
Date: Thu, 19 Aug 1999 17:19:19 -0500
==============496D5EC0193C64467C80D673
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Snidley Whiplash wrote:
> I am setting up a vmware VM on my linux box and I want to
> masquerade. But after reading the howto the kernel would not
> build right. No errors but at boot time it will
> say
> modprobe can't find module net-pf-1
> and it said it allot:(
> So what is a net-pf-1 and what do I have to switch on to get one?
> Sysinfo
> SMP 500mhz Celeron
> kernel 2.2.10
> ..............
>
> --
> What to do we have reached the end
> of the rainbow and there's nothing here
> but a pot of shit.
> Leprechauns laughing hysterically ....
> ( Oscar the gnome )
First 'net-pf-1 sounds like a NIC driver module.
Sounds like you didn't:
1. Select your NIC in the Linux build instructions, or
2. You selected it as a module and didn't do a 'make module' or
3. You didn't do a 'make module_install'
The sequence should be: (with the 2.2.x kernels)
*make mrproper
*make menuconfig or make xconfig
*make clean ; make dep ; make
*make modules
*make modules_install
Hope this helps
==============496D5EC0193C64467C80D673
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Snidley Whiplash wrote:
<blockquote TYPE=CITE> I am setting up a vmware VM on my linux box
and I want to
<br>masquerade. But after reading the howto the kernel would not
<br>build right. No errors but at boot time it will
<br>say
<br>modprobe can't find module net-pf-1
<br>and it said it allot:(
<br> So what is a net-pf-1 and what do I have to switch on to get
one?
<br> Sysinfo
<br> SMP 500mhz Celeron
<br> kernel 2.2.10
<br> ..............
<p>--
<br> What to do we have reached the end
<br>of the rainbow and there's nothing here
<br>but a pot of shit.
<br> Leprechauns laughing hysterically ....
<br> ( Oscar the gnome )</blockquote>
First 'net-pf-1 sounds like a NIC driver module.
<p>Sounds like you didn't:
<br>1. Select your NIC in the Linux build instructions, or
<br>2. You selected it as a module and didn't do a 'make module' or
<br>3. You didn't do a 'make module_install'
<p>The sequence should be: (with the 2.2.x kernels)
<li>
make mrproper</li>
<li>
make menuconfig or make xconfig</li>
<li>
make clean ; make dep ; make</li>
<li>
make modules</li>
<li>
make modules_install</li>
<p><br>Hope this helps
<br> </html>
==============496D5EC0193C64467C80D673==
------------------------------
Subject: Connect via LAN vs. Connect via modem headache
From: [EMAIL PROTECTED] (Mike)
Date: 19 Aug 1999 18:19:24 -0600
Setup:
===============================
486DX33 - 8M RAM
Caldera OpenLinux 1.3 (2.0.35)
Apache 1.3.6
Samba 1.9.18p8
PHP 3.0.11
MySQL 3.22.25
no modem
ifconfig output:
lo Link encap: Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:98 errors:0 dropped:0 overruns:0
TX packets:98 errors:0 dropped:0 overruns:0
eth0 Link encap:Ethernet HWaddr 52:54:4C:1D:01:B8
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:455 errors:0 dropped:0 overruns:0
TX packets:675 errors:0 dropped:0 overruns:0
Interrupt:3 Base address:0x300
/etc/hosts contains:
127.0.0.1 localhost
192.168.1.1 server.bigmweb server
192.168.1.2 MGRIER win98
===============================
AMD K6-2 300Mhz - 64M RAM
Windows 98
56K Modem
Winipconfig output:
Host Information
Host Name: server
DNS Servers: 192.168.1.1
Node Type: Broadcast
NetBIOS Scope Id: (blank)
IP Routing Enabled: no
WINS Proxy Enabled: no
NetBIOS Resolution Uses DNS: yes
Ethernet Adapter Information:
Realtek RTL8139 PCI Fast Ethernet
Adapter Address: 00-C0-CA-13-98-CE
IP Address: 192.168.1.2
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
DHCP Server: (blank)
Primary WINS Server: (blank)
Secondary WINS Server: (blank)
Lease Obtained: (blank)
Lease Expires: (blank)
PPP Adapter
Adapter Address: 44-45-53-54-00-00
IP Address: 0.0.0.0
Subnet Mask: 0.0.0.0
Default Gateway: (blank)
DHCP Server: 255.255.255.255
Primary WINS Server: (blank)
Secondary WINS Server: (blank)
Lease Obtained: (blank)
Lease Expires: (blank)
PPP Adapter
Adapter Address: 44-45-53-54-00-01
IP Address: 0.0.0.0
Subnet Mask: 0.0.0.0
Default Gateway: (blank)
DHCP Server: 255.255.255.255
Primary WINS Server: (blank)
Secondary WINS Server: (blank)
Lease Obtained: (blank)
Lease Expires: (blank)
c:\windows\hosts contains:
127.0.0.1 localhost
192.168.1.2 mgrier
192.168.1.1 server
===============================
I am running a home network (peer-to-peer) so that I can test my web
programming locally without having to tie up my phone line all the time.
But it's not working the way I would like.
1. In order to access the content on the Linux box without having
to dial up using the modem, I have to "Connect via LAN" in Windows -
Internet Options. But then I cannot dial out to the internet
when needed.
If it is set to "Connect via modem", it will access the Linux
content only after dialing the modem.
I would like it to only dial if going to the outside world (and I
would like to stop having to switch back and forth to do so).
I would like to leave the modem where it is in the Windows box if
at all possible, but if the behavior I want cannot be configured
this way, I will move it to the Linux box.
2. I can only edit files on the Linux box from the Windows box if I
have set their permissions to 777 first on the Linux box. I would
like to be able to edit them without having to do this first (or
could set the permissions from Windows).
Thanks for reading. If more info is needed, I will try to find out. I
didn't know what to include.
Mike
------------------------------
From: "George Georgakis" <[EMAIL PROTECTED]>
Subject: Re: ip-masquerading
Date: Thu, 19 Aug 1999 23:21:44 GMT
dmalcolm <[EMAIL PROTECTED]> wrote in article
<[EMAIL PROTECTED]>...
> catsquotl wrote:
>
> > hello there,
> >
> > I have a problem setting up ip masquerading.It`s probbably something
> > small i am overlooking but I can`t figure out what.
> >
> > I have a linux box wich runs SuSE 6.0 kernel 2.0.36 setup as host.
> > eth0 is setup as 192.168.1.1 connected with a coax-line to 192.186.1.2
> > as the only other box in this LAN. Wich is running suse and windows
> >
> > eth1 is setup as 195.86.254.237 via a utp-cable to a cable-modem that
is
> > connected to my isp.
> >
> > I have all the kernel-stuf suggested in the ip-masq howto compiled in
> > and ipfwadm as:
> > ipfwadm -F -p deny
> > ipfwadm -F -a m -S 192.168.1.2/24 -D 0.0.0.0/0
> >
> > from x.x.x.2 I can ping both eth0 and eth1 from x.x.x.1 i can`t connect
> > to the internet though..
> >
> > It might be the gateway setting wich for the x.1 box is the one my isp
> > sent me and for x.2 is 192.168.1.1
> > i`ve tried the one my isp sent but no luck
> >
> > can someone tell me what i`m doing wrong??
> >
> > from the suse 6.0 box i can connect to the internet no probs...
> >
> > greets eelco
> > [EMAIL PROTECTED]
>
> It might be your 'ipfwadm -F -a m -S 192.168.1.2/24 -D 0.0.0.0/0' line.
> The '-D 0.0.0.0/0' resolves to a null address. Try changing it to
> '192.168.1.1'.
>
> I am not that familiar with ipfwadm as I use ipfw and ipchains, but if
that
> still doesn't work try reversing the sequence of the rules.
> Please let me know how it turned out.
>
> Dan
> [EMAIL PROTECTED]
Sorry, but you're wrong, Dan. The 0.0.0.0/0 string is indeed correct. It
stands for "everywhere". The problem is that eelco is trying to target an
individual machine with the wrong mask. That is, instead of
ipfwadm -F -a m -S 192.168.1.2/24 -D 0.0.0.0/0
(which translates as "masquerade the 192.168.1.2 network to anywhere" -
doesn't look right , does it?) try
ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
(which translates as "masquerade the 192.168.1.0 network to anywhere"), or
else use
ipfwadm -F -a m -S 192.168.1.2/32 -D 0.0.0.0/0
(which translates as "masquerade the 192.168.1.2 machine to anywhere"). The
latter appears the line you want to use. The trailing numbers are
important. Use /24 for a network address, and /32 for a single machine's
address.
Have fun
George
------------------------------
From: sandrews <[EMAIL PROTECTED]>
Subject: Re: Linux and MSExchange Mail
Date: Thu, 19 Aug 1999 19:23:40 -0400
On Thu, 19 Aug 1999, Ken Rachynski wrote:
>On Wed, 18 Aug 1999 21:34:35 -0400, sandrews
><[EMAIL PROTECTED]> wrote:
>
>>It may not be YOUR problem......................
>>Try to telnet into the exchange server on port 25 (SMTP) and port 110 (POP3).
>>If you can't it's not your problem it's your administrators problem. I have
>>had the same problem as you but in my case I have to try to get our brain dead
>>MS admin's to look into the problem ( Yes it's a bitch, they don't understand
>>shit). If both ports are open then you can use any standard email client.
>
>That could depend on the Exchange Server version. I don't believe that
>the SMTP and POP support was readily available before 5.0, but I do
>know that those two plus IMAP are enabled by default in 5.5.
>
>Too bad to hear about inept admins, but when you're dealing with MS
>products, this is a very common problem.
>
>Ken
Yes I am beginning to belive that...
I am the only one running Linux (RedHat 6.0).
I am a pilgrim in an unholy land! :).
------------------------------
From: "LightSeeker" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: Wrong Remote IP address
Date: Thu, 19 Aug 1999 16:59:54 -0600
OK, I left out a few thing in haste.......
I'm running Redhat 5.2 (2.0.36)
and
Thanks in advance for your help,
LS
LightSeeker wrote in message ...
>I am having a problem with PPP. I believe that I have everything setup
>properly to make a connection. Problem is the ISP assigns the DHCP address
>of say 12.1.171.145 and the remote address (pointopoint) gets set to one of
>three addresses: 12.1.171.1; 12.1.171.2 or 12.1.171.129. I have tried many
>times and I always get one of these 3 addresses set. Any good reason for
>this? Help quick I'm down to my last hair!!!
>
>
------------------------------
From: kite@NoSpam.%inetport.com (Clifford Kite)
Crossposted-To: comp.os.linux.misc
Subject: Re: pppd in 'setuid-root' mode
Date: 19 Aug 1999 17:56:09 -0500
In article <[EMAIL PROTECTED]> you wrote:
: Clifford Kite writes:
: > Only for root or if the device file name comes from a privileged source.
: As it should. Users should not be configuring network interfaces. Pppd
: should not be passed any command line option other than 'call <provider>'
: by users. The less said about .ppprc the better.
Huh? The point was that it's not always opened by root which what was
you implied. As far as passing options as arguments to pppd goes I
don't see a problem since pppd can be configured to disallow the ones
that have the potential to cause harm if misused. And regarding .ppprc
my feeling is that it is futile to try to suppress information that is
available to anyone willing to read the pppd manual by simply not saying
anything about it. If you have a specific concern regarding .ppprc it
would be better to voice that concern so others can understand what you
see as posing a problem.
: > Yes, they do.
: Users do not have to be able to to write to the port. Pppd on Debian works
: just fine without it.
Only if Debian configures pppd for use in a special way. If the ones
using pppd are members of a group that includes the device file group then
they could open it (with rw group permissions). Or, perhaps, the pppd
privgroup option is used and they are members of that group. Users that
are not a member of the group will not be able to explicitly invoke pppd
without "other" read/write permission for the device file. Of course
if the only use for pppd is a single ISP connection then pppd can be run
with the demand option, in which case all the permissions of the device
file can be turned off - including those for root.
--
Clifford Kite <kite@inet%port.com> Not a guru. (tm)
/* 97.3% of all statistics are made up. */
------------------------------
Date: Fri, 20 Aug 1999 01:06:45 +0200
From: Marco Mililotti <[EMAIL PROTECTED]>
Subject: Re: Can't get 2 NIC's to work - Me too!
I've read your comments, but I'm not sure if my problem is similar.
The fact is that I've two different cards: a 3com 3c905x pci 100Mb and a
DEC etherworks 3 isa 10Mb. The 3com is connectet "outside" while the Dec
is for a local net. Well, the 3com goes well, all is ok, no problems
with nothing. The problem is that the Dec card doesn't go at all (even
if is configured well with ifconfig and route...). Moreover, the *same*
card in another pc with another card of the same kind... is ok! Well,
the kernels are different. Maybe to use two NICs on a pc you need some
tricks on the kernel??
Maybe your problem is of the same kind ? (need kernel cfg?).
Karthik wrote:
>Hey, i'm going to be doing the same thing soon, so i hope i don't run
>into this problem. Anyway, off the top of my head i'd say to check for
>irq confilcts. less /proc/interrupts should tell you. If they are pci
>that shouldn't be the problem. If thats the case, i'm not sure what to
>tell you.
--
===========================================================================
Peace cannot be kept by force. ^
It can only be achieved by understanding.^
^
Albert Einstein ^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Marco Mililotti / [EMAIL PROTECTED] /
http://www.dadacasa.com/yah/
============================================================================
------------------------------
From: "Arcanus Magicanus" <[EMAIL PROTECTED]>
Crossposted-To: redhat.networking.general,redhat.general
Subject: Re: sharing a modem on a win95 system and login in with linux
Date: Fri, 20 Aug 1999 09:00:12 +1000
Bill Pitz <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> In comp.os.linux.networking Martin <[EMAIL PROTECTED]> wrote:
<SNIP MARTINS MESSAGE>
> > Martin
>
<SNIP FIRST PART OF BILL'S MESSAGE>
> the cable modem to a Linux box, and run IP Masquerading. Then you can
> completely get rid of the "Sygate" software and Windows. With IP Masq.
> the Windows machine will also have transparent access to the internet
> through the Linux box...
>
> -Bill
>
<END SNIP'S>
I'm having a Beotch of a time compiling a 2.2 Kernel and want to do the same
thing as Martin more or less...But it's just lack of knowledge in compiling
the Kernel and also the configuration for the IP Masq... Could anyone
recommend a not so idiot proof guide other then the HOWTO's MINI-HOWTO's?
Well preferably...
Tkar,
Jace.
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
======== Over 73,000 Newsgroups = Including Dedicated Binaries Servers =======
------------------------------
From: "Tyler Beaton" <[EMAIL PROTECTED]>
Subject: Remote Login
Date: Thu, 19 Aug 1999 15:37:51 -0400
Hi everyone. I was just curious what might be the best way to remotely
login to a Redhat 6.0 box from a Windows box. I know that telnetting in as
root is as bad as it gets for security. I need most of the permissions of
root for this account so I can have a lot of control over the linux system -
which is going to be without a monitor in a closet. Is there an alternative
to using telnet from a Windows box?
Many thanks,
Tyler
------------------------------
From: "Tyler Beaton" <[EMAIL PROTECTED]>
Subject: ip_masq_portfw.o
Date: Thu, 19 Aug 1999 19:09:27 -0400
Hi everyone, I'm just curious what networking kernel compililation
option installs the module 'ip_masq_portfw.o'. I'm running Redhat 6.0 with
kernel version 2.2.11.
Many thanks,
Tyler
------------------------------
Subject: Re: Connect... headache: addendum
From: [EMAIL PROTECTED] (Mike)
Date: 19 Aug 1999 18:33:20 -0600
Forgot to include the contents of my smb.conf:
[global]
workgroup = WORKGROUP
security = user
interfaces = 192.168.1.1/255.255.255.0
domain master = yes
domain logons = yes
------------------------------
From: "John Bekas, Jr." <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,redhat.hardware.arch.intel
Subject: Re: NE2000 ISA help (Question 2)
Date: Thu, 19 Aug 1999 14:36:35 -0500
I just purchased an Asante EtherPak ISA NE2000 compatible card, and I'm
having similar problems.
I've turned off the PnP and I set the irq to 5 and memory address to
0x320. I've also compiled the ne2000 driver into the kernel (I get
undefined symbols if I try to load it as a module). My problem is that
the card is found, and I can ifup/ifdown and ifconfig it. However, I
can't contact anything on the network. The params to
/etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/resolv.conf are the
same as with my last card (Intel EtherExpress 10), which I got rid of
due to stability problems with its driver.
Other info: Both the network lights are on on my card, and my LAN modem
sees the machine. The card and config work fine under Windoze. No
problems can be seen from viewing /var/log/messages.
Suggestions?
John
------------------------------
** 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
******************************