Linux-Networking Digest #150, Volume #12          Sun, 8 Aug 99 08:13:24 EDT

Contents:
  determining dynamic ip (Roger)
  Automatic @-mail forward... (Sai Chivukula)
  Firewall on same subnet? (Kyle Page)
  Re: determining dynamic ip (Roger)
  linux client / wingate server ([EMAIL PROTECTED])
  Newbie using kppp on Linux-Mandrake 6 (&KDE) ("Jonathan Wilson")
  Re: Telnet Problem(microsoft) ("Romiko")
  The join command ("Romiko")
  Re: Automatic @-mail forward... ("vladimir plotnikov")
  Squid and cgi ("Horst Lederhaas")
  Re: Changing my NIC IRQ number ("news")
  Re: Problem with socket closure in 2.2 kernel? ([EMAIL PROTECTED])
  new to Linux ("John Hill")
  innfeed spawning/restarting (Piet Schipper)
  startinnfeed keeps complaining (Piet Schipper)
  Re: Converting an NT server to Redhat 6.0 (Piet Schipper)
  Re: X-Windows based firewall??? (pressy desai)
  Re: Automatic @-mail forward... (Piet Schipper)
  POP3 server for Red Hat 6.0 ? ("Bigboss")
  RFC1178.TXT Choosing a name for your computer? ("Andrew Taylor")

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

From: Roger <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions
Subject: determining dynamic ip
Date: Sun, 08 Aug 1999 01:26:59 -0500

I need some help.

I'm looking for a way to determine my ip address, it changes whenever I
reboot because I have to dial in...  If I type ifconfig I get this
result.

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:212510 errors:0 dropped:0 overruns:0 frame:0
          TX packets:212510 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

ppp0      Link encap:Point-to-Point Protocol
          inet addr:208.235.19.170  P-t-P:208.235.19.130
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:256396 errors:4 dropped:0 overruns:0 frame:4
          TX packets:277715 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10

A whole bunch of junk...  However I just need to get the following info
the 208.235.19.170 - thats my ip address.  How much can I filter out
with either grep or any other program that will cut it down to just the
ip - maybe after the first colon then 15 spaces after that(3.3.3.3).

Any ideas on how I can do this???  So far I've just got it down to an
entire line of output.  "P-t-P" seams to be the only unique string of
text I can identify to get grep to spit out that line - even though I'm
shooting for the inet addr value.

[grunky@peoria32 grunky]$ ifconfig | grep "inet addr"
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet addr:208.235.19.170  P-t-P:208.235.19.130
Mask:255.255.255.255

Spits out to much info, but

[grunky@peoria32 grunky]$ ifconfig | grep "P-t-P"
          inet addr:208.235.19.170  P-t-P:208.235.19.130
Mask:255.255.255.255

Gives me the line I want.  Now just to trim it down to inet addr value

Am I going about this the wrong way??  Should I be using ifconfig and
then grep to cut things down or is there a utility that will do this for
me?  Any help would be appreciated.

Thanks.


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

From: Sai Chivukula <[EMAIL PROTECTED]>
Subject: Automatic @-mail forward...
Date: Mon, 09 Aug 1999 00:58:03 +0530
Reply-To: [EMAIL PROTECTED], [EMAIL PROTECTED]

Hi,

   With the ".forward" in our mail directory one can forward
   the incoming mails to another. But we cannot store the
   mail/s.

   Any way to store a copy and also to forward the same to
   another e-mail address?? 

   Also I don't want to forward big mails(say above 0.5MB) but
   instead store them. Any script(s) pl.??

   Thanks in Advance.

-- 

Bye,
Sai
+----------------------------------+-----------------------+
| Chivukula S. Girinath Sai        . H-4, DD Colony,       |
|                       ^^^        . BaghAmberpet,         |
| Tel  : +91-040-760 7842/766 3337 . Hyderabad - 500 013,  |
| Fax  : +91-040-761 2860          . Andhra Pradesh,INDIA. |
| Email:  [EMAIL PROTECTED], [EMAIL PROTECTED]      |
+----------------------------------+-----------------------+
      Share what you know. Learn what you don't.

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

From: Kyle Page <[EMAIL PROTECTED]>
Subject: Firewall on same subnet?
Date: 07 Aug 1999 17:16:12 PDT

I'm not sure if this is even possible (thus the post) but...
I'm trying to setup a Linux Firewall (using Red Hat v5.2) between my DSL
router and my local LAN.  It goes something like this:

 ------      -----------           ----------                -----
| WAN  | -- | My router | ------- | Firewall | ------------ | LAN |
 ------      -----------           ----------                -----
               x.x.86.161    x.x.86.162   x.x.86.163

Subnet:   255.255.255.240
Network:  x.x.86.160

As you can see from the above, I'm trying to place the Firewall on the
same subnet as the network for which I'd like to protect.  That is,
between my router and LAN.  It seems like this would be possible
somehow???  The problem I'm having now is that when I activate both
cards on the firewall, only the last card to be activated is reachable..
that is ping'able from the firewall machine.  For example, if eth0 and
eth1 are configured as x.x.86.162 and x.x.86.163 respectively, then I
can only ping x.x.86.163 (assuming it is activated last).  If I activate
eth0 last, then only eth0 is reachable.  However, if I configure them so
they are on separate networks, let's say eth0 = x.x.85.122, and eth1 =
x.x.86.163 and activate them both, they are both reachable.  It is only
when both NICs are configured to be on the same network that I have this
problem.  Therefore, I have ruled out any hardware problems.  Would this
"routing" issue be handled by "ipfwadm"?  I've looked many places for a
solution and I'm starting to lose gumption (sited "Zen and the Art of
Motorcycle Maintenance") :)  My DSL router does have Firewall software
but I'd rather not spend the extra cash.. and I'd rather do it myself.

Cheers,
Kyle


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

From: Roger <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.questions
Subject: Re: determining dynamic ip
Date: Sun, 08 Aug 1999 02:28:13 -0500

Michael Longval MD wrote:

> Try this
>
> ifconfig | grep "P-t-P" | cut -d : -f 2 | cut -d P -f 1
>
> it does the trick on my system.  :-)

Hey thanks for the info AND the quick reply.  I put this in a small script
and its set to run during boot.  If my system ever goes down and comes back
up I'll know what its new ip is.  Computer is set to dial in automatically -
sleep delay allows the modem to connect, etc..

#!/bin/sh

ipaddress=`ifconfig | grep "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 20; 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

This script will set determine the ip, appropriate hostname, and set the new
hostname..  Please check to see if this is correct - should work....

> Michael J. Longval, MD
> [EMAIL PROTECTED]
>
> ------------------------------------
> The ealy bird gets the worm,
> but the late mouse gets the cheese.

Guess I'm a mouse - its 2:30am!!


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

Subject: linux client / wingate server
From: [EMAIL PROTECTED]
Date: 8 Aug 99 01:51:45 EDT

hi guys...got a tough one

I have a home LAN which I've put together. The first of three machines Is running 
wingate, and has a dedicated
line into the internet (via cable modem).  The other machines (with the exception of 
one) are running win95/98
and have the wingate client software installed.  They access the internet without a 
problem, using the wingate
server.

Here's the problem.  I have one client machine running linux (rh 6.0).  I figured that 
the only thing I would
need to do would be to point the linux box to the wingate machine as my default 
gateway, dhcp server and dns
server (seeing as how wingate, to an extent acts as all three.  The wingate server 
does assign the IP address
to the linux box. And, the wingate machine is acting as the gateway.  However, 
whenever I do anything that
requires dns lookup, the linux box just sits there, acting like it doesnt know what to 
do.  For example, if I
type in an IP address of a www site into netscape or lynx, it goes lickety split.  
But, when i put in the
corresponding URL name (or ANY url) it just sits there, and sometimes locks up the 
browser!

Here's what Ive tried:

1.  Using the Wingate machine as DNS server, by enabling the DNS service on the 
Wingate box
2.  Disabling the wingate DNS service, and putting in a valid DNS server into 
/etc/resolv.conf
3.  Disabling the wingate DNS service, and enabling TCP Mapping under wingate

Now, I know that the easiest solution (albeit the longest to do) would be to get rid 
of wingate and setup the
cable modem on a linux box using ip masquarading.  However, I can't do that for 
reasons that I really dont
feel like going into.

Can anyone help me?  Seeing as how I really don't surf the ng's that often, please 
email me the solution @:
[EMAIL PROTECTED] or [EMAIL PROTECTED]

Thanx in advance

Mike U.
  

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

From: "Jonathan Wilson" <[EMAIL PROTECTED]>
Subject: Newbie using kppp on Linux-Mandrake 6 (&KDE)
Date: Sun, 08 Aug 1999 07:53:11 GMT

Hi,
I need some assistance with kppp. I set my connections up using linuxconf.
Kppp will dial the modem (Creative Labs Modem Blaster) and start to log in,
but in the end it reports:

�Error
    Timeout expired while waiting for the PPP interface to come up!�

Additionally, I think it�s a problem with kppp (I�m not sure though),
because when I use the connect in linuxconf it doesn�t complain. But I don�t
know how to test that to make sure (I�ve only had it installed for 48 hours)

Thank in advance.
  JW

=========================
To all fellow penguins: May your iceberg stay frozen :-)





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

From: "Romiko" <[EMAIL PROTECTED]>
Subject: Re: Telnet Problem(microsoft)
Date: Sun, 8 Aug 1999 09:33:08 +0200

But I use the ip address to connect not a host name
Andrey Smirnov wrote in message <7oionf$8pi$[EMAIL PROTECTED]>...
>The ip address of the source machine needs to be in the hosts file of the
>destination machine.
>
>Good luck!
>
>Romiko <[EMAIL PROTECTED]> wrote in message
>news:7ogup8$6iv$[EMAIL PROTECTED]...
>> I use Microsoft Telnet and it takes a long time to connect to my Linux
>> machine, why? It is not the network.
>>
>>
>
>
>



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

From: "Romiko" <[EMAIL PROTECTED]>
Subject: The join command
Date: Sun, 8 Aug 1999 09:51:17 +0200

How do u use the join command to join to tables that do not have a primary
key?



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

From: "vladimir plotnikov" <[EMAIL PROTECTED]>
Subject: Re: Automatic @-mail forward...
Date: Sun, 8 Aug 1999 16:29:30 +0700

Hello!

Sai Chivukula <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>    With the ".forward" in our mail directory one can forward
>    the incoming mails to another. But we cannot store the
>    mail/s.
write in . forward file all recepients. for example:
in file .forward of user fred:
fred anyreceient@anyhost

--
vladimir y. plotnikov. phone (3832) 397917, phone/fax (3832) 322143
[EMAIL PROTECTED], 2:5000/73@fidonet ICQ UIN: 24270826
pr.Stroiteley, 13 Novosibirsk, Russia, p/o 630055.



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

From: "Horst Lederhaas" <[EMAIL PROTECTED]>
Subject: Squid and cgi
Date: Sun, 8 Aug 1999 11:15:34 +0200

i have a big problem.
when i try to contact a site with cgi scripts allways this error message
appear:

====================================================
ERROR

The requested URL could not be retrieved

While trying to retrieve the URL: http://www.ripe.net/cgi-bin/whois

The following error was encountered:

     Connection Failed

The system returned:

    (113) No route to host

The remote host or network may be down. Please try the request again.
=======================================================================

the problem i have is my isp closed the port 80 and so i must use the port
8080 over his proxy.
i know that squid try to contact cgi sites direct over the net, but when
there is no port 80 this message appear.
how can i config squid that it allways goes over the proxy from my isp?

greetings
Horst Lederhaas






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

From: "news" <[EMAIL PROTECTED]>
Subject: Re: Changing my NIC IRQ number
Date: Sun, 8 Aug 1999 19:24:39 +1000

Jo Knight wrote in message <7oh4ok$fr7$[EMAIL PROTECTED]>...
>Hi,
>
>I have an NE2000 NIC in my pc, Linux detected it fine when i installed it
>(Linux), the problem is it is set to IRQ 3.
can anyone help me as to how i change it to
>9?

I think you will need to change the EEPROM on the card, using a utility
program, on a DOS box.

You may have received a disk which allows reprogramming the card's settings.

>
>Many thanks!
>
>[EMAIL PROTECTED]
>
>



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

From: [EMAIL PROTECTED]
Subject: Re: Problem with socket closure in 2.2 kernel?
Date: Sun, 08 Aug 1999 09:25:43 GMT

[EMAIL PROTECTED] (Thorsten Kuehnemann) wrote:
>The workaround is to read all unread data into the bitbucket.

At the risk of sounding stupid , what is the bitbucket and what are the unix
API calls in C to put data into it?

NJR

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

From: "John Hill" <[EMAIL PROTECTED]>
Subject: new to Linux
Date: Sun, 8 Aug 1999 11:02:42 +0100

I have set up Linux on an IP network

address is 120.1.1.2
netmask is 255.0.0.0

when I ping another machine on the network, the light on the hub flashes so
I guess the card/drivers are working, but there is no return. What route do
I need to put in ?



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

From: Piet Schipper <[EMAIL PROTECTED]>
Subject: innfeed spawning/restarting
Date: Sun, 08 Aug 1999 12:44:44 +0100

Hi everyone,

I'm trying to set up a local news server.
Basically it is working *BUT* every time a user connects or switches
groups innfeed gets spawned/restarted at a rate of 10 times per second.
part of /var/log/messages:

Aug  8 12:24:22 e-server innd[453]: innfeed!:18:proc:2284 closed
Aug  8 12:24:22 e-server innd[453]: innfeed! spawned
innfeed!:18:proc:2285
Aug  8 12:24:22 e-server innd[453]: innfeed! restarted
Aug  8 12:24:22 e-server innd[453]: innfeed! exit 1 elapsed 0 pid 2285
Aug  8 12:24:22 e-server innd[453]: innfeed!:18:proc:2285 closed
Aug  8 12:24:22 e-server innd[453]: innfeed! spawned
innfeed!:18:proc:2286
Aug  8 12:24:22 e-server innd[453]: innfeed! restarted

About 10 restarts, for a period of 8 seconds !
This also happens automatically, every 5 minutes.
It keeps the hard drive very busy ;-)

I think I have set-up the newsgroups etc correct.
I removed some files from /etc/news, because the PC is not connected
to the internet, and it kept trying to distribute files.
Here's what is left of /etc/news

-r--r-----   1 news     news          270 Jun 12  1998 actsync.cfg
-r--r-----   1 news     news          371 Jun 12  1998 actsync.ign
-rw-r--r--   1 news     news         4979 May  2  1998 cleanfeed.conf
-r--r--r--   1 news     news          491 Jun 12  1998 distrib.pats
-r--r-----   1 news     news         1537 Jun 12  1998 expire.ctl
-r--r-----   1 news     news          309 Aug  6 22:59 hosts.nntp
-r--r-----   1 news     news          161 Jun 12  1998
hosts.nntp.nolimit
-r--r--r--   1 news     news          833 Aug  6 22:36 inn.conf
-r--r--r--   1 news     news         3077 Jun 12  1998 innfeed.conf
-r--r-----   1 news     news         2977 Jun 12  1998 innwatch.ctl
-r--r--r--   1 news     news          633 Jun 12  1998 moderators
-r--r--r--   1 news     news         3829 Jun 12  1998 newsfeeds
-r--r-----   1 news     news          204 Aug  7 13:25 nnrp.access
-r--r-----   1 news     news          584 Aug  7 10:42 nntpsend.ctl
-r--r--r--   1 news     news          388 Jun 12  1998 overview.fmt
-r--r-----   1 news     news           81 Jul  9 10:56 passwd.nntp 


I know this is a tough question, but has anyone a clue ?
I'm running RedHat 5.2 (INN-1.7.2)

Thanks, Piet



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

From: Piet Schipper <[EMAIL PROTECTED]>
Subject: startinnfeed keeps complaining
Date: Sun, 08 Aug 1999 12:53:23 +0100

Hi everyone,

I'm trying to set up a (lcoal) news server.
I'm having a few problems, one of them is that innd keeps filling 
my /var/log/messages file with:

/usr/lib/news/bin/startinnfeed: execve: No such file or directory
/usr/lib/news/bin/startinnfeed: setrlimit(RLIMIT_NOFILE, RLIM_INFINITY):
Operation not permitted

With a few testposting, the messages file grows with 500kb per day due
to these errormessages.
I tried both starting rc.news as 'root', and as 'news'.


What's wrong ?

Thanks,   Piet


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

From: Piet Schipper <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Re: Converting an NT server to Redhat 6.0
Date: Sun, 08 Aug 1999 13:10:48 +0100

Hi Chris

> The windows 9x machines login to the
> server, making sure only the right people con login.  I have it using
> microsoft networking with the NT maching as a Domain Controller.  All the 9x
> machine users must then have their login verified by the domain server to
> access windows.  If I put redhat 6 on that computer, can I do anything
> similar to restrict access on the 9x machines

I assume that you will be using samba for sharing drives and printers.
You can still have the verification done by the domain controller.
In your /etc/smb.conf file, set:

security = domain
password server = <NT-Server-Name>


Good luck,

Piet

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

From: pressy desai <[EMAIL PROTECTED]>
Subject: Re: X-Windows based firewall???
Date: Sun, 08 Aug 1999 11:30:43 GMT


mikes wrote:
> 
> I am trying to build my firewall, and have been unsuccessful using an
> X-Window-less system. Manually dialling would *always* fail. So, today I
> reinstalled Redhat 6.0 (kernel 2.2.5-15) on the firewall and gave it an
> X-Windows interface. Now, I can dial out to my ISP and even pull in a www
> site or two using Lynx. This brings me to my next questions, which I hope
> you can give me some pointers on.
> 
> I know that my firewall needs to be able to dial to my ISP, but how do I
> automate this with RH6 running X-Windows?
> 
> I know that my firewall needs to masquerade, but how do you set this up 
in
> an X-Windows enviroment? (using Linuxconfig?)
> 
> I know that I need to apply filtering to my firewall, and plan to use
> ipchains. I'm assuming at this point that ipchains will work fine in an
> X-Windows enviroment. Any comments on this?
> 
> Has anybody attempted an using a firewall with an X-Windows interface? I 
had
> thoughts about disabling the X-Windows interface (and trimming down the
> installation of unneeded applications) after I get all of the "bells and
> whistles" working on my firewall, so that security issues will be 
minimal.
> Any suggestions?
> 
> Thanks in advance to all who answer/comment,
> -Mike
> 
> 
> 
> 
> 
> 


==================  Posted via CNET Linux Help  ==================
                    http://www.searchlinux.com

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

From: Piet Schipper <[EMAIL PROTECTED]>
Subject: Re: Automatic @-mail forward...
Date: Sun, 08 Aug 1999 13:04:38 +0100

Hi Sai,

>    With the ".forward" in our mail directory one can forward
>    the incoming mails to another. But we cannot store the
>    mail/s.
> 
>    Any way to store a copy and also to forward the same to
>    another e-mail address??

If your account name is: echivukula, and you wish to forward your
e-mail to: [EMAIL PROTECTED] AND keep a copy in your own e-mail box,
here's what your .forward file should loke like:

  [EMAIL PROTECTED]
  \echivukula

So: simply <backslash>your own account name

Piet

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

From: "Bigboss" <[EMAIL PROTECTED]>
Subject: POP3 server for Red Hat 6.0 ?
Date: Sun, 8 Aug 1999 11:55:18 +0100

Hello

I like to install POP3 server for linux, and I have Red Hat 6.0, can anyone
tell me which RPMs it live int. The "inted.conf" file say its "ipop3d".

Thanks.



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

From: "Andrew Taylor" <[EMAIL PROTECTED]>
Subject: RFC1178.TXT Choosing a name for your computer?
Date: Sun, 8 Aug 1999 12:18:29 +0100

Hi,

I've just been over to internic.net and they don't seem to have this file?
Has it been removed for a reason? Does anyone have this file.

Andy



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


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