Redhat 6.2 Server dials out when local workstation telnets into server

Redhat 6.2 Server dials out when local workstation telnets into server

Post by Adam Evan » Sat, 28 Apr 2001 23:59:22



My Redhat 6.2 Server has demand dialing installed (I've put 'demand' into
/etc/ppp/options). I have a problem though, that when I telnet into the
server from a local workstation, it dials out to the internet. It refuses to
give me the log in prompt until it has connected to the internet. If I turn
off the demand dial or take out the nameservers it will allow me to login
straight away.

My internal systems are all in the hosts file, and the hosts.allow and
hosts.deny files are insecure (ALL:ALL).

My lookups are set to first hosts, then DNS.

Can anybody tell me why this is happening?

Thanks,

Adam

 
 
 

Redhat 6.2 Server dials out when local workstation telnets into server

Post by Martin Cook » Sun, 29 Apr 2001 00:40:26


Here whats going on..

When you don't have demand dial set and the connection is down the reverse
lookup your linux does comes back immediately ICMP type 3 message because
the default route does not exist.

There are two ways that I know of to fix it..

        1) Install a nameserver on the box that has a reverse zone for
           your internal IP addresses. Or is configured to be the Master
           for that reverse zone, but does not have a zone for them,
           in which case your box will answer it self with authority
           that the IP in question does not have reverse mapping..

        2) Configure pppd so that udp traffic does not bring up the
           connection (I don't know if you can do this with pppd, but
           I know you can with diald)  
           This option is not good because the it is nameservice lookup
           causes a demand-dial connection to go up when you want it
           to go up.

Your /etc/hosts does not affect reverse lookups, only forward lookups.

Martin


> My Redhat 6.2 Server has demand dialing installed (I've put 'demand' into
> /etc/ppp/options). I have a problem though, that when I telnet into the
> server from a local workstation, it dials out to the internet. It refuses to
> give me the log in prompt until it has connected to the internet. If I turn
> off the demand dial or take out the nameservers it will allow me to login
> straight away.

> My internal systems are all in the hosts file, and the hosts.allow and
> hosts.deny files are insecure (ALL:ALL).

> My lookups are set to first hosts, then DNS.

> Can anybody tell me why this is happening?

> Thanks,

> Adam


 
 
 

Redhat 6.2 Server dials out when local workstation telnets into server

Post by Adam Evan » Sun, 29 Apr 2001 01:30:20


Thanks, I will try and install the nameserver option. I think I may have
done that before,
but can't remember why I took it off!

It does make sense now.

Adam


Quote:

> Here whats going on..

> When you don't have demand dial set and the connection is down the reverse
> lookup your linux does comes back immediately ICMP type 3 message because
> the default route does not exist.

> There are two ways that I know of to fix it..

> 1) Install a nameserver on the box that has a reverse zone for
>            your internal IP addresses. Or is configured to be the Master
>            for that reverse zone, but does not have a zone for them,
>    in which case your box will answer it self with authority
>            that the IP in question does not have reverse mapping..

> 2) Configure pppd so that udp traffic does not bring up the
>            connection (I don't know if you can do this with pppd, but
>            I know you can with diald)

 
 
 

Redhat 6.2 Server dials out when local workstation telnets into server

Post by Martin Cook » Sun, 29 Apr 2001 02:58:11


Make sure that you update bind to bind-8.2.3-0.6.x.i386.rpm

ftp://sunsite.unc.edu/pub/Linux/distributions/redhat/updates/6.2/i386...

The one from the orginal install has a remote root expolit.

I would also install:

ftp://ftp.redhat.com/redhat/redhat-6.2-en/os/i386/RedHat/RPMS/caching...

At the end of your /etc/named.conf put:

zone "0.0.10.in-addr.arpa" {
        type master;
        file "10.0.0.rev";

Quote:};

copy /var/named/named.local to /var/named/10.0.0.rev

If your machine has a private 10.0.0.0 address.

To your /etc/resolve.conf also add:

nameserver 0.0.0.0

================================

This will keep your machine from tring to go outside to look for a
reverse mapping for a 10.0.0.0/24 address.

Martin


> Thanks, I will try and install the nameserver option. I think I may have
> done that before,
> but can't remember why I took it off!

> It does make sense now.

> Adam



> > Here whats going on..

> > When you don't have demand dial set and the connection is down the reverse
> > lookup your linux does comes back immediately ICMP type 3 message because
> > the default route does not exist.

> > There are two ways that I know of to fix it..

> > 1) Install a nameserver on the box that has a reverse zone for
> >            your internal IP addresses. Or is configured to be the Master
> >            for that reverse zone, but does not have a zone for them,
> >    in which case your box will answer it self with authority
> >            that the IP in question does not have reverse mapping..

> > 2) Configure pppd so that udp traffic does not bring up the
> >            connection (I don't know if you can do this with pppd, but
> >            I know you can with diald)

 
 
 

Redhat 6.2 Server dials out when local workstation telnets into server

Post by Dean Thompso » Sun, 29 Apr 2001 12:30:31


Hi Adam,

Quote:> My Redhat 6.2 Server has demand dialing installed (I've put 'demand' into
> /etc/ppp/options). I have a problem though, that when I telnet into the
> server from a local workstation, it dials out to the internet. It refuses
> to give me the log in prompt until it has connected to the internet. If I
> turn off the demand dial or take out the nameservers it will allow me to
> login straight away.

> My internal systems are all in the hosts file, and the hosts.allow and
> hosts.deny files are insecure (ALL:ALL).

> My lookups are set to first hosts, then DNS.

> Can anybody tell me why this is happening?

The chances are that this is happening because the tcp wrappers and telnet
daemon are performing a reverse DNS lookup on your hostname to see whether you
are who you say you are.  The problem here is that your DNS is not local, and
as a result, it contacts your remote DNS to do the reverse lookup.  If you
want to get around this problem, you may have to install a small DNS on your
local network which takes care of local lookups.

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

1. Redhat 7.1 workstation connecting to RedHat 6.2 server

Our server runs RedHat 6.2, with 2.2.16-3 kernel and ypserv 1.3.9. All Redhat
6.2 workstations connect to the server with no problems. Recently, I installed
RedHat 7.1 on one machine for testing. Ypbind was upgraded to ypbind-1.7-8.
However, ypbind on the 7.1 machine cannot bind to the 6.2 ypserver. There are
no useful debug messages. The server simply does not respond. The 7.1
workstation runs the 2.4.2 kernel. All the configuration files seem reasonable.
I have not been able to find this problem mentioned on the net. Would someone
please give us some suggestions on how to proceed? Many thanks!

2. klibc requirements, round 2

3. Redhat 5.2 Server vs Workstation: Anyone using the server out there???

4. Installing GCC?

5. port below the parallel port on the Sparc 20

6. access to the serial port

7. FreeBSD Web servers (was Re: NT server vs workstation for WWW server)

8. X server won't start up(Redhat 6.2)

9. Can Redhat 6.2(Zoot) run on DELL 8450 Server which has 8 CPUs ?

10. Digital Personal Workstation 500au, RedHat 6.2, Video controller HELP!

11. Redhat 6.2 Server GUI