Remote IP addr from telnet sesion (secure telnet)

Remote IP addr from telnet sesion (secure telnet)

Post by Roberto Carras » Tue, 19 Mar 1996 04:00:00

Hi Guys (sorry, my english is poor):

I'm doing a C program to restrict who can login to our AIX server
using telnet.

The access method use the username-tty (or remote IP address) to
deny or allow the login. Aix support a second auth method so we
don't need to put it in /etc/profile.

We need to restrict access not just for remote IP address (like
tcp_wrapper), but for username too (username-line pair).

/etc/utmp is limited to 16 characters for the remote hostname.
I know any program inherit the socket from inetd, but in a telnet
session, file descriptor 0 is not a socket (so getpeername don't
work) but the socket stlii exists. How can i get a reference to it ???


gracias ..


Unidad de Computacion y Analisis
Facultad de Ciencias Economicas y Administrativas
Universidad de Chile


1. Network Problems - Remote Ping successful / telnet local successful / telnet remote failed

im working with a small Linux System with network support on an local
network. A ping from a remote machine is successful. A local telnet
session is also successful. A telnet session from the remote machine
will fail.

I can see with ifconfig, if the ping from the remote machine is running,
the tx counter increases. If I try the remote telnet session, i can
watch incoming packets but no packet will transmitted.

With tcpdump i see the telnet connect request from the remote machine.
At next my machines sends an arp-request about the address of the remote
machine and the remote machine replies the correct information, but
nothing will happen.

My routing table has an entry for the network an for my own machine.

Has anybody an idea whats going wrong.



2. max data size

3. Remote Ping successful/telnet local successful/telnet remote failed

4. Sound from the system

5. How find IP addr of other end of telnet connection?

6. RedHat 3.0.3 Hangs During Install

7. How to know IP addr. upon telnet

8. Looking for a font that will look OK in all my applications

9. How to find IP addr of telnet client?

10. How find IP addr of other end of telnet connection?

11. How to find IP addr of telnet session initiator??

12. Telnet, logging sesions

13. Max telnet sesions