Linux-Networking Digest #345, Volume #12 Tue, 24 Aug 99 14:13:31 EDT
Contents:
Re: Routing blues..... (Frank Waarsenburg)
URGENT: Static Routes Problem ([EMAIL PROTECTED])
Re: Wrong filedates with sambaclient ("Robert_Glover")
Re: ADSL+DHCP - Re: Newbie Question ("Robert_Glover")
Re: IP MASQ and Squid ("Robert_Glover")
Re: "ifconfig" and "netstat -rn" give me these: ("Robert_Glover")
Re: IP Masquerading Challenge ("John Hardin")
Re: Linux server backup of 95/NT clients? (peter)
Re: IP Masquerading Challenge (agent seven)
Application used to dial an ISP/Proxy-server ("Cummings, Charles S. (UMC-Student)")
Re: ppp problem with wvdial (W.G. Unruh)
routing setup problems (Vamsi Veeramachaneni)
Re: Tuning ppp for bad phone line (Clifford Kite)
Re: problems with 2 networks (Tiberio, David)
Help: Samba and Printing (Jimmy Lio)
----------------------------------------------------------------------------
From: Frank Waarsenburg <[EMAIL PROTECTED]>
Subject: Re: Routing blues.....
Date: Tue, 24 Aug 1999 15:29:42 +0200
Use the same number.... it should be
traceroute 192.168.1.1
NOT 192.168.0.1
So, if pinging 192.168.1.1 does work, traceroute should also.
Frank
Paul Vienneau wrote:
> Able to ping the router...
>
> Pinging 192.168.1.1 with 32 bytes of data:
>
> Reply from 192.168.1.1: bytes=32 time<10ms TTL=255
> Reply from 192.168.1.1: bytes=32 time<10ms TTL=255
> Reply from 192.168.1.1: bytes=32 time<10ms TTL=255
> Reply from 192.168.1.1: bytes=32 time<10ms TTL=255
>
> Any thoughts?
>
> Thanks.
>
> -paul
>
> Allen Wong wrote in message <[EMAIL PROTECTED]>...
> >Paul,
> >
> > I don't like the output of your "tracert". Are you able to ping
> >your router from your NT workstations? I believe the tracert should at
> >least have this:
> >
> >traceroute to 192.168.0.1, 30 hops max, 40 byte packets
> > 1 <hostname of router> (192.168.1.1) 1.411 ms 0.602 ms 0.584 ms
> >
> >before it gets stuck.
> >
> >Allen
> >--
> >Linux: If you're not careful, you might actually learn something.
------------------------------
From: [EMAIL PROTECTED]
Subject: URGENT: Static Routes Problem
Date: Tue, 24 Aug 1999 15:00:47 GMT
Hi Guys,
I have a Static Routes problem with a Redhat 6.0 Machine configured to
talk to 2 different subnets (for redundancy) using 2 NICs. The problem
is that if I set up a Default gateway using Linuxconf, it binds the
gateway to only one card (Obviously since both the NICs talk to
different subnets!).
Problem 1
How can I add 2 default gateways, one for each subnet and bound to
respective cards?
My resolution:
I added 2 static routes binding each of the card to the default gateway
as:
route add default gw xxx.xxx.xxx.1 metric 1 dev eth0
route add default gw xxx.xxx.yyy.1 metric 2 dev eth1
1. It works, but is it optimum? Is the "metric" correct?
MAIN PROBLEM
If the above is correct, then the main problem is that these routes get
erased, the moment we restart the NIC or the machine. I then have to
add the routes manually again.
As this machine is at a remote location, I lose total connectivity and
have had to go over physically to add the routes.
MY QUESTION
HOW DO I MAKE THESE ROUTES PERSISTENT? (make them survive the reboot?)
I have a couple of inputs regarding the "/etc/sysconfig/static-routes"
file etc. BUT would appreciate if you could demonstrate it with an
example.
looking forward to your replies in anticipation
TIA
Ramit
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
From: "Robert_Glover" <Please_reply_to@newsgroup>
Subject: Re: Wrong filedates with sambaclient
Date: Tue, 24 Aug 1999 14:05:03 -0000
Did you compile your kernel with the Win95 workaround? If so,
re-compile the kernel and turn that option off. It adversely affects
NT clients.
David J. M. Karlsen wrote in message <[EMAIL PROTECTED]>...
>I've mounted a share from a NT-server, but all the files have wrong
>filedates (like in 197x). The files have right dates under native NT.
>Running 2.0.5a client.
>
>Anyone know how to get rid of the prob?
>
>
>--
>David J. M. Karlsen [[EMAIL PROTECTED]] -*- LAB: [EMAIL PROTECTED] -*-
>http://cmr.no
>fon: [+47] 55 57 43 29 -*- fax: [+47] 55 57 40 41
------------------------------
From: "Robert_Glover" <Please_reply_to@newsgroup>
Subject: Re: ADSL+DHCP - Re: Newbie Question
Date: Tue, 24 Aug 1999 13:51:34 -0000
tansm wrote in message <7pt7hn$9dv$[EMAIL PROTECTED]>...
>Only two words came out after i wrote /sbin/pump...'operation failed'
You either want to upgrade to the newest version of pump from RedHat
or do what everyone else has done: get the newest dhcp package and
install it. I went with a manual initialization of my DHCP ethernet
card. I put the following in my rc.local script
dhpcpd -h bt994383-c eth1
That brings up eth1 only *after* my firewall rules are in place.
Works like a charm, but I did have to create the directory /etc/dhcpc
initially.
>one question, if the computer uses DHCP, then where in the world is
the
>DHCP server? how can the computer 'know' what IP to use?
You DHCP client listens for _broadcasts_ on the bootpc port (port 67
or 68 -- I can't remember which).
[snip]
------------------------------
From: "Robert_Glover" <Please_reply_to@newsgroup>
Subject: Re: IP MASQ and Squid
Date: Tue, 24 Aug 1999 14:02:23 -0000
Protocols such as active FTP, IRC, ICQ, etc. embed the IP address in
their packets. With masquerading that means a private address
(192.168.x.x) which is not internet routeable gets embedded in the
packet as the return address. So these packets must be re-written for
masquerading to work for such a protocol. Luckily someone has already
done this. Try this:
insmod ip_masq_fpt
insmod ip_masq_icq
This will load kernel modules that handle masquerading of these types
of packets.
------------------------------
From: "Robert_Glover" <Please_reply_to@newsgroup>
Subject: Re: "ifconfig" and "netstat -rn" give me these:
Date: Tue, 24 Aug 1999 13:26:39 -0000
Can you ping the gateway 171.66.1.1 ? If you can, then your network
card is reaching the network and you may have a problem with DNS.
Verify the IP addresses of your DNS servers, and try pinging your DNS
servers. Use only the IP address when pinging to avoid a DNS lookup.
Andrew T. Yang wrote in message ...
>Hi, everyone,
>
>My Ethernet network connection wont work at all (I can't ping anyone
>except for myself:
>127.0.0.0 or
>127.0.0.1)
>
>After checkouting the Ethernet-HOWTO, i still can't figure out why.
>
>
>1. "ifconfig eth0" gave me this:
>
>****************
>Link encap: Ethernet HWaddr:00:80:AD:41:FB:c5
>Inet addr 171.66.102.47 BCast: 171.66.255.255 Mask:255.255.0.0
>RX.......
>****************
>
>2. "netstat -rn" or "route" gave me the route table:
>*****************
>Destination Gateway Genmask Flags...
>171.66.0.0 0.0.0.0 255.255.0.0 U
>127.0.0.0 0.0.0.0 255.0.0.0 U
>0.0.0.0 171.66.1.1 0.0.0.0 UG
>******************
>
>3. My Network Admin provides me the following info:
>
>***********
>IP addr: 171.66.102.47
>Subnet 255.255.0.0
>Default route: 171.66.1.1
>DNS Servers:
>171.64.7.55
>171.64.7.77
>171.64.7.99
>*************
>
>Where did I do worng? Or, What else info you need to know for you to
>troubleshoot my system?
>
>Thanks a lot!
>
>Andrew
>
------------------------------
From: "John Hardin" <[EMAIL PROTECTED]>
Subject: Re: IP Masquerading Challenge
Date: Tue, 24 Aug 1999 08:57:14 -0700
agent seven wrote in message <7ps3c3$ep1$[EMAIL PROTECTED]>...
>ipchains -P forward DENY
>ipchains -A forward -s 192.168.1.0/24 -j MASQ
Try being fully explicit there:
ipchains -A forward -s 192.168.1.0/24 -d 0.0.0.0/0 -i ppp0 -j MASQ
--
John Hardin KA7OHZ [EMAIL PROTECTED]
pgpk -a finger://gonzo.wolfenet.com/jhardin PGP key ID: 0x41EA94F5
PGP key fingerprint: A3 0C 5B C2 EF 0D 2C E5 E9 BF C8 33 A7 A9 CE 76
=======================================================================
In the Lion
the Mighty Lion
the Zebra sleeps tonight...
Dee de-ee-ee-ee-ee de de de we um umma way!
------------------------------
From: peter <[EMAIL PROTECTED]>
Subject: Re: Linux server backup of 95/NT clients?
Date: Tue, 24 Aug 1999 15:54:59 +0200
Steve Ledford wrote:
> I am looking for a backup server package running on Linux that can
> backup up a Win95/98/NT machine. Now the clincher, doing this across the
> Internet. Therefore, schemes such as Samba mounting won't work, or other
> things that depend on permanent, fixed IP addresses of the machine to be
> backed up, etc. You get the drift.
>
> Thanks
Uhh, check out Arkeia, really nice.
But no fixed IP ?
That will be a problem unless you have a dynamic dns,
or create a tunnel, in wich case you could use samba.
Altough it�s nice to have a proper RESTORE program,
couldn�t care less about the backup interface, as long as restore is fast
heh.
Check out pptpd or something, swan perhaps.
//Peter Hellman
------------------------------
From: [EMAIL PROTECTED] (agent seven)
Subject: Re: IP Masquerading Challenge
Date: Tue, 24 Aug 1999 15:40:07 GMT
On Tue, 24 Aug 1999 17:07:47 +1000, "Graham Fountain"
<[EMAIL PROTECTED]> said:
Thanks for the valuable tips all!
However, ease your minds. I had a bad hub, which was working *just
enough* to look like it wasn't bad.
But it was.
I'm all online now.
Thanks again!
A7
------------------------------
From: "Cummings, Charles S. (UMC-Student)" <[EMAIL PROTECTED]>
Subject: Application used to dial an ISP/Proxy-server
Date: Tue, 24 Aug 1999 08:51:05 -0500
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
======_=_NextPart_001_01BEEE37.B5B26C66
Content-Type: text/plain
What application exactly is it that you would use in linux to dial up
your ISP and create an internet connection?
Steven Cummings
======_=_NextPart_001_01BEEE37.B5B26C66
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>Application used to dial an ISP/Proxy-server</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>What application exactly is it that you would use in linux to dial up
your ISP and create an internet connection?</FONT>
</P>
<P><FONT SIZE=2>Steven Cummings</FONT>
</P>
</BODY>
</HTML>
======_=_NextPart_001_01BEEE37.B5B26C66==
------------------------------
From: [EMAIL PROTECTED] (W.G. Unruh)
Crossposted-To: comp.os.linux.setup
Subject: Re: ppp problem with wvdial
Date: 24 Aug 99 14:39:00 GMT
Bernd Schandl <[EMAIL PROTECTED]> writes:
>I have a problem connecting to my ISP with wvdial. I seem
>to connect ok, but then I can't reach any server (Netscape,
>ftp,rlogin). I am using SuSE 6.1 and have entered a
>nameserver in Yast, which automatically updated resolv.conf.
Do not know how wvdial handles anything.
a) Are you sure that you are actually connected? What is your evidence?
b) Look at the resolv.conf file while you are connected. does it look reasonable
(Ie, does it have a line like
nameserver 111.222.333.444?)
c) what happens when you ping some site? -- ping both the IP qaddress and the
name. Is there a difference?
d) route -n
is there a line which starts with 0.0.0.0 amd ends with ppp0?
------------------------------
From: Vamsi Veeramachaneni <[EMAIL PROTECTED]>
Subject: routing setup problems
Date: Tue, 24 Aug 1999 13:03:58 -0400
Hi,
I have RedHat 6.0 installed on my Pentium MMX system. I am using Linksys
Etherfast 10/100 card.
I don't think I have any problems with the driver (tulip) since I am
able to ping my own IP addr. But
I am not able to ping my gateway. I checked dmesg output and there seem
to be no problems there.
My IP addr is 128.118.51.57 and the gateway is 128.118.51.1.
Here is the result of ifconfig just after I restarted the system:
eth0 Link encap:Ethernet HWaddr 00:A0:CC:29:15:9C
inet addr:128.118.51.57 Bcast:128.118.51.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1177 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0x6200
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
However, the "route -n" command gives the following output:
Kernel IP routing table
Destination Gateway Genmask Flags
Metric Ref Use Iface
128.118.51.57 0.0.0.0 255.255.255.255 UH 0
0 0 eth0
128.118.51.0 128.118.51.57 255.255.255.0 UG 0
0 0 eth0
128.118.51.0 0.0.0.0 255.255.255.0 U
0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U
0 0 0 lo
0.0.0.0 128.118.51.1 0.0.0.0 UG
0 0 0 eth0
I didn't think the second entry was correct, so I deleted it using the
route del .... command but I
still have no success in pinging my gateway. However, when I use
"tcpdump src 128.118.51.1 or dst 128.118.51.1" to see if I can detect
packets I find that I can
see my machine and a lot of other machines on the subnet communicating
with the gateway - usually
arp what-is question and replies. "arp -n" shows one entry giving
details about the gateway. All this leads me
to believe my routing setup is screwed up. To see exactly what route
commands were being executed at
start time I renamed the /sbin/route file and created a new /sbin/route
file that simply echoes its arguments
into a file. Which pretty much means that no route add/del commands get
executed at system boot time. I
rebooted the system and to my surprise I found that "route -n" gave the
following entries:
Kernel IP routing table
Destination Gateway Genmask Flags Metric
Ref Use Iface
128.118.51.0 128.118.51.57 255.255.255.0 UG 0 0
0 eth0
128.118.51.0 0.0.0.0 255.255.255.0 U 0
0 0 eth0
I have no idea where they entered the routing table from. The route
commands I had trapped by
renaming the file and echoing the input were:
route add -net 127.0.0.0 netmask 255.0.0.0 lo
route add -net 128.118.51.0 netmask 255.255.255.0 eth0
route add default gw 128.118.51.1 eth0
route add -net default gw 128.118.51.1
all of which seem reasonable.
I hope I have not exhausted your patience - but I hope someone out will
be kind enough to
answer the following questions:
1. Where did the routing table get its entries from even when I disabled
the route command?
2. What is the exact set of route commands I should execute to have the
right entries?
3. Is there some other fundamental reason why I cannot connect to the
network?
Thanks in advance,
Vamsi
PS: Mine is not a dual-boot system. I have only Linux on it - I don't
really use Windows so
I wiped it out. I cannot implement solutions which require me to use
Windows 95 etc :(
------------------------------
From: kite@NoSpam.%inetport.com (Clifford Kite)
Subject: Re: Tuning ppp for bad phone line
Date: 24 Aug 1999 11:41:21 -0500
Bob Wood ([EMAIL PROTECTED]) wrote:
: I recently started using kppp to connect to the same ISP that I call
: under Windows. Most of the time that I try to download a large file
: (via Netscape), it will stall. Sometimes the stall is after several
: KB have been downloaded; sometimes only after a few hundred bytes.
: If I wait long enough it will eventually complete, but the stalls seem
: to last for up to 30 seconds each.
: I've tried decreasing MTU/MRU to 576, with some success. Cranking down
: the modem speed to 19200 also helped a bit. I've looked at the pppd
: debug log info, and there are error messages each time I notice the
: stalling. The error messages will say things like "sequence number
: incorrect" or "decompress error". Then I'll see something like "the
: above error was repeated 41 times". (I don't see any messages about
: decompress modules not being found.)
You might deny all CCP compression with the pppd option noccp and fare
better. Modems today usually provide compression themselves so software
compression is much less important at the least, and may even slow things
down a little.
--
Clifford Kite <kite@inet%port.com> Not a guru. (tm)
/* Those who can't write, write manuals. */
------------------------------
From: Tiberio, David <[EMAIL PROTECTED]>
Subject: Re: problems with 2 networks
Date: Tue, 24 Aug 1999 09:38:06 -0700
someone wrote:
> Each NIC should have a route to itself, a route
> to the local network, and a route to the outside
> world. These need to be defined fairly specifically,
> using as few .0's as possible.
unfortunately i do nto know how to route traffic, so i do
not know what to do. this is the first time I am ever
setting up any systems between two networks.
I did however get some progress. I recompiled one system
so that all the routing functions were added, and i made
it so that any other systems that had 2 nics were only
acessing one network. so I have 1 machine now that
is connected to both networks, and now I can reach that
machine from the outside from either network.
however, machines on each network still go out to the
internet to reach machines on the other network.
so i still do not know what to do!
* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!
------------------------------
From: Jimmy Lio <[EMAIL PROTECTED]>
Crossposted-To:
tw.bbs.comp.linux,alt.linux,comp.os.linux,comp.os.linux.misc,comp.os.linux.questions,info.ncsa-telnet,hk.comp.os.linux,hk.comp.os.unix,hk.comp.pc,comp.protocols.smb
Subject: Help: Samba and Printing
Date: Wed, 25 Aug 1999 00:46:01 +0800
My Mandrake Redhat 6.0 Linux box is running Samba which provides file
and printing services to Win'95/98 clients. These clients can read from
and write to, but not printing to the local printer contacting to the
Samba server. The Samba server is running with the following
configuration:
[hplaser]
comment = HP Laserjet 5
path = /var/spool/samba
printable = yes
printer = hplaser <--- that's printer name used on Linux
The Windows clients can see the printer attached to the server. When
the clients print to the Samba printer, they succesfully pass the file
to be printed to the Linux box (in fact, I tried 'ls' continuously on
the specified printer path... and files appear on the path once I click
to print on the windows clients)... but the files passed to the printer
path is gone in less than a second... and the files are not printed
out... and the printer doesn't even response to the print request from
the Windows clients.
I copied the files passed to the printer path to somewhere else and have
them printed with the lpr command... it works... Yet, I guess no one on
earth would like to do this manually on the Samba server every time you
print from the Windows clients... How should I configure the Server so
that it would really print... help help help...
Jimmy
------------------------------
** 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
******************************