Linux-Networking Digest #513, Volume #11         Sat, 12 Jun 99 16:13:56 EDT

Contents:
  Re: Scriptable telnet Client (Andreas Bartel)
  Re: i need to have two IP simultaneouly! ("Gregory D. Horne")
  Re: How to reassign IRQs? (pl198)
  Re: SuSE Linux 6.1 & PPPIOCGUNIT Operation not permitted ("Anthony W. Youngman")
  Problems with ppp ("Mark Whitehead")
  Re: Setting up a shiva (Raymonds Doetjes)
  problem with rh6 (Colombier Pierre)
  Re: Telnet using "root" ("Fong's")
  Re: Telnet using "root" ("Fong's")
  Cannot set up linux as a router! (Fanny Wong)
  source code (richard)
  Re: Problems with ppp ("Gregory D. Horne")
  Re: virtual web hosting (Raymonds Doetjes)
  RH 5.2 ipfwadm ([EMAIL PROTECTED])
  Re: ppp and routing (Chris Chapman)
  Re: eth0 and ppp0 - fetchmail behaves strangely !? (Mr. Poet)
  Re: samba and smbclient problem ("Carl D. Blake")
  Re: Load balancing (Raymonds Doetjes)
  Re: Linux firewall & load-balancing NAT & NT-IIS (Raymonds Doetjes)

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

From: Andreas Bartel <[EMAIL PROTECTED]>
Subject: Re: Scriptable telnet Client
Date: Sat, 12 Jun 1999 16:43:56 +0200



brian schrieb:

> I am looking for a Linux telnet client for which I can write scripts.
> Loops, conditions, variables, wait for, send...the works. One I used
> under 'dows was ZOC...something like that would be great. Or, if I could
> somehow write scripts for the one I have (the standard telnet for RH
> 6.0)
>
> Any advice / information would be appreciated.
>
> Brian

Hi.

You should try "expect" and its man-pages.

Andreas


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

From: "Gregory D. Horne" <[EMAIL PROTECTED]>
Subject: Re: i need to have two IP simultaneouly!
Date: Sat, 12 Jun 1999 15:18:50 -0400

The short answer is yoes you can have an IP address on your ethernet
interface and your serial/modem interface simultaneously.

JKPAN wrote:

> hello,
>      i already have local network with IP through ether card,
> can i have another from ISP through modem at the same time?
> thanks for your answering!
>     EN6.12.1999


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

From: pl198 <[EMAIL PROTECTED]>
Subject: Re: How to reassign IRQs?
Date: Fri, 11 Jun 1999 20:31:23 +0100



Trevor Smithson wrote:

> hi everyone,
>
> Ok, I've made a little bit of progress in my quest
> to get linux, my modem, and Earthlink to get
> along.  I'm to the point where I am able to get
> a stable connection by using minicom.  But, before
> doing that, every time I log in I have to reset the
> IRQ from IRQ 4 to IRQ 5, i.e. "setserial /dev/modem
> IRQ 5".  This works, but as I said only for one session.
> How do I make this permanent?
>
> Thanks,
>
> Trevor Smithson

you may have a file called /etc/rc.d/rc.local

simply add the setserial... line into there. it's probably not the
correct file to put it in, but it'll work

but redhat (i presume) doesn't have a serial configuration file.
you could create your own and make a symlink to it in one of the rc?.d
directories.. mmm best for you to read a bit about sysv init.


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

From: "Anthony W. Youngman" <[EMAIL PROTECTED]>
Crossposted-To: uk.comp.os.linux,comp.os.linux.setup
Subject: Re: SuSE Linux 6.1 & PPPIOCGUNIT Operation not permitted
Date: Sat, 12 Jun 1999 09:11:44 +0100
Reply-To: "Anthony W. Youngman" <[EMAIL PROTECTED]>

In article <[EMAIL PROTECTED]>, Dan Glover
<[EMAIL PROTECTED]> writes
>In article <7jre6p$kcl$[EMAIL PROTECTED]>, 
>[EMAIL PROTECTED] wrote:
>
>[scythe]
>
[and again]

>Somehow you've got a pppd executable which isn't fully compatible with
>the driver in your kernel.  My C skills aren't sufficient to get any
>further than that, sorry.
>
>Is the kernel you're now using the one which came with SuSE v6.1 or have
>you compiled your own?
>
>Did ppp-2.3.8 come as a binary or did you compile locally? 
>
>You could probably fix things by recompiling one or other (or both)
>making sure that you have up-to-date kernel sources and *DON'T* do "make
>kernel" when building pppd.
>
>>I have actually done `rm /dev/cua1'
>>because the `/etc/pcmcia/serial' script actually
>>assume that if /dev/cua1 exist your kernel will default
>>to /dev/cua*. This is nonsense for SuSE 6.1, because has
>>a kernel 2.2.5. [...]
>
>Which kind of suggests that they didn't test things all that thoroughly
>before shipping...are there any updates to SuSE 6.1 which maybe you need
>to apply?
>
Sounds about right :-( Can't remember the rest of the thread, but was
6.1 itself an upgrade, or a clean install.

I upgraded from 5.2 to 6.1, and while my system still runs fine, it's
got a load of, well...

Firstly, the upgrade upgraded my modules but not my kernel - one badly
crippled system...

Then I realised it had replaced libc5 by glibc - any non-os binaries
broke :-(

And now I've realised it appears to have deleted gcc or cc or whatever
it's called from my path (and my system?) so I can't compile stuff. I'm
not sure if it's being stupid or I am, but something's wrong :-(

Let's say my next upgrade (pretty soon) is likely to be Debian 2.2
-- 
Anthony W. Youngman - wol at thewolery dot demon dot co dot uk
Trousers with a single hole in their waistband are topologically equivalent
to a doughnut. These sugarcoated trousers have yet to catch on at fast-food
outlets! (SuperStrings by F. David Peat)

If replying by e-mail please mail wol. Anything else may get missed amongst
the spam.


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

From: "Mark Whitehead" <[EMAIL PROTECTED]>
Subject: Problems with ppp
Date: Sat, 12 Jun 1999 20:09:01 +0100

I am having a problem connecting to the internet using kppp. I have a Linux
box which is on a small network and has an IP address of 192.168.200.1 on
network interface eth0, no problems there. I have used kppp to configure my
dialup to demon using the following script having entered my own hostname,
password and IP address:

# KDE Config File
Name=
[Account0]
TotalBytes=0
ExDNSDisabled=1
AutoName=0
ScriptArguments=ogin:,your_nodename,word:,your_password,ocol:,ppp\\,idle=0,E
LLO,
AccountingEnabled=0
Phonenumber=08452120666
TotalCosts=
IPAddr=xxx.xxx.xxx.xxx
Domain=
Name=Demon Green
VolumeAccountingEnabled=0
pppdArguments=-detach,asyncmap 0,
Password=
Command=
ScriptCommands=Expect,Send,Expect,Send,Expect,Send,Expect,
Authentication=0
DNS=158.152.1.58,158.152.1.43,
SubnetMask=255.255.255.0
AccountingFile=
DefaultRoute=1
Username=
Gateway=158.152.1.222
StorePassword=1
DisconnectCommand=
[Modem]
BusyWait=0
NoDialToneResp=NO DIALTONE
InitDelay=1
ConnectResponse=CONNECT
Enter=CR/LF
FlowControl=CRTSCTS
InitString=ATZ
HangupString=+++ATH
InitResponse=OK
Timeout=60
DialString=ATDT
UseCDLine=0
Device=/dev/modem
NoCarrierResponse=NO CARRIER
BusyResponse=BUSY
Lockfile=/var/lock/LCK..modem
Speed=115200
[General]
QuitOnDisconnect=0
ShowLogWindow=1
DisconnectOnXServerExit=1
DefaultAccount=Demon Green
iconifyOnConnect=1
AutomaticRedial=0
NumberOfAccounts=1
ShowClock=1
DockIntoPanel=0
pppdTimeout=30



Kppp dials up, enters my username, password and then tries to start ppp and
I get the following error in the log file:

Jun 12 16:27:20 homer pppd[881]: pppd 2.3.5 started by root, uid 0
Jun 12 16:27:20 homer pppd[881]: Using interface ppp0
Jun 12 16:27:20 homer pppd[881]: Connect: ppp0 <--> /dev/cua0
Jun 12 16:27:50 homer pppd[881]: Terminating on signal 15.
Jun 12 16:27:51 homer pppd[881]: Hangup (SIGHUP)
Jun 12 16:27:51 homer pppd[881]: Modem hangup
Jun 12 16:27:51 homer pppd[881]: Connection terminated.
Jun 12 16:27:52 homer pppd[881]: Exit.

The hostname of the system on my small internal network is
homer.domain.co.uk (192.168.200.1)
The hostname and ip are obviously different for the ppp0 interface
myname.demon.co.uk
(158.152.xxx.xxx). Is this where the problem may be?

Any help would be great.

TIA

Mark.






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

From: Raymonds Doetjes <[EMAIL PROTECTED]>
Subject: Re: Setting up a shiva
Date: Fri, 11 Jun 1999 21:59:47 +0200

WHat Shiva/

SHiva Lan Rover
Shiva AccessPort /D etc etc

Raymond

KoSaK wrote:

> How to setup a shiva whith linux... ?


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

From: Colombier Pierre <[EMAIL PROTECTED]>
Subject: problem with rh6
Date: Sat, 12 Jun 1999 21:24:06 +0200

upgrading 5.2 to 6.0 or installing 6.0 put down my network, my computer
became blind.
My 3com 503c work very well with 5.2 but when I upgrade to 6.0 there's
nothing to ping, all is unreacheable ???
a solution ?

thanks for helping me

Pierre ;-)

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

From: "Fong's" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux,comp.os.linux.setup,hk.comp.os.linux,tw.bbs.comp.linux
Subject: Re: Telnet using "root"
Date: Fri, 11 Jun 1999 18:31:34 +0800

Dear Jon,

Is the file /etc/securiry/access.conf.
But the readme show the Local login only (for tty... not ttyp)

is me need to create a file /etc/securetty

Not I just want let it work, Then will discuss the Security Problem ...
and the machine not connect to outside..
In this moment, to login as root, and which contain all path and setting,
for easy to setup..
after setting up I will disable the root login....

Thanks!!!
Fong's


Jon Skeet <[EMAIL PROTECTED]> wrote in message
news:MPG.11c8688e731877eb989890@news...
> [EMAIL PROTECTED] wrote:
> > Yes, you should have no problem to telnet using the root account
>
> No - root logins require a secure terminal as specified in /etc/securetty
>
> From the login man page:
>
>        If  the user is root, then the login must be occuring on a
>        tty listed in /etc/securetty.   Failures  will  be  logged
>        with the syslog facility.
>
> So to telnet in as root, you must add entries like ttyp0, ttyp1, ttyp2
> etc to /etc/securetty - but this is a dangerous thing to do (as it means
> that anyone with net access to your machine can hack the root account
> without going through another account first), so I'd be wary of doing it.
>
> --
> Jon Skeet - [EMAIL PROTECTED]
> http://www.pobox.com/~skeet/



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

From: "Fong's" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux,comp.os.linux.setup,hk.comp.os.linux,tw.bbs.comp.linux
Subject: Re: Telnet using "root"
Date: Fri, 11 Jun 1999 18:35:20 +0800

I just find the file, You say..


Thanks!!
Fong's

Fong's <[EMAIL PROTECTED]> wrote in message news:7jqoj6$7t110@rain...
> Dear Jon,
>
> Is the file /etc/securiry/access.conf.
> But the readme show the Local login only (for tty... not ttyp)
>
> is me need to create a file /etc/securetty
>
> Not I just want let it work, Then will discuss the Security Problem ...
> and the machine not connect to outside..
> In this moment, to login as root, and which contain all path and setting,
> for easy to setup..
> after setting up I will disable the root login....
>
> Thanks!!!
> Fong's
>
>
> Jon Skeet <[EMAIL PROTECTED]> wrote in message
> news:MPG.11c8688e731877eb989890@news...
> > [EMAIL PROTECTED] wrote:
> > > Yes, you should have no problem to telnet using the root account
> >
> > No - root logins require a secure terminal as specified in
/etc/securetty
> >
> > From the login man page:
> >
> >        If  the user is root, then the login must be occuring on a
> >        tty listed in /etc/securetty.   Failures  will  be  logged
> >        with the syslog facility.
> >
> > So to telnet in as root, you must add entries like ttyp0, ttyp1, ttyp2
> > etc to /etc/securetty - but this is a dangerous thing to do (as it means
> > that anyone with net access to your machine can hack the root account
> > without going through another account first), so I'd be wary of doing
it.
> >
> > --
> > Jon Skeet - [EMAIL PROTECTED]
> > http://www.pobox.com/~skeet/
>
>



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

From: Fanny Wong <[EMAIL PROTECTED]>
Subject: Cannot set up linux as a router!
Date: Sun, 13 Jun 1999 02:40:07 +0800

I have the following configuration

|------------| |------------------------| |----------|
|Linux Host 1| |     Linux Host 2       | |Win95     |
|192.1.31.79 |-|192.1.31.76  193.1.31.2 |-|193.1.31.1|
| on eth0    | | on eth1      on eth0   | |          |
|------------| |------------------------| |----------|

I want the Linux Host 2 to act as a router between the 2 tcp/ip
networks.
I can ping and telnet between adjacent linux's and linux/win95.
I can ping both addresses on linux host 2 from linux host 1 or win95.
I can also telnet from win95 into linux host 2 and then telnet into
linux host 1 (as expected).
But I cannot ping between linux host 1 and win95.  Why?

On Linux Host 1, route's output is:

Kernel IP routing table
Destination   Gateway       Genmask         Flags Metric Use  Iface
192.1.31.0    *             255.255.255.0   U     0       4   eth0
193.1.31.0    192.1.31.79   255.255.255.0   UG    0       4   eth0
127.0.0.0     *             255.0.0.0       U     0       2   lo


On Linux Host 2, route's output is:
Kernel IP routing table
Destination   Gateway       Genmask         Flags Metric Use  Iface
193.1.31.0    *             255.255.255.0   U     0        2  eth0
192.1.31.0    *             255.255.255.0   U     0        4  eth1
127.0.0.0     *             255.0.0.0       U     0        4  lo

On the Win95, route print's output is:

Active Routes:

Network Address       Netmask  Gateway Address     Interface   Metric
     0.0.0.0          0.0.0.0   208.167.250.98  208.167.250.98   1
   127.0.0.0        255.0.0.0        127.0.0.1      127.0.0.1    1
  192.1.31.0    255.255.255.0       193.1.31.2      193.1.31.1   2
  193.1.31.0    255.255.255.0       193.1.31.1      193.1.31.1   2
  193.1.31.1  255.255.255.255        127.0.0.1       127.0.0.1   1
193.1.31.255  255.255.255.255       193.1.31.1      193.1.31.1   1
255.255.255.255  255.255.255.255  208.167.250.98  208.167.250.98 1

Please Help!

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

From: richard <[EMAIL PROTECTED]>
Subject: source code
Date: Sat, 12 Jun 1999 20:35:55 +0200

Hello everybody,

I'm a newbie in networking so i'm looking for C sourcecode on TCP/IP.
Any tutorials or docs on TCP/IP programming are welcome
thanks in advance

Richard



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

From: "Gregory D. Horne" <[EMAIL PROTECTED]>
Subject: Re: Problems with ppp
Date: Sat, 12 Jun 1999 15:39:13 -0400

Have you changed the permissions on pppd such that any user can execute the
daemon?

     $ chmod u+s /usr/sbin/pppd    <-- try this and let me know if your problem
is resolved


Mark Whitehead wrote:

> I am having a problem connecting to the internet using kppp. I have a Linux
> box which is on a small network and has an IP address of 192.168.200.1 on
> network interface eth0, no problems there.

> ...

> Kppp dials up, enters my username, password and then tries to start ppp and I
> get the following error in the log file:

>
> Jun 12 16:27:20 homer pppd[881]: pppd 2.3.5 started by root, uid 0
> Jun 12 16:27:20 homer pppd[881]: Using interface ppp0
> Jun 12 16:27:20 homer pppd[881]: Connect: ppp0 <--> /dev/cua0
> Jun 12 16:27:50 homer pppd[881]: Terminating on signal 15.
> Jun 12 16:27:51 homer pppd[881]: Hangup (SIGHUP)
> Jun 12 16:27:51 homer pppd[881]: Modem hangup
> Jun 12 16:27:51 homer pppd[881]: Connection terminated.
> Jun 12 16:27:52 homer pppd[881]: Exit.
>
> The hostname of the system on my small internal network is
> homer.domain.co.uk (192.168.200.1)
> The hostname and ip are obviously different for the ppp0 interface
> myname.demon.co.uk
> (158.152.xxx.xxx). Is this where the problem may be?
>


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

From: Raymonds Doetjes <[EMAIL PROTECTED]>
Subject: Re: virtual web hosting
Date: Fri, 11 Jun 1999 22:09:31 +0200

You should add :80 behind the Name VirtualHost ipaddress
Because apache needs to know what port to redirect.

Also be sure that www.domain1.com and www.domain2.com are valid DNS
zones!!! that point both to 192.168.0.1 in your case!

Raymond

Patrick wrote:

> i have problem on implementing named-based virtual web hosting
> i have followed the tutorial
> http://www.apache.org/docs/vhosts/name-based.html
>
> here is my httpd.conf:
> ...
> NameVirtualHost 192.168.0.1
> <VirtualHost 192.168.0.1>
>     ServerAdmin [EMAIL PROTECTED]
>     DocumentRoot /www/domain1
>     ServerName www.domain1.com
>     ErrorLog logs/error_log
>     CustomLog logs/access_log common
> </VirtualHost>
> <VirtualHost 192.168.0.1>
>     ServerAdmin [EMAIL PROTECTED]
>     DocumentRoot /www/domain2
>     ServerName www.domain2.com
>     ErrorLog logs/domain2-error_log
>     CustomLog logs/domain2-access_log common
> </VirtualHost>
>
> i just edited the lines stated above,
> others are not changed....
> do i need to comment the directive DocumentRoot?
> cuz whenever i visit www.domain1.com or www.domain2.com,
> it just show me the index.html in the directory specified by
> DocumentRoot directive
>
> --


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

From: [EMAIL PROTECTED]
Subject: RH 5.2 ipfwadm
Date: Fri, 11 Jun 1999 19:17:39 GMT

I wish I could get the 2.2 kernal to compile....but for now I'll have to
live with IP forwarding instead of IP Chains.  (Not that I understand
the differences anyway).

I've got a little setup with my cable modem.  Linux box as gateway
(192.168.1.1)..and a few Win machines internally on 192.168.1.*.  (IP
Masq) I'd like to have an incoming ftp connection get forwarded to
192.168.1.2.  I thought this would work:

/sbin/ipfwadm -I -a accept -S 0.0.0.0/0 21 -D 192.168.1.2 21

It doesn't.  Why?  Could someone just tell me the commands I need to use
(I guess to put in a script to be run from /etc/rc.d/rc.local)?

Signed-
Fustrated w/ IP Forwarding
(-spencer-)


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

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

From: Chris Chapman <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: ppp and routing
Date: Fri, 11 Jun 1999 17:30:58 -0300

Well try using "route add default gw xxx.xxx.xxx.xxx"
x is the ip of the machine you are connected to....
if you need to find that out try ifconfig ppp0 and it should show it to you...
have fun

Chris Chapman

Sam Cable wrote:

> Apocalypse wrote:
> >
> > Hi,
> >
> > I have a problem with connecting a Linux box to my ISP. The ip is dynamic
> > and ppp connects with no apparant problems.
>
> Well, take heart.  You're doing better than I am.  I can't get a
> connection in the first place.  I have tried configuring with almost
> every tool Red Hat 6.0 supplies.  Could you tell me if you did anything
> special to get to this point?  Thanks.
>
> --Sam


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

From: Mr. Poet <[EMAIL PROTECTED]>
Subject: Re: eth0 and ppp0 - fetchmail behaves strangely !?
Date: 12 Jun 1999 19:30:43 GMT

Hello,

You probably have 2 default routes. Turn off the default route for eth0 
and make sure ppp0 sets the default route when it connects..

Poet

Joshy George wrote:
> 
> Hello,
> I am having some problems with my RHL6.0 with 3Com ethernet and an 
external
> 56Kbps modem. I can connect to my isp pop server through both eth0 and 
ppp0.
> I have sendmail running fine on this machine. Now I am trying to run
> fetchmail. Fetchmail works just great with my Lan connection, but not 
with


==================  Posted via SearchLinux  ==================
                  http://www.searchlinux.com

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

From: "Carl D. Blake" <[EMAIL PROTECTED]>
Crossposted-To: comp.protocols.smb
Subject: Re: samba and smbclient problem
Date: Fri, 11 Jun 1999 20:48:56 GMT

Never mind - I figured it out.  You MUST have file and print sharing enabled
for TCP/IP if you want to access a Windows 95 system from a linux system.  I
had turned it off because I didn't want anybody getting access to my machine
over the internet when I was connected to the internet.  But, I had left
file and print sharing on for NETBIOS.  Very interesting - and a potential
security problem on the Windows95 systems.




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

From: Raymonds Doetjes <[EMAIL PROTECTED]>
Subject: Re: Load balancing
Date: Fri, 11 Jun 1999 22:19:33 +0200

It's pretty striaght forward to create a FreeEqualizer with C or Perl. Just
register the servers in a host file let the let the FreeQualizer check the
load on the servers each 30 sec's and then redirect the packet to the leased
loaded server. Socks lib will help you with that ;-)

Raymond

Andrey Smirnov wrote:

> Hello!
>
> Does anyone know about solution on Linux that allows to perform TCP/IP load
> balancing (not DNS round-robin!)?
>
> Something similar to CISCO's LocalDirector.
>
> Thank you


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

From: Raymonds Doetjes <[EMAIL PROTECTED]>
Crossposted-To: comp.security.firewalls
Subject: Re: Linux firewall & load-balancing NAT & NT-IIS
Date: Fri, 11 Jun 1999 23:30:19 +0200

Well there is a simple but not really a load balancing idea that is to add
several A records to differnt ip address to de DNS. f.i:

www    A    192.168.0.1
www    A    192.168.0.2
www    A     192.168.0.3

etc etc etc

Now every time a call comes to www the next ip address will be given to the quering 
host.
This way you will have a spread load. It does'nt do failover though if one host is 
down,
then the ip address wont be updated (at least in the BIND 4 I don't know if that has 
been
changed in BIND 8 I can't imagine why).

In our example you will lift the load 33.33% of each server.

But you can build a so called dispatch agent your self using C or Perl with the socket
libs.

You read a config file with hosts/port number that acompany the "cluster"
Now the deamon will check the load on all these servers say every 30 seconds (also 
works
as a watchdog timer). If a call comes on a certain port you will redirect this call to 
the
leased loaded server at that point.

The most tricky part is getting the ip data and sending it to the right server over and
over again. So you need to trace certain calls.

For HTTP servers that is'nt that important since http is a non connective protocoll.

Raymond

Chris Goebel wrote:

> I have a linux firewall and an NT web server. I would like to add an additional
> NT web server to provide load-distribution and to provide some fault-tolerance.
>
> Does anybody provide a linux based firewall solution that can support this?
> Will I have to purchase a commercial firewall to get this extra level of 
>functionality?
>
> -Chris


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


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