Linux-Networking Digest #222, Volume #12         Sat, 14 Aug 99 11:13:28 EDT

Contents:
  IPchains crazy (Marco van Berkel)
  DNS & IP-Masq. (Billy)
  PPP/ISDN problems (Jade Weatherill)
  Re: IMAP clients for linux (Bruce Stephens)
  Re: ipmasqadm error ("Steve Cowles")
  please help can't see the host when bridging ([EMAIL PROTECTED])
  Re: Fetchmail at startup (Sim)
  Re: route problem: Can't add gateway address (Cornel Popescu)
  Re: IP Forwarding/Redirecting to a Proxy? ("D.Krivitsky")
  How can I connect to PPP server ("ton")
  Re: Serial Cards for Linux for PPP Server in the UK ? (Maurice Janssen)
  Re: Seeking Linux UDP broadcast forwarding solution ([EMAIL PROTECTED])
  Automatically dial the internet from my firewall/router? ("Jim Orfanakos")
  Re: ethernet problems and AMD79C974 ("Floyd")
  Re: Networking via Null Modem (Rob van der Putten)
  Re: DHCP + 3C509B NIC ?? (Monte Phillips)
  Re: script problems (Abdullah Ramazanoglu)
  Change IP from remote computer.. ("AW")
  Re: Is 3Com's 3c905B NIC compatible with Linux? (Dave Edick)
  Re: ipchains port forward, ipmasqadm mfw (Peeter Russak)
  Re: Linux network problem (randomly dies)... can anyone help? ("Seth" together.net>)

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

Date: Sat, 14 Aug 1999 13:35:36 +0200
From: Marco van Berkel <[EMAIL PROTECTED]>
Subject: IPchains crazy

Although I received help from several people things are still are not
working.


Internet    <->     Linux RH 6.0            <->  Win98
                          (eth1:1.2.3.4)
                          (eth0:192.168.1.1     <->  (192.168.1.2)

Ip masquerade intstalled and browsing from the win machine goes well.

But when I  try to play Setllers from the winmachine I can not get
connected.
In fact Bluebyte has a script to adjust the MS-proxy settings, but he I
am using LINUX...
I know the ports that are used and I tried to set IPCHAINS like this:


Chain input (policy ACCEPT):
target     prot opt     source                destination
ports
ACCEPT     udp  ------  anywhere              192.168.1.2           any
->   2300:2400
ACCEPT     tcp  ------  anywhere              192.168.1.2           any
->   2300:2400
ACCEPT     udp  ------  anywhere              192.168.1.2           any
->   3343:3345
Chain forward (policy DENY):
target     prot opt     source                destination
ports
MASQ       all  ------  anywhere              anywhere              n/a
Chain output (policy ACCEPT):
target     prot opt     source                destination
ports
ACCEPT     tcp  ------  192.168.1.2           anywhere
47624 ->   any
ACCEPT     udp  ------  192.168.1.2           anywhere
2300:2400 ->   any
ACCEPT     tcp  ------  192.168.1.2           anywhere
2300:2400 ->   any
ACCEPT     udp  ------  192.168.1.2           anywhere
3343:3345 ->   any
--

Ok what am I doing wrong ???????
And what is a way to check traffic on ports of my server,

PLEASE HELP....

Marco van Berkel
[EMAIL PROTECTED]



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

From: Billy <[EMAIL PROTECTED]>
Subject: DNS & IP-Masq.
Date: Sat, 14 Aug 1999 11:56:05 +0100

I posted a question to this newgroup last week about a problem I had
with my IP-masq clients trying to resolve hostnames forever when I had
no net connection.
It was suggested that I set up a caching DNS server to try and fix it,
which I've now done.  Alas, I'm getting the same problem still.
Is there any way I can set named/bind (v8) to timeout more quickly if my
PPP connection is unavailable?
I had also thought on adding/removing a firewall rule for DNS when the
connections is made and broken, but this seems a fairly inelegant way of
doing it...
Any help or pointers much apprectiated...
Billy.

-- 
Every word is like an unnecessary stain on silence and nothingness.
                -- Beckett

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

From: Jade Weatherill <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help,comp.os.linux.questions,comp.os.linux.setup
Subject: PPP/ISDN problems
Date: Sat, 14 Aug 1999 12:49:50 BST
Reply-To: Jade Weatherill <[EMAIL PROTECTED]>

I've got a RH 5.2 linux server which acts as a proxy and DNS to some PCs on
a network using a 192.168.x.y address.

I configured PPPd and chat to dialup using an external 33K modem and it all
works perfectly with my demon dialup account.  I get 0% packet loss when I
ping demons web server.

I then had an ISDN line installed and bought a USR 64K external TA, edited
the chat script accordingly.  It dials up perfectly and sets up a route and
it all works, except its intolerably slow.  I get at least a 50% packet loss
pinging the same server.

I rang demon they suggested another 'phone number and changing the mtu and
mru to 576.  It *may* have made it *slightly* less bad.

Why should it work perfectly with the modem and not the external TA which is
essentially exactly the same as modem.  All I changed was the chat script.

When pinging an external site I can see the RX and TX lights flashing
accordingly and I can see that only about 50% of the TXs get an RX when
pinging.  It's almost like the remote sites are not responding.  Could half
my pings be malformed?  When pinging it really seems like one works then the
next not then the next works and so on - almost a pattern.

Can anyone help?

I've tried reinstalling on another PC and it did not work.  I've try under
win 95 and it works perfectly so it must be a linux thing.

Any help is appreciated, thank you. 

-- 
 __  __  __  __      __ ___   _____________________________________________
|__||__)/ __/  \|\ ||_   |   /
|  ||  \\__/\__/| \||__  |  /...Internet access for all Acorn RISC machines
___________________________/ [EMAIL PROTECTED]

... I forgot my tagline file...


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

From: Bruce Stephens <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x,comp.os.linux.development.apps,comp.windows.x.kde
Subject: Re: IMAP clients for linux
Date: 14 Aug 1999 12:40:30 +0100

[EMAIL PROTECTED] (Chetan Ahuja) writes:

>  Apart from huge and lumbering Netscape and text only pine, what's a
>  good (preferably GUI) IMAP client for Linux....

I tried Gnus <URL:http://www.gnus.org> with nnimap
<URL:http://www.extundo.com/gnus-imap/nnimap.html> yesterday, and it
seemed to work well.

I think it may require pgnus (the pre-release Gnus), however.

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

From: "Steve Cowles" <[EMAIL PROTECTED]>
Subject: Re: ipmasqadm error
Date: Sat, 14 Aug 1999 12:09:31 GMT

Since you did not post what distribution you are using, I'm going to
reference RH6.0 as an example.

Hope this helps
Steve Cowles
SWCowles at gte dot net

First, there is no reason to recompile the kernel to get ipmasqadm to work
(if you are using RH6.0). Unfortunately, the folks at RedHat seemed to have
conveniently forgotten to include the ipmasqadm command and its libs with
the distribution<groan>. I had to download/compile/install ipmasqadm. Just
ipmasqadm, not the kernel.

With the above in mind, did you first load the "portfw" module? RedHat
includes this module with 6.0 in the /lib/modules/<kernel rev>/ipv4
directory.
[scowles@voyager scowles]$ cd /lib/modules/2.2.5-22/ipv4
[scowles@voyager ipv4]$ ls -l
total 74
-rw-r--r--   1 root     root        10516 Jun  2 08:06 ip_gre.o
-rw-r--r--   1 root     root         4800 Jun  2 08:06 ip_masq_autofw.o
-rw-r--r--   1 root     root         2616 Jun  2 08:06 ip_masq_cuseeme.o
-rw-r--r--   1 root     root         4724 Jun  2 08:06 ip_masq_ftp.o
-rw-r--r--   1 root     root         3668 Jun  2 08:06 ip_masq_irc.o
-rw-r--r--   1 root     root         6188 Jun  2 08:06 ip_masq_mfw.o
-rw-r--r--   1 root     root         4816 Jun  2 08:06 ip_masq_portfw.o
-rw-r--r--   1 root     root         3168 Jun  2 08:06 ip_masq_quake.o
-rw-r--r--   1 root     root         5228 Jun  2 08:06 ip_masq_raudio.o
-rw-r--r--   1 root     root         5168 Jun  2 08:06 ip_masq_user.o
-rw-r--r--   1 root     root         3044 Jun  2 08:06 ip_masq_vdolive.o
-rw-r--r--   1 root     root         8624 Jun  2 08:06 ipip.o
-rw-r--r--   1 root     root         5720 Jun  2 08:06 rarp.o

Second, are the ipmasqadm "libs" installed and available to ipmasqadm? When
I downloaded/compiled/installed ipmasqadm they ended up in
/usr/lib/ipmasqadm. ipmasqadm will "look" for the associated lib based on
the first command line argument passed to it. i.e.
ipmasqadm portfw bla bla bla

Plus, if I remember right... the "make install" (for ipmasqadm) runs
ldconfig to update the "run-time link bindings" so that the ipmasqadm libs
can be properly located.
[scowles@voyager ipv4]$ cd /usr/lib/ipmasqadm
[scowles@voyager ipmasqadm]$ ls -l
total 36
-rwx------   1 root     root         8344 Jun 19 21:12 autofw.so
-rwx------   1 root     root         8792 Jun 19 21:12 mfw.so
-rwx------   1 root     root         9465 Jun 19 21:12 portfw.so
-rwx------   1 root     root         7688 Jun 19 21:12 user.so

If the above conditions are satisfied, ipmasqadm should work <I know, famous
last words!>. Anyway, the following is a cut/paste from my rc.firewall file
that I constructed for my system. Only the relevant parts for ipmasqadm are
listed.

   # Add additional module support for autofw, mfw and portfw
   # ${MODPROBE} ip_masq_autofw
   # ${MODPROBE} ip_masq_mfw
   ${MODPROBE} ip_masq_portfw

# =========================================================
# Port Forwarding Settings (external to internal IP/ports)
# =========================================================
if [ -x ${IPMASQADM} ] ; then

      ${IPMASQADM} portfw -f
      # ${IPMASQADM} autofw -f
      # ${IPMASQADM} mfw -f

      ${IPMASQADM} portfw -a -P tcp -L ${EXT_IP} 80  -R ${EXCH_IP} 80
      ${IPMASQADM} portfw -a -P tcp -L ${EXT_IP} 110 -R ${EXCH_IP} 110
fi


Douglas J. Olivier <[EMAIL PROTECTED]> wrote in message
news:i02t3.15200$[EMAIL PROTECTED]...
> Anyone ever encounter this type of error ?
>
>
> frankie:/home/doug# ipmasqadm portfw -a -P tcp -L 24.218.79.16 80 -R
> 192.168.1.2 80
> portfw: setsockopt failed: Invalid argument
>
>



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

From: [EMAIL PROTECTED]
Subject: please help can't see the host when bridging
Date: Sat, 14 Aug 1999 12:14:37 GMT

I have followed the bridging mini-howto word for word except i have
given one interface an ip. When I give both interfaces an IP only
people on the hub connected to the interface which is brought up first
can see the host but the rest of the network can talk easily. If i
bring the interfaces up in a different order the problem reverses.

I have tried with both interfaces having and IP, on interface having an
IP and none having an ip but giving one an alias. No matter what I seem
to do only one half of the network can see the host at one time.

The closest I have come to getting it to work is giving my interfaces
192.168.1.1 and 192.168.2.1 and having the people on one side have an
ip coresponding to the interface. This option is less desirable but
also has problems. The people on the side of the interface brought up
first can ping the host and everyone else but the people on the second
interface can ping the host but not the people on the other side. I
then changed the subnets on all windows machines to 255.255.0.0 and
pinging worked fine, but they were unable to browse using smb on any
computer with a different subnet. Upping the subnet on the linux host
returns me to the original problem of only one side seeing the host.

Can anyone help me either fix my problem with the second solution and
samba or help fix the first one(that is the prefered option as i'd like
not to have to change the subnet). If so please reply or email me
[EMAIL PROTECTED]

Thanks

Adam Charles


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

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

From: [EMAIL PROTECTED] (Sim)
Subject: Re: Fetchmail at startup
Date: Sat, 14 Aug 1999 12:13:27 GMT

On Tue, 10 Aug 1999 03:08:13 GMT, "Cowles, Steve" <[EMAIL PROTECTED]>
wrote:

>I use fetchmail to pull mail for myself and my wife from our ISP and store
>it locally on my linux box.
>
>To enable fetchmail to run as a regular user (NOT AS ROOT) out of rc.local:
>
># Enable Fetchmail Deamon for Pulling Email from Remote Server
>/bin/su -c "/usr/bin/fetchmail" scowles
>sleep 10
>/bin/su -c "/usr/bin/fetchmail" pcowles

Thanks, I'd quite forgotten that I needed /usr/binduring boot up as
the $PATH is not verg long at that stage.  As fertchmail does not have
a default rc file (unlike for example procmail) then I am also now
using the -f tag.

Thanks

Simon

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

From: Cornel Popescu <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: route problem: Can't add gateway address
Date: Sat, 14 Aug 1999 12:20:12 GMT

In article <u49t3.1527$[EMAIL PROTECTED]>,
  "mark" <[EMAIL PROTECTED]> wrote:
> Your problem may very likely be this simple:
>
> instead of just 'route', run 'route -n', which prevents the
translation of
> numeric addresses to names.  I have a box that exhibits the same
symptoms
> you describe if I just run 'route' (hangs forever, until ^C), but
shows
> everything perfectly with 'route -n'.

You might also add the gateway in /etc/hosts , like
166.104.88.1            mygateway.mydomain.whatever  mygateway
and make sure /etc/nsswitch.conf reads files before dns for resolving
hosts if you really want to see names instead of IP's ...

> > Youjip Won <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]...
> > > Dear Linux guru,
> > >    I am fan of linux, but never ever able to get the network setup
in
> > > one shot. This time was not an exception. After several trials and
> > > errors, I am finally writing this message in a hope that I could
get
> > > some help.
> > >
> > > To make long story short, I cannot add gateway to routing table.
> > >
> > > Here's what had happened. I can ifconfig and route add 'lo' and
'etho'.
> > > When I do "route add default gw 166.104.88.1", it does not
complain.
> > > BUT, if I type 'route' to verify the gw in routing table, it goes
to the
> > > infinite loop. It only shows the first two lines in routing
table(lo,
> > > eth0) and goes into infinite loop. I eagerly hope that someone
have had
> > > similar problems and provide me some clue.


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

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

From: "D.Krivitsky" <[EMAIL PROTECTED]>
Subject: Re: IP Forwarding/Redirecting to a Proxy?
Date: Sat, 14 Aug 1999 08:35:12 -0400


[EMAIL PROTECTED] ����� � ��������� <7p2oh0$vmq$[EMAIL PROTECTED]> ...
>
>> >That is, something like the following:
>> >   ipfwadm -F -i accept -r 12345 -P tcp -S your.network/mask -D
>0.0.0.0/0
>> 80
>> >   ssh -l your-account provider.proxy.machine -L 12345:127.0.0.1:3128
>>
>> Or even without an account at the remote proxy:
>> ssh -l your-account 127.0.0.1 -L 12345:provider.proxy.machine:3128
>
>hmm... interesting idea, but I don't know if it would work.  I don't
>know if ssh can fix the packets so they look exactly right for the
>proxy.


Ipfwadm also don't fix the packets, if you have your transparent proxy at
your gateway. As far as I know, Squid supports somehow transparent proxy, so
it determines somehow the IP address of the server to send requests. (I
don't know how it determines it.)



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

From: "ton" <[EMAIL PROTECTED]>
Subject: How can I connect to PPP server
Date: Sat, 14 Aug 1999 19:32:42 +0700

I use redhat linux 6 on pentium MMX 200 MHz as beginner. I want to know how
can I connect to PPP server by modem ,please reply to [EMAIL PROTECTED] thank
you...



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

From: Maurice Janssen <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.setup
Subject: Re: Serial Cards for Linux for PPP Server in the UK ?
Date: 14 Aug 1999 13:09:39 GMT

In comp.os.linux.setup David Travers <[EMAIL PROTECTED]> wrote:
: Does anyone know of cheap but reliable multi-port serial cards (4 ports or
: more) that can be used with external modems to create a PPP server (ISA or
: PCI).

I have been using a 4-port card from Byterunner since some time
(www.byterunner.com). Until now, I am quite happy with it. It supports
interrupt sharing. I don't know how it will perform under full load, I have
only a UPS and some terminals connected to it.

: If you have prices, web links, technical info etc that would be great.

I think I paid about $55 for it (excl. shipping).

HTH, Maurice
-- 
Maurice Janssen       |    The best way to accelerate 
                      |    a computer running Windows
[EMAIL PROTECTED]    |    is at 9.8 m/s^2

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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.development.system,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: Seeking Linux UDP broadcast forwarding solution
Date: 14 Aug 1999 23:15:05 +1000

In comp.os.linux.networking epadin <[EMAIL PROTECTED]> wrote:
> The Cisco router has a 'udp forward' command whereby you specify the
> UDP port and it will forward all UDP broadcast traffic seen on the

You're probably looking for udprelay, which can be found at
ftp://coast.cs.purdue.edu/pub/tools/unix/udprelay-0.2.tar.gz

Unfortunately, it doesn't compile on my box (RH6), but the following
patch seems to work (disclaimer: I didn't test it much).

        -Daz.


diff -C2 udprelay-0.2.orig/Makefile udprelay-0.2/Makefile
*** udprelay-0.2.orig/Makefile  Sat Oct 30 12:40:46 1993
--- udprelay-0.2/Makefile       Sat Aug 14 22:54:33 1999
***************
*** 11,16 ****
  # for ODT 2.0
  CC=gcc
! OPTS=-DSYSV
! LIBS=-lsocket
  # for AIX
  # OPTS=-DAIX
--- 11,17 ----
  # for ODT 2.0
  CC=gcc
! OPTS=-DLINUX
! #OPTS=-DSYSV
! #LIBS=-lsocket
  # for AIX
  # OPTS=-DAIX
diff -C2 udprelay-0.2.orig/udprelay.c udprelay-0.2/udprelay.c
*** udprelay-0.2.orig/udprelay.c        Sat Oct 30 12:12:51 1993
--- udprelay-0.2/udprelay.c     Sat Aug 14 22:59:46 1999
***************
*** 78,81 ****
--- 78,85 ----
  #include <sys/ioctl.h>
  #endif
+ #ifdef LINUX
+ #include <fcntl.h>
+ #define FIONBIO       O_NONBLOCK
+ #endif
  #include <pwd.h>
  #include "udprelay.h"
-- 
Darren Tucker.          (dtucker at the domain zip dot com dot au)
A programmer is a device for converting caffeine into source code.

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

Reply-To: "Jim Orfanakos" <[EMAIL PROTECTED]>
From: "Jim Orfanakos" <[EMAIL PROTECTED]>
Crossposted-To: linux.redhat.misc
Subject: Automatically dial the internet from my firewall/router?
Date: Sat, 14 Aug 1999 13:28:28 GMT

I have small LAN setup that includes a DHCP server, DNS server, internal Web
server, and a firewall/router server.

I use a Redhat 6.0 box as my firewall/router (IPCHAINS).  I manually connect
to the internet from my firewall/router, then all the other systems can go
to the internet.

How can I set it up so if a computer on the LAN needs to connect to the
internet, the firewall/router will automatically dial out...and disconnect
after a certain tine of inactivity?

Thanks.

 ------------------------------------------------------
 Jim, Monika and Sophia Orfanakos
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 http://www.orfanakos.com
 ------------------------------------------------------



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

From: "Floyd" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: ethernet problems and AMD79C974
Date: Sat, 14 Aug 1999 21:55:39 +0800

Hi,
I meet such problem before. My Pc is Compaq Deskpro 5120. The problem
resolved only after I recompiled the kernel. My kernel is 2.0.36. You can
try to change the status from DHCP to Bootp. Well, I recompiled the kernel
for 6+ times!! It always prompts me the kernel is too large(>512K).
Hope will helps.

floyd.

Jonathan Bowman wrote in message <[EMAIL PROTECTED]>...
>   When activating my eth0 interface, the system responds, "eth0:
>unknown interface."  Using netcfg, I have added the eth0 interface,
>specifying dhcp, and activate interface at boot time, but nothing else
>(is this enough, since I am using dhcp?)  I have also given netcfg the
>nameserver addresses, and in "Routing" I have given the default gateway
>address, and specified the device as "eth0."  Is any of this wrong or
>not enough?
>    The only problem I can see is perhaps with my ethernet card itself.
>I have a Compaq Deskpro XL 575 with onboard ethernet (AMD79C974), which
>uses the pcnet32 driver.  When I select the driver to use (using
>linuxconf), I do not see pcnet32 -- can I add this driver (which is in
>my /lib/modules/net directory) without recompiling the kernel, or do I
>not need this driver (I have tried ne2k-pci)?  Any suggestions would be
>helpful.
>
>e-mail is preferable,
>Jonathan Bowman
>



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

From: Rob van der Putten <[EMAIL PROTECTED]>
Subject: Re: Networking via Null Modem
Date: 14 Aug 1999 15:36:22 +0200

Hi there


Arch Angel <[EMAIL PROTECTED]> wrote:

> got to http:\\www3.cotse.com and search for null modems, if it is not onsite
> leave your question with them and they will post it to the site within 24hrs

You can use the leased line mini howto for null modems as well.
Just skip the modem part.


Regards,
Rob

-- 
+------------------------------------------------------------------------+
|                Rob van der Putten, [EMAIL PROTECTED]                 |
|              http://www.sput.webster.nl/spam-policy.html               |
+------------------------------------------------------------------------+

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

From: [EMAIL PROTECTED] (Monte Phillips)
Subject: Re: DHCP + 3C509B NIC ??
Date: Sat, 14 Aug 1999 13:19:40 GMT

You don't want to assign your local IP address to the interface that
is outgoing to net.  It should sither be dynamically assigned by ISP
or the IP is a static one that the ISP pre-assigns you.


>> <[EMAIL PROTECTED]> wrote:
>> >Hello-  I have installed two 3C509B cards in my RedHat 6.0 system.  I
>have
>> >configured them with the DOS utility to both have PnP Disabled and they
>have
>> >separate IRQ's.  Using the control-panel applet in Gnome I configured
>eth0
>> >to use DHCP and activate at boot.  I configured eth1 with a 192.168.x.x
>IP
>> >address.
>> >   My problem is then when I connect eth0 to my cable modem it says on
>boot
>> >that:
>> >
>> >bringing up device eth0
>> >FAILED: unable to determine IP information. FAILED.
>> >
>> >After this if I run ifconfig I get only information for lo and eth1.
>> >
>> >I KNOW my ISP uses DHCP, and I have heard of some who use it successfully
>> >with this ISP.  What is my problem.  I have read the DHCP mini-HOWTO
>without
>> >much luck.  Am I being to vague, missing something obvious, or just
>stupid.
>> >Why am I not getting a public IP address?  Any help or suggestions would
>be
>> >greatly appreciated.  Thanks.
>> >Stew Rappaport


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

From: Abdullah Ramazanoglu <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions
Subject: Re: script problems
Date: Sat, 14 Aug 1999 16:56:26 +0300

Roger wrote:
> 
> I'm having a script problem with my RH6 system...
> 
> ----------------------------------------------------------------------------
> #!/bin/sh
> 
> ipaddress=`ifconfig | grep -i "p-t-p" | cut -d : -f 2 | cut -d P -f 1`
> thedate=`date`
> resolved=`nslookup $ipaddress | grep -i name | cut -d : -f 2`
> 
> sleep 60; echo Attention: Your computer came back up on $thedate with
> the following ip address of $ipaddress and a dns lookup tells that your
> hostname is set to $resolved | mail root@localhost, grunky@localhost,
> [EMAIL PROTECTED] -s "System Back Up"
> 
> hostname $resolved
> ------------------------------------------------------------------------------
> 
> Above is a script that will do the following
> 
> 1 determine the machines ip and dns name when it boots(changes because I
> dial in)
> 2 set the new hostname
> 3 email me, and various other incarnations of myself, reguarding the
> change
> 
> I tested this script when the computer was up and running, just to see
> if it works, and it does!  However, if the script is called from
> /etc/rc.d/rc.sysinit the script will leave out the ipaddress and
> resolved fields, leaving them blank.

I would suggest calling it from /etc/rc.d/rc.local (the last one
executed in rc sequence) Also, posting of env output run just before the
script could be helpful.

> 
> Any ideas on how I could get the script to include these varables when
> called at bootup??
> 
> Thanks for any help....
> 
> Lastly the sleep 60 allows time for the modem to dial, connect,
> negotiate and so forth.

BTW I couldn't quite understand what you really want to do. If you want
to connect internet, get your dynamic IP address, and post it to
yourself -say- at work (so that you can access your home-www from
internet), then this scheme wouldn't achieve it: Because you are
grepping out your IP address *before* connecting internet and getting
your real/dynamic IP address.

If this is the case, I would fire up pppd from within rc.local, get my
dynamically assigned IP address from within /etc/ppp/ip-up, and post
relevant info to my-other-self *after* that.

Note: /etc/ppp/ip-up script is auto-called by pppd upon link
establishment. pppd also passes a lot of useful info (IP adresses, tty
device etc.) as env. variables to this script, so you don't need to grep
it out of ifconfig. See man pppd for this.

If your goal is something else, please tell us in more detail.

Good luck
-- 
Abdullah Ramazanoglu    [ aramazanoglu AT demirbank DOT com DOT tr ]

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

From: "AW" <[EMAIL PROTECTED]>
Subject: Change IP from remote computer..
Date: Sat, 14 Aug 1999 22:07:53 +0800

Hi

I telnet to a remoted linux box and use ifconfig command to change the IP
address. after change it, I can't telnet it any more.
Pls tell me what happen and what to do....
Thx



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

From: [EMAIL PROTECTED] (Dave Edick)
Subject: Re: Is 3Com's 3c905B NIC compatible with Linux?
Reply-To: [EMAIL PROTECTED]
Date: Sat, 14 Aug 1999 14:14:44 GMT

I've run dozens of machines with these cards under Linux with no problems.
Nor have I ever needed upgraded drivers for any distribution from RedHat 5.0
on.  In fact, I've got a machine at work that's been running for about 200 days
straight doing serious network work (running as a news server among other
things) running RH 5.0 with a 3c905 in it.  The uptime would have been a year
but there was a power failure that outlasted the UPS batteries.

On Fri, 13 Aug 1999 16:26:09 GMT, [EMAIL PROTECTED] wrote:
>In article <7nepo1$o8f$[EMAIL PROTECTED]>,
>  "Chris" <[EMAIL PROTECTED]> wrote:
>> I've got 3com's 3c905B NIC. This card is
>connected to my alcatel ADSL modem.
>> This modem has got 3 inputs. 1st one for 'ATM-
>25' (my ATM card connects
>> here), 2nd one for '10 Base-T' (my 3c905B
>connects here) and third one is
>> for the rj-11 line (phone line).
>>
>> Is there any driver that I can use to enable it
>to work in Linux? I've tried
>> the 3c509 and the 3c59x modules (i am using
>redhat 6.0) but but gave me an
>> error message saying that it was unable to load
>the module.
>>
>> Has anybody got a similar configuration that
>worked for them? Pls get back
>> asap. Thanks.
>>
>>
>
>Hello Chris,
>
>I had a heck of a time figuring out what was
>wrong with my 3C905B-TX NIC card.  It turns out
>that no driver exists for RedHat 5.2 Linux that
>works properly (that I know of anyway).  Luckily
>for me, I had an ISA 3C509 in my other system.  I
>swapped them out, and then I was ok.  I know that
>this is not a great solution, but I had to do it
>to get my systems on the network.
>
>Rob Galante
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.

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

From: Peeter Russak <[EMAIL PROTECTED]>
Crossposted-To: redhat.networking.general
Subject: Re: ipchains port forward, ipmasqadm mfw
Date: Sat, 14 Aug 1999 16:55:22 +0300

: Amir Malik <[EMAIL PROTECTED]> wrote in message
: news:7ovsgb$28m$[EMAIL PROTECTED]...
:> I want to forward all incoming and outgoing traffic on 121.223.224.33
:> (internet machine/gateway/router) on port 1755(TCP) to internal host
:> 192.168.0.5 onto port 1755(TCP). So basically, I am setting up a streaming
:> media server on the .5 machine and would like in/out connecions to
:> 121.223.224.33 to be redirected/forwarded to 192.168.0.5. I have ipmasqadm
:> and ipchains installed.

ipmasqadm portfw -a -P tcp -L 121.223.224.33 1755 -R 192.168.0.5 1755

-- 
Peeter([EMAIL PROTECTED])

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

From: "Seth" <smanley< no spam >together.net>
Subject: Re: Linux network problem (randomly dies)... can anyone help?
Date: Sat, 14 Aug 1999 10:30:53 -0400

Jay,

Have you checked the system message log's for clues?  I have seen where a
resource conflict could cause a device to misbehave, which might get
reported in /var/log/messages.

-Seth



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


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