Linux-Networking Digest #694, Volume #11 Sun, 27 Jun 99 16:13:43 EDT
Contents:
Re: PPP and KDE! (Daniel Wilson)
Re: Why not C++ (Craig Graham)
Re: Samba - Local network setup help !! (Lyndon Hills)
Re: internet connection with Linux ("James R. Barnett, Jr.")
Re: Linux and DSL ("Andrey Smirnov")
Re: Trouble networking two linux machines ("James R. Barnett, Jr.")
internet connection with Linux (Brutus)
Re: Linux and DSL ("Andrey Smirnov")
Re: Question about USER ("Andrey Smirnov")
----------------------------------------------------------------------------
From: Daniel Wilson <[EMAIL PROTECTED]>
Subject: Re: PPP and KDE!
Date: Sun, 27 Jun 1999 19:38:59 +0100
Mopp wrote:
>
> Hy!
> I have a problem with my PPP!
> I�m using kppp to connect to my ISP!
> But I have a problem with my DNS! I cannot use programs like: licq, it
> says Can�t Resolv hast name, but kicq works, the same withe Netscape, it
> works, but if I want to user WWWOFFLE it does not!
>
> Can you help me?
>
> write me: [EMAIL PROTECTED]
check you /etc/resolv.conf file, and make sure your name servers are
listed (these will usually be your ISP's nameservers).
check 'man resolv.conf' for more info.
************
Dan
------------------------------
From: Craig Graham <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.development.system
Subject: Re: Why not C++
Date: Sun, 27 Jun 1999 20:08:29 +0000
[EMAIL PROTECTED] (Nathan Myers) wrote:
> Andi Kleen <[EMAIL PROTECTED]> wrote:
> >My point was simply:
> >In my first tries to use the STL, I had to fight with 10+ lines
> >really obscure template error messages. I wouldn't wish that to=20
> >any poor beginner (given that beginning is usually mostly syntax=20
> >error fixing at first)
>=20
> True, there is a great deal of work yet to be done on improving
> error reporting in Egcs, and similar work in Gdb.
>=20
> OTOH, once you get code past the compiler, it's far less buggy.
Actually, I had one case where the current EGCS generated really
faulty code (this is a fragment from it):
frame=3D0;
for(p=3Dlist_start; p; p=3Dp->next)
{
if(p->type=3D=3DtagShowFrame)
{
frame_array[frame++]=3Dp;
}
}
When actually run, EGCS did't generate any code for the frame=3D0 line,
resulting in huge memory corruption problems (it doesn't notice that
a local variable is re-used if the reuse is in the context shown and nowh=
ere
else, so it decides to remove the redundent (as it thinks) frame=3D0 line=
=2E That's
great......I had to include another use of frame later on to ensure it wa=
s set
to zero correctly (this happened even with no optimisation at all - mega =
bug).
Craig.
------------------------------
From: [EMAIL PROTECTED] (Lyndon Hills)
Subject: Re: Samba - Local network setup help !!
Date: Sun, 27 Jun 1999 18:03:41 GMT
Reply-To: [EMAIL PROTECTED]
On Sat, 26 Jun 1999 16:34:01 +0200, "Philippe CHARDONNET"
<[EMAIL PROTECTED]> wrote:
<snip>
>Unfortunately, and in spite of the explanations I couldn't get my Linux PC
>working properly...
>
>My problem is that I don't know what I'm supposed to do to key in the data
>about my win98 computer in Linux such as Ip adress, submask, account and
>etc...
>Phil.
Phil,
A book 'The Linux Network' IDG Books ISBN 1-55828-589-X would very
likely help you out. It's written at a novice level starting with a
good explanation of how things work, assuming very little knowledge.
It includes a Slackware linux distirb on CD and, better, some of the
many config files which you can simply copy and then amend for your
machine names/ip nos and so on. The text of the book explains which
parts to change and why (although it skips through sendmail just
telling which bits you must change).
Aside from this, is your network at the stage where you can ping each
machine from the other, and can you do this by machine name as well as
ip address?
On the linux box the details should be in /etc/hosts. There should be
an entry for the win box like
192.168.0.1 windowsbox windowsbox.mydomain.com
You should then be able to refer to the windows machine as 192.168.0.1
or windowsbox or windowsbox.mydomain.com
check the file /etc/host.conf it should look like
order hosts,bind
this tells the machine to look for a name/ip address in the file hosts
and then via DNS if the hosts file doesn't have an entry.
you should be able to get a response by
ping 192.168.0.1 or
ping windowsbox
on the windows machine you should be able to ping the linux box by
ping <ip_address of linux box>
to be able to use the name of the linux box you need to edit or create
a hosts file in c:\windows. This is the same as the linux file
/etc/hosts
192.168.0.2 linuxbox linuxbox.mydomain.com
with this you should be able to ping the linux box
ping linuxbox.
If this doesn't work, nor will samba
Samba
Things to check - windows
Install a network client - choose client for microsoft networks
In windows|control panel|networks|identification see what your
workgroup is called or name it.
In protocols select tcp/ip and netbeui
the client/properties tab should not be set to logon to an NT domain.
choose restore network connections if you want.
Make sure that tcp/ip is bound to your network adaptor
set the properites of the tcp/ip protocol
specify the ip address your box will use. Make the subnet mask
255.255.255.0
set the gateway to the ip of the linux box.
disable WINS.
You may not need to do the following if you do then nmbd isn't working
properly
in c:\windows create lmhosts. This looks like the hosts files above.
192.168.0.1 mylinuxbox
i.e ip_address and name of the linux box.
linux
create yourself a userid. Use this also on your windows box.
In smb.conf look for a line workgroup=xxxxx and make sure it's set to
be the same as your win box.
find a line hosts allow =
make sure this is correct and that the ip of the windows box is in
here.
Look at the section marked [homes]
it may say browseable =no, if so change this to yes.
To test the config file run testparm from the samba installation
point.
to test on linux run smbclient -L machine name
you should see the time &date
timezone
domain os server
a list of shares created and the type
homes Disk Home directories
....
I've never set up printers so I can't help much there.
Samba can be run from inetd or as a standalone daemon.
to run standalone the commands are smbd -D
and nmdb -D
You should now be able to see the linux box from windows.
Go to dos and type net view \\name of linux box.
you should get a less detailed display like from smbclient above.
HTH
lyndon
------------------------------
From: "James R. Barnett, Jr." <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: internet connection with Linux
Date: Sun, 27 Jun 1999 14:49:35 -0500
Did you set up DNS Servers in the kppp setup? Or you can edit
/etc/resolv.conf directly.
JamesB
Brutus wrote:
>
> I'm using Open Linux 2.2 with KDE and I'm running kppp to get connected to
> my ISP. I'm able to get a connection through kppp but none of my
> applications seem to be able to find it. Netscape comes back with an error
> saying that the internet server is not found, telnet also can't find a
> connection. Does anyone have any suggestions?
> thanks
>
> ------------------ Posted via SearchLinux ------------------
> http://www.searchlinux.com
------------------------------
From: "Andrey Smirnov" <[EMAIL PROTECTED]>
Subject: Re: Linux and DSL
Date: Sun, 27 Jun 1999 12:43:31 -0700
What's your cisco's ip and netmask?
Richi wrote in message ...
>First I would like to say thanks for everyone that has given me pointers...
>:)
>
>Andrey here is the info you requested.
>
>Thanks,
>
>Rich
>
>root@server /root]# ifconfig
>eth0 Link encap:Ethernet HWaddr 00:A0:CC:3B:19:6A
> inet addr:168.192.1.1 Bcast:168.192.1.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:116 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
>
>l�
>eth1 Link encap:Ethernet HWaddr 00:A0:CC:39:B2:90
> inet addr:168.192.1.2 Bcast:168.192.1.127 Mask:255.255.255.128
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:160 errors:0 dropped:0 overruns:0 frame:0
> TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> Interrupt:3 Base address:0xe800
>
>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:86 errors:0 dropped:0 overruns:0 frame:0
> TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
>
>
>[root@server /root]# netstat -rn
>Kernel IP routing table
>Destination Gateway Genmask Flags MSS Window irtt
>Iface
>168.192.1.2 0.0.0.0 255.255.255.255 UH 0 0 0
>eth1
>168.192.1.1 0.0.0.0 255.255.255.255 UH 0 0 0
>eth0
>168.192.1.0 0.0.0.0 255.255.255.128 U 0 0 0
>eth1
>168.192.1.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
>
>Andrey Smirnov <[EMAIL PROTECTED]> wrote in message
>news:7l3u3s$1c3$[EMAIL PROTECTED]...
>> Hello,
>>
>> Can you include output of ifconfig -a from your Linux machine, also
>> netstat -rn and IP configuration of your DSL router.
>>
>> Thank you.
>>
>> Richi wrote in message ...
>> >Hi Andrey,
>> >
>> >I have tow ethernet cards because one is supposed to be for the LAN and
>the
>> >other is to connect the Cisco router. I currently have the router hub
>> >connected to the hub which is only temporary. I want the router to be
>> >connected to the Linux machine and use IP masquerading and a firewall.
>> >
>> >I cant get the Linux box to work on the internet with DSL.
>> >
>> >I am really new at this and have tried everything. I would think with
the
>> >router connected to the eth0 card, I should be able to ping the router
at
>> >10.0.0.1 or .2. But I cat seem to do it. I am a little lost on what to
>put
>> >on the routing portion of netcfg.
>> >
>> >Thanks for the reply.
>> >
>> >Rich
>> >Andrey Smirnov <[EMAIL PROTECTED]> wrote in message
>> >news:7l377h$rpq$[EMAIL PROTECTED]...
>> >> Hello,
>> >>
>> >> I don't understand the purpose of the second net card. Looks like the
>> >first
>> >> card is on the subneted part of the network on which your second card
>is.
>> >>
>> >> But in general what is exactly your problem?
>> >>
>> >>
>> >> Richi wrote in message ...
>> >> >I have some new info and I will recap some of the old for any
>newcomers.
>> >I
>> >> >still haven't got it to talk yet, but learned some valuable info.
>> >> >
>> >> >First the Linux box has two network cards (eth0 and eth1)
>> >> >
>> >> >The eth0 card is configured as 192.168.1.1 with a netmask of
>> >255.255.255.0
>> >> >The eth1 card is configured as 192.168.1.2 with a netmask of
>> >> >255.255.255.128
>> >> >
>> >> >All other windows machines on the LAN are 192.168.1.X and
>> 255.255.255.128
>> >> >
>> >> >The router is set up as defualt. The only items I have entered into
>the
>> >> >router are:
>> >> >set ppp wan0-0 ipcp 0.0.0.0
>> >> >set ppp wan0-0 dns 0.0.0.0
>> >> >set ppp restart enabled
>> >> >set dhcp server enabled
>> >> >set nat enabled
>> >> >and login and passwords.
>> >> >
>> >> >This is what USWEST has in the book. This setup is currently working
>> >> plugged
>> >> >into my hub.
>> >> >
>> >> >What I just realized doing a winipcfg in windows was the Cisco 675
>> router
>> >> >has the following. I am going to add all info beacuse I am not sur if
>it
>> >is
>> >> >relevent.
>> >> >
>> >> >Host name Rich
>> >> >DNS servers 207.108.32.1 and 204.147.80.5
>> >> >Node type =broadcast
>> >> >IP address 10.0.0.2
>> >> >Subnet Mask 255.255.255.0
>> >> >Default gateway 10.0.0.1
>> >> >DHCP server 10.0.0.1
>> >> >
>> >> >
>> >> >I am thinking that this info needs to be entered under routing in
>> netcfg
>> >> >
>> >> >Under router I have :
>> >> >
>> >> >default gateway____________
>> >> >default gateway device__________
>> >> >
>> >> >And then if I click add I get
>> >> >
>> >> >Device_________________
>> >> >Network_______________
>> >> >Netmask_______________
>> >> >Gateway_______________
>> >> >
>> >> >
>> >> >I tried a few combinations but haven't hit the right one.
>> >> >
>> >> >Any help is appreaciated. I hope to get this thing online this
>weekend.
>> >> >
>> >> >Thanks
>> >> >
>> >> >Rich
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>
>
------------------------------
From: "James R. Barnett, Jr." <[EMAIL PROTECTED]>
Subject: Re: Trouble networking two linux machines
Date: Sun, 27 Jun 1999 14:56:22 -0500
I have nearly an identical setupo and problem. My ethernet card is
3Com509b in both machines. My network does work under Win98, so I fell
confident it is software. Any ideas for me?
JamesB
------------------------------
From: Brutus <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: internet connection with Linux
Date: 27 Jun 1999 19:30:40 GMT
I'm using Open Linux 2.2 with KDE and I'm running kppp to get connected to
my ISP. I'm able to get a connection through kppp but none of my
applications seem to be able to find it. Netscape comes back with an error
saying that the internet server is not found, telnet also can't find a
connection. Does anyone have any suggestions?
thanks
================== Posted via SearchLinux ==================
http://www.searchlinux.com
------------------------------
From: "Andrey Smirnov" <[EMAIL PROTECTED]>
Subject: Re: Linux and DSL
Date: Sun, 27 Jun 1999 12:50:45 -0700
Still I insist on the fact that your eth0 and eth1 are configured with wrong
IP addresses, due to the fact that 192.168.1.0 network with netmask
255.255.255.0 is superior to the network 192.168.1.0 with 255.255.255.128.
Think about changing IP address of one of the cards, but can't really
suggest particular address without knowing your router's IP information.
Good luck!
Richi wrote in message ...
>First I would like to say thanks for everyone that has given me pointers...
>:)
>
>Andrey here is the info you requested.
>
>Thanks,
>
>Rich
>
>root@server /root]# ifconfig
>eth0 Link encap:Ethernet HWaddr 00:A0:CC:3B:19:6A
> inet addr:168.192.1.1 Bcast:168.192.1.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:116 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
>
>l�
>eth1 Link encap:Ethernet HWaddr 00:A0:CC:39:B2:90
> inet addr:168.192.1.2 Bcast:168.192.1.127 Mask:255.255.255.128
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:160 errors:0 dropped:0 overruns:0 frame:0
> TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> Interrupt:3 Base address:0xe800
>
>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:86 errors:0 dropped:0 overruns:0 frame:0
> TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
>
>
>[root@server /root]# netstat -rn
>Kernel IP routing table
>Destination Gateway Genmask Flags MSS Window irtt
>Iface
>168.192.1.2 0.0.0.0 255.255.255.255 UH 0 0 0
>eth1
>168.192.1.1 0.0.0.0 255.255.255.255 UH 0 0 0
>eth0
>168.192.1.0 0.0.0.0 255.255.255.128 U 0 0 0
>eth1
>168.192.1.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
>
>Andrey Smirnov <[EMAIL PROTECTED]> wrote in message
>news:7l3u3s$1c3$[EMAIL PROTECTED]...
>> Hello,
>>
>> Can you include output of ifconfig -a from your Linux machine, also
>> netstat -rn and IP configuration of your DSL router.
>>
>> Thank you.
>>
>> Richi wrote in message ...
>> >Hi Andrey,
>> >
>> >I have tow ethernet cards because one is supposed to be for the LAN and
>the
>> >other is to connect the Cisco router. I currently have the router hub
>> >connected to the hub which is only temporary. I want the router to be
>> >connected to the Linux machine and use IP masquerading and a firewall.
>> >
>> >I cant get the Linux box to work on the internet with DSL.
>> >
>> >I am really new at this and have tried everything. I would think with
the
>> >router connected to the eth0 card, I should be able to ping the router
at
>> >10.0.0.1 or .2. But I cat seem to do it. I am a little lost on what to
>put
>> >on the routing portion of netcfg.
>> >
>> >Thanks for the reply.
>> >
>> >Rich
>> >Andrey Smirnov <[EMAIL PROTECTED]> wrote in message
>> >news:7l377h$rpq$[EMAIL PROTECTED]...
>> >> Hello,
>> >>
>> >> I don't understand the purpose of the second net card. Looks like the
>> >first
>> >> card is on the subneted part of the network on which your second card
>is.
>> >>
>> >> But in general what is exactly your problem?
>> >>
>> >>
>> >> Richi wrote in message ...
>> >> >I have some new info and I will recap some of the old for any
>newcomers.
>> >I
>> >> >still haven't got it to talk yet, but learned some valuable info.
>> >> >
>> >> >First the Linux box has two network cards (eth0 and eth1)
>> >> >
>> >> >The eth0 card is configured as 192.168.1.1 with a netmask of
>> >255.255.255.0
>> >> >The eth1 card is configured as 192.168.1.2 with a netmask of
>> >> >255.255.255.128
>> >> >
>> >> >All other windows machines on the LAN are 192.168.1.X and
>> 255.255.255.128
>> >> >
>> >> >The router is set up as defualt. The only items I have entered into
>the
>> >> >router are:
>> >> >set ppp wan0-0 ipcp 0.0.0.0
>> >> >set ppp wan0-0 dns 0.0.0.0
>> >> >set ppp restart enabled
>> >> >set dhcp server enabled
>> >> >set nat enabled
>> >> >and login and passwords.
>> >> >
>> >> >This is what USWEST has in the book. This setup is currently working
>> >> plugged
>> >> >into my hub.
>> >> >
>> >> >What I just realized doing a winipcfg in windows was the Cisco 675
>> router
>> >> >has the following. I am going to add all info beacuse I am not sur if
>it
>> >is
>> >> >relevent.
>> >> >
>> >> >Host name Rich
>> >> >DNS servers 207.108.32.1 and 204.147.80.5
>> >> >Node type =broadcast
>> >> >IP address 10.0.0.2
>> >> >Subnet Mask 255.255.255.0
>> >> >Default gateway 10.0.0.1
>> >> >DHCP server 10.0.0.1
>> >> >
>> >> >
>> >> >I am thinking that this info needs to be entered under routing in
>> netcfg
>> >> >
>> >> >Under router I have :
>> >> >
>> >> >default gateway____________
>> >> >default gateway device__________
>> >> >
>> >> >And then if I click add I get
>> >> >
>> >> >Device_________________
>> >> >Network_______________
>> >> >Netmask_______________
>> >> >Gateway_______________
>> >> >
>> >> >
>> >> >I tried a few combinations but haven't hit the right one.
>> >> >
>> >> >Any help is appreaciated. I hope to get this thing online this
>weekend.
>> >> >
>> >> >Thanks
>> >> >
>> >> >Rich
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>
>
------------------------------
From: "Andrey Smirnov" <[EMAIL PROTECTED]>
Subject: Re: Question about USER
Date: Sun, 27 Jun 1999 12:15:47 -0700
Hello,
Check my comments bellow.
NGUYEN-DAI Quy wrote in message <[EMAIL PROTECTED]>...
>Hi,
>Supposing that I have a Linux server with some users.
>Users can connect to Linux server from another machine
>with Unix/Linux/Win..
>
>1) How to force USER to connect to server ONLY with SSH protocol ?
> Not TELNET, nor RLOGIN, FTP.?
>
Disable telnet and ftp, and users will not be able to connect using these
protocols.
>2) How to force USER to connect to server ONLY from a machine
> with address IP aaa.bbb.ccc.ddd ONLY ?
>
You can check for IP address in user's profiles and if IP is not the one
that allowed, just kill user's login process (you may look at 'echo $$'
command, which shows your current process).
>Thanks in advance for your respond.
>
>QUY.
>PS: If possible I would like a CC of your message please !
>--
>NGUYEN-DAI Quy
>LTAS-M�canique de la Rupture des Solides, Universit� de Li�ge
>Rue Ernest Solvay 21, B�t C3, B-4000, Li�ge, Belgique.
>T�l:+32-4-3669241 (bureau) 3491529 (domicile) Fax:+32-4-3669311
>http://bobo.ltas.ulg.ac.be/~quy
------------------------------
** 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
******************************