I
I
Igor2012-09-25 18:01:15
linux
Igor, 2012-09-25 18:01:15

Why is sshd logging the internal IP and not the external one?

stands ubuntu 12.04.1
in the file /var/log/auth.log I observe the entry:

Sep 19 23:05:55 qwerty-desktop sshd[16851]: Accepted password for [user_name] from 10.82.14.37 port 57837 ssh2


question: why is the local IP fixed? The connection was made remotely. The user sits at home behind NAT. As I understand it, just the address of the computer in its LAN is fixed

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2012-09-25
@alexxxst

You're probably peering with his home network.
It's exactly the same with me :) Sometimes it's useful, you don't have to pay for the Internet at home, you can sit through your proxy ...

Y
Yaroslav, 2012-09-28
@xenon

Make a simple .php on a typewriter with text like:
echo "IP: ".$_SERVER["REMOTE_ADDR"];
and see what it produces when you open it in a browser from that machine. If the address is 10.*, then it's not about SSH, but, as they said above, about direct routing. Well, as an option, you can ping the client's address from this server - if it is definitely NAT'ed - pings will not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question