Re: xinetd - how to figure out from which interface a connection is coming

2005-05-02 Thread Vic Cross
On Sun, May 01, 2005 at 04:24:02PM -0300, Ulisses Penna wrote: I realy need the local address. The xinetd is listening to all possible local interfaces: eth0:1 and eth0:2 and eth0:3 and so on. It's a bit more work on the xinetd side, but you can set up xinetd to bind on each interface

Re: xinetd - how to figure out from which interface a connection is coming

2005-05-01 Thread Ulisses Penna
Folks, I think I didn't tell enough details ... Post, Mark K wrote Check the value of the SSH_CONNECTION environment variable. Mark Post Mark, the user only ssh to the zLinux in order to start a daemon and then they logoff. Instead of giving each user a zLinux image we gave to them an

xinetd - how to figure out from which interface a connection is coming

2005-04-26 Thread Ulisses Penna
Hi all, I have a zLinux image that is used for lots of users (ssh) for an internal app. The Linux box is configured with various TCP/IP interfaces like: ip_1 - eth0:0 (user_1) ip_2 - eth0:1 (user_2) ip_3 - eth0:2 (user_3) and so on. Each user has its own TCP/IP address. Then

Re: xinetd - how to figure out from which interface a connection is coming

2005-04-26 Thread Sebastian Korte
Ulisses, Finding that, I can map the IP address (or interface) to the user. Do you really need the local adress the user is connected to? To find out the remote user ip? You can directly get the remote ip of the user with env | grep REMOTE_HOST in you shell script. It's the shorter way.

Re: xinetd - how to figure out from which interface a connection is coming

2005-04-26 Thread Post, Mark K
Check the value of the SSH_CONNECTION environment variable. Mark Post -Original Message- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Ulisses Penna Sent: Tuesday, April 26, 2005 7:33 AM To: LINUX-390@VM.MARIST.EDU Subject: xinetd - how to figure out from which