Linux-Networking Digest #845, Volume #11 Sat, 10 Jul 99 02:13:39 EDT
Contents:
Very slooow Netscape ??? ([EMAIL PROTECTED])
netscape, dns lookup probs (Jon Kee)
DNS Problems ("Steven L. Dahlin")
Re: Newbie: Suse 6.1 and @home (Doug)
Re: URL with userid and passwort? ("Binesh Bannerjee")
Very slooow Netscape ??? ([EMAIL PROTECTED])
Re: How to get IP # of eth1 in script?? ("Andrey Smirnov")
Re: Question about Linux and resolv.conf (James Stafford)
Question on starting a local TCP/IP network ([EMAIL PROTECTED])
Re: Linux SMTP Problems (#) novol)
Re: aol under linux? (Chris Harshman)
Netscape, RH 6.0 and pppd ("Dr. G")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
Subject: Very slooow Netscape ???
Date: Sat, 10 Jul 1999 05:13:49 GMT
Hi all,
I got my PPP connected lately. Having tried to use that, found the data
downloading speed is extremely slow, varying from 35 to 350 byte/sec
even though the connection rate at 50600bps. If I connect by using
win98's ie5, averagely I get 2.8kbyte/sec.
Another question about netscape is why its graphic resolution is not as
appealing as win98? I'm using Nvidia RIVA TNT 16meg Video ram, and had
setup X-server with RIVA TNT driver. It seems X-server does not fully
making use of the resources ;-).
I believe Linux can do as good as win98 or even better. It is just my
ignorant on these issues.
Would anyone help me.
Rgds,
Nixien
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: Jon Kee <[EMAIL PROTECTED]>
Subject: netscape, dns lookup probs
Date: Sat, 10 Jul 1999 00:58:13 -0400
ok, read everything this time :)
why can't i get netscape to use my isp's domain servers?
everything else seems to work fine, ftp, telnet, etc. in xterm
J
------------------------------
From: "Steven L. Dahlin" <[EMAIL PROTECTED]>
Subject: DNS Problems
Date: Fri, 09 Jul 1999 23:17:28 -0600
I am unable to solve a problem with DNS. I have tried and tried and
no matter what I do my telnet session from a Windows NT PC cannot
see my nameserver. It can see the IP address fine but not my name-
servers DNS name.
I have used the O'Reilly book 'DNS and BIND' to setup everything.
'NSLookup' with respond back with the proper information about oracle1
but from what I have read NSLookup does not use 'named' to lookup
info so it is not a true test.
My configuration is as follows:
============================ etc/hosts ===========================
127.0.0.1 localhost localhost.localdomain
192.168.200.2 oracle1.diodesign.com oracle1
========================== etc/host.conf =========================
order bind
multi on
========================== etc/named.conf ========================
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
zone "." {
type hint;
file "named.ca";
};
zone "diodesign.com" in {
type master;
file "named.hosts";
};
zone "200.168.192.in-addr.arpa" in {
type master;
file "named.rev";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
========================== etc/named.conf ========================
# search diodesign.com
nameserver 192.168.200.2
domain diodesign.com
======================= var/named/named.hosts =====================
diodesign.com. IN SOA oracle1.diodesign.com. root.oracle1.diodesign.com.
(
2 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ; default_ttl
)
diodesign.com. IN NS oracle1.diodesign.com.
;
; Host Addresses
;
oracle1.diodesign.com. IN A 192.168.200.2
localhost.diodesign.com. IN A 127.0.0.1
diodesign.com. IN MX 1 oracle1.diodesign.com.
@ IN NS oracle1.diodesign.com.
======================== var/named/named.rev ======================
200.168.192.in-addr.arpa. IN SOA oracle1.diodesign.com.
root.oracle1.diodesign.com. (
2 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ) ; default_ttl
;
; Named Servers
;
200.168.192.in-addr.arpa. IN NS oracle1.diodesign.com.
;
; Addresses point to canonical name
;
2.200.168.192.in-addr.arpa. IN PTR oracle1.diodesign.com.
0.0.127.in-addr.arpa. IN SOA oracle1.diodesign.com.
root.oracle1.diodesign.com. (
2 ; serial
10800 ; refresh
3600 ; retry
604800 ; expire
86400 ) ; default_ttl
======================= var/named/named.local =====================
0.0.127.in-addr.arpa. IN NS oracle1.diodesign.com.
1.0.0.127.in-addr.arpa. IN PTR localhost.
Can anyone give me any suggestions?
------------------------------
From: Doug <[EMAIL PROTECTED]>
Subject: Re: Newbie: Suse 6.1 and @home
Date: Sat, 10 Jul 1999 04:36:38 GMT
==============57491CF1BE2ECBC415F32658
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Jim Jonske wrote:
> I just installed SuSE 6.1 on my machine with no major problems. This is my
> first experience with Linux so I need some help. What do I need to do to be
> able to connect to my ISP @home.com. Do I need DHCP or is it better to go
> after it as static? I've got all my info from winipcfg for my Ethernet card
> etc. Anxiously waiting to go. I've seen a few messages about connecting to
> @home thru Red Hat but nothing for Suse. Any help is appreciated.
>
> Thanks,
> Jim
You can get online right now by manually configuring yer eth card. Then screw
around with dhcp later if u want. I cannot for the life of me get connected
to my dhcp server so i gave up and consider my cable service a static
connection.....
ifconfig <ip address> netmask <netmask> up
route add default gw <home's gateway> netmask 0.0.0.0 metric 1
and add home's name servers to /etc/resolv.conf
--
visit my stuff at mybackyard.dyndns.com
==============57491CF1BE2ECBC415F32658
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Jim Jonske wrote:
<blockquote TYPE=CITE>I just installed SuSE 6.1 on my machine with no major
problems. This is my
<br>first experience with Linux so I need some help. What do I need to
do to be
<br>able to connect to my ISP @home.com. Do I need DHCP or is it
better to go
<br>after it as static? I've got all my info from winipcfg for my Ethernet
card
<br>etc. Anxiously waiting to go. I've seen a few messages about connecting
to
<br>@home thru Red Hat but nothing for Suse. Any help is appreciated.
<p>Thanks,
<br>Jim</blockquote>
You can get online right now by manually configuring yer eth card.
Then screw around with dhcp later if u want. I cannot for the life
of me get connected to my dhcp server so i gave up and consider my cable
service a static connection.....
<br>ifconfig <ip address> netmask <netmask> up
<br>route add default gw <home's gateway> netmask 0.0.0.0 metric 1
<pre>and add home's name servers to /etc/resolv.conf</pre>
<pre></pre>
<pre>--
visit my stuff at mybackyard.dyndns.com</pre>
</html>
==============57491CF1BE2ECBC415F32658==
------------------------------
From: "Binesh Bannerjee" <[EMAIL PROTECTED]>
Subject: Re: URL with userid and passwort?
Date: Sat, 10 Jul 1999 03:39:33 GMT
Rene Bauer <[EMAIL PROTECTED]> wrote:
: Hi,
: I want to use Apache bench to test a www-sites performance. The problem
: is that the site is protected by userid and password via ".htaccess". It
: is an Apache-Server and I do not want to rename the .htaccess file all
: the time. So, my questions is: What would the URL have to look like to
: give the server the userid and password? Is that possible at all or are
: these informations send with the header?
Yes, the information is sent with the headers.
Here's how it works:
What you have to do is send an extra header along w/ the request.
It's like this:
Let's say the URL is http://www.somehost.com/private/file.html
and the user is `rene.bauer' and the password is `secret'
First, encode the user/password as such: `rene.bauer:secret'
Then, base64 encode this string: cmVuZS5iYXVlcjpzZWNyZXQ=
<CAVEAT!>
(base64 encoding... Is kind of beyond my DESCRIBING it to you, but I'll
attach some source at the end, to base64encode and decode...)
(It's stuff I just hacked together now, and it's not anywhere
NEAR bullet proofed, so, be warned, it's JUST for illustrative
purposes... I'd suggest looking up source for real base64 decoders.
(Just, mine is probably simpler when you're just trying to figure it out...)
</CAVEAT!>
Then, what you do is you open a connection to www.somehost.com port 80
and send
GET /private/file.html HTTP/1.0
Authorization: Basic cmVuZS5iYXVlcjpzZWNyZXQ=
And, that's how "Basic Authentication" is done...
Binesh
Here's the most likely ridiculously unsafe, non production ready,
DEMO code.
/*
* b64decode.c
* Usage: b64decode <value> <value> <value>
* <value>s are b64encoded values.
* Output:
* b64decoded <value>s
* Example:
* b64decode "SGVsbG8=" "R29vZGJ5ZQBf"
* =>
* b64decode(`SGVsbG8=') => `Hello'
* b64decode(`R29vZGJ5ZQBf') => `Goodbye'
*/
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
unsigned char EncodingTable[64] = {
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
'w', 'x', 'y', 'z', '0', '1', '2', '3',
'4', '5', '6', '7', '8', '9', '+', '/'
};
static int DecodingTableComputed = 0;
static unsigned int DecodingTable[256];
static int real_b64decode(const char *input,char *output) {
int
len = 1; /* terminating zero */
const char
*p;
char
*q;
unsigned int
outint,
i;
if (!DecodingTableComputed) {
for (i = 0; i < 256; ++i) DecodingTable[i] = 0;
for (i = 0; i < 64; ++i) DecodingTable[EncodingTable[i]] = i;
DecodingTableComputed = 1;
}
q = output;
for (p = input; ((p[0]) && (p[1]) && (p[2]) && (p[3])); p += 4) {
outint =
((DecodingTable[(unsigned int)p[0]]) << 18) |
((DecodingTable[(unsigned int)p[1]]) << 12) |
((DecodingTable[(unsigned int)p[2]]) << 6) |
((DecodingTable[(unsigned int)p[3]]));
outint = htonl(outint);
len += 3;
if (output) {
q[0] = ((char *)(&outint))[1];
q[1] = ((char *)(&outint))[2];
q[2] = ((char *)(&outint))[3];
q += 3;
}
}
return(len);
}
static char *b64decode(const char *i) {
unsigned int len = real_b64decode(i,NULL);
char *ptr = NULL;
ptr = (char *)(malloc(len));
memset(ptr,'\0',len);
real_b64decode(i,ptr);
return(ptr);
}
int main(int argc,char *argv[]) {
int i;
for (i = 1; i < argc; ++i) {
char *decoded = NULL;
decoded = b64decode(argv[i]);
printf("b64decode(`%s') => `%s'\n",argv[i],decoded);
if (decoded) free(decoded); decoded = NULL;
}
return(0);
}
/*
* b64encode.c
* Usage: b64encode <value> <value> <value>
* <value>s are b64decoded values.
* Output:
* b64encoded <value>s
* Example:
* b64encode "SGVsbG8=" "R29vZGJ5ZQBf"
* =>
* b64encode(`Hello') => `SGVsbG8='
* b64encode(`Goodbye') => `R29vZGJ5ZQBf'
*/
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
static unsigned char EncodingTable[64] = {
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
'w', 'x', 'y', 'z', '0', '1', '2', '3',
'4', '5', '6', '7', '8', '9', '+', '/'
};
static unsigned int real_b64encode(const char *input,char *output) {
unsigned int len = 1; /* Terminating zero */
const unsigned char *p;
char *q;
unsigned int outvar;
unsigned char tmp[3];
unsigned char buf[4];
q = output;
for (p = (const unsigned char *)input; ((p[0]) && (p[1]) && (p[2])); p += 3) {
/*
012345 67 0123 4567 01 234567
--012345 --01 2345 --0123 45 --012345
01234567 0123 4567 012345 67 01234567
*/
outvar = (
(((p[0] & 0x0fc)) << 22) |
(((p[0] & 0x003)) << 20) |
(((p[1] & 0x0f0)) << 12) |
(((p[1] & 0x00f)) << 10) |
(((p[2] & 0x0c0)) << 2) |
(((p[2] & 0x03f)))
);
outvar = htonl(outvar);
memcpy(buf,&outvar,4);
buf[0] = EncodingTable[buf[0]];
buf[1] = EncodingTable[buf[1]];
buf[2] = EncodingTable[buf[2]];
buf[3] = EncodingTable[buf[3]];
len += 4;
if (output) {
q[0] = buf[0];
q[1] = buf[1];
q[2] = buf[2];
q[3] = buf[3];
q += 4;
}
}
memset(tmp,'\0',3);
if (p[0]) {
tmp[0] = p[0];
tmp[1] = (p[1] ? p[1] : '\0');
tmp[2] = (p[2] ? p[2] : '\0');
outvar = (
(((p[0] & 0x0fc)) << 22) |
(((p[0] & 0x003)) << 20) |
(((p[1] & 0x0f0)) << 12) |
(((p[1] & 0x00f)) << 10) |
(((p[2] & 0x0c0)) << 2) |
(((p[2] & 0x03f)))
);
outvar = htonl(outvar);
memcpy(buf,&outvar,4);
buf[0] = (buf[0] ? EncodingTable[buf[0]] : '=');
buf[1] = (buf[1] ? EncodingTable[buf[1]] : '=');
buf[2] = (buf[2] ? EncodingTable[buf[2]] : '=');
buf[3] = (buf[3] ? EncodingTable[buf[3]] : '=');
len += 4;
if (output) {
q[0] = buf[0];
q[1] = buf[1];
q[2] = buf[2];
q[3] = buf[3];
q += 4;
}
}
return(len);
}
static char *b64encode(const char *i) {
unsigned int len = real_b64encode(i,NULL);
char *ptr = NULL;
ptr = (char *)(malloc(len));
memset(ptr,'\0',len);
real_b64encode(i,ptr);
return(ptr);
}
int main(int argc,char *argv[]) {
int i;
for (i = 1; i < argc; ++i) {
char *encoded = NULL;
encoded = b64encode(argv[i]);
printf("b64encode(`%s') => `%s'\n",argv[i],encoded);
if (encoded) free(encoded); encoded = NULL;
}
return(0);
}
: Ciao,
: Rene
: --
: Rene Bauer
: TESIS SYSware GmbH, Munich (Germany)
: e-mail: [EMAIL PROTECTED] phone: +49 (0)89 747377-26
: Never trust a programmer with a screwdriver!
------------------------------
From: [EMAIL PROTECTED]
Subject: Very slooow Netscape ???
Date: Sat, 10 Jul 1999 05:15:29 GMT
Hi all,
I got my PPP connected lately. Having tried to use that, found the data
downloading speed is extremely slow, varying from 35 to 350 byte/sec
even though the connection rate at 50600bps. If I connect by using
win98's ie5, averagely I get 2.8kbyte/sec.
Another question about netscape is why its graphic resolution is not as
appealing as win98? I'm using Nvidia RIVA TNT 16meg Video ram, and had
setup X-server with RIVA TNT driver. It seems X-server does not fully
making use of the resources ;-).
I believe Linux can do as good as win98 or even better. It is just my
ignorant on these issues.
Would anyone help me.
Rgds,
Nixien
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: "Andrey Smirnov" <[EMAIL PROTECTED]>
Subject: Re: How to get IP # of eth1 in script??
Date: Fri, 9 Jul 1999 21:45:58 -0700
Try the following:
ifconfig eth1 | grep addr: | awk -F " " '{print $2}'| awk -F : '{print $2}'
Good luck!
Eric Cartman wrote in message <[EMAIL PROTECTED]>...
>
>
>Hi everyone,
>
>In a script I am trying to write, I need to know the IP number
>assigned to my second network adaptor, eth1. It is dynamically
>assigned via DHCP.
>
>I am awk deficient. I bet there is somebody out there who can give me
>the awk command I need to do this off the top of their head. Could
>you share it with me?
>
>Thanks,
>Eric
>
>
>
>
------------------------------
From: James Stafford <[EMAIL PROTECTED]>
Subject: Re: Question about Linux and resolv.conf
Date: Fri, 09 Jul 1999 22:33:51 -0700
YouDontKnowWho wrote:
>
> Does Netscape have an option to start off-line?
>
I use linux off-line all the time. I use it to connect to the local web
server and cruise my hard drive.
> --
> Principle of Minimum Access: "That which is not explicitly permitted
> is denied."
>
> And now we return to our regularly scheduled,
>
jamess
--
"On the side of the software box, in the 'System Requirements' section,
it said 'Requires Windows 95 or better'. So I installed Linux."
-Anonymous
------------------------------
From: [EMAIL PROTECTED]
Subject: Question on starting a local TCP/IP network
Date: Sat, 10 Jul 1999 04:45:03 GMT
I was in the shower today, and i got this crazy idea that it would be
fun to get a few friends together, and start a local internet type
network, but completly off the the real internet, maybe there would be
gateways and such to get on to the internet though. I have been using
linux and the internet for a few years now, and although im not a
hardcore hacker(the good kind), I know quite a lot. I understand TCP/IP,
DNS, arp, and stuff like that.... but there are still a lot of things
i need to know, like how to go about assigning IP address's to a umm,
well
say someone was calling up my computer and connecting via PPP, im not
sure how to give them a couple of IP address's to use for there own
computers. what do ISDN connections use, is that PPP also or something
else? how about ADSL, could i buy an ADSL modem thingie and connect
to another computer who also has ADSL? or does the local phone company
have to have something special setup? i dunno, i got a lot of questions,
im going to go look for some good RFC's but there are so many of them
and then there are at least 10 RFC's for eatch topic, I think im gonna
be wasting a lot of time looking for the good stuff. im also about to
go browse throug the linux faq's and how-to's.. but I guess what im
asking is just for any good info anyone thinks i should look at, any
good books on starting up a tcp/ip network using *nix. any real good
RFC's, any good websites that explain networking real good... anything.
Nick
p.s. Yes, I realize this could cost a lot of money, and I might be
crazy, and I will probably never do it, but it sounds fun. so for now
im gonna try to learn everything about it i can.
p.s.2 I will try to read this newsgroup to look for responces, but I
would like it if you could send responces to my email address at
" nwilde at punkass dot com "
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: #) novol <[EMAIL PROTECTED]>
Subject: Re: Linux SMTP Problems
Date: Sat, 10 Jul 1999 04:54:54 GMT
SuSE Linux 6.1 is the distro.
Im not sitting in front of my network, but off the top of my head I
think Im running sendmail 8.5 is thats correct.
Any changes from your previous article? Thanks for your help!
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: Chris Harshman <[EMAIL PROTECTED]>
Subject: Re: aol under linux?
Date: Fri, 09 Jul 1999 23:53:39 -0500
I was under the impression that AOL used a proprietary scheme
to connect. I know they substitute their own WINSOCK.
[EMAIL PROTECTED] wrote:
>
> I don't know what your knowledge level is, but the basics should be
> covered in a FAQ or how-to on setting up PPP under linux. The trick
> will be to get some information unique to your ISP, in this case AOL.
> One piece of information that you wil need is the Domain Name Server
> (DNS). I was trying to find out this information to help a friend of
> mine who is also afflicted with AOL membership. In his case I was
> trying to setup dialup networking under Windows 98. I called their tech
> support line and they basically said that it can't be done. Which may
> or may not be true. At any rate, a lookup of aol.com's DNS reveals it
> to be 198.81.17.232 and 205.188.157.232. I do not know about their news
> server or mail server, but try dialing into aol using minicom, and try
> logging in and see what happens. You may have to type in ppp or some
> such thing to start PPP. Give it a shot.
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
--
chris [EMAIL PROTECTED] -----------------------------------
"If there is hope," I said, quoting Orwell, "it lies in the proles."
The Billionaire pressed his fingertips together, considering. "Nah,"
he said, finally, and flipped The Switch.
------------------------------
From: "Dr. G" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help,comp.os.linux.setup
Subject: Netscape, RH 6.0 and pppd
Date: Sat, 10 Jul 1999 00:29:08 -0400
Does anyone know if it's possible to set up Netscape so that it will
automatically dial an ISP at startup?
I have searched "freshmeat" an dother sites to no avail.
Also; Whenever I insert a "link" in a message and click "Apply", then
clicking "OK" causes Netscape to crash! Does anyone know what causes
this and if there is a fix?
Thanks,
Darrell
------------------------------
** 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
******************************