SSH to Linux machine behind VPN server shows IP address of VPN server

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
linush100
Posts: 1
Joined: Sat Sep 15, 2018 6:01 pm

SSH to Linux machine behind VPN server shows IP address of VPN server

Post by linush100 » Sat Sep 15, 2018 6:29 pm

I have SoftEther server installed on a machine on subnet 10.25.8.0/18 and I am able to SSH through the VPN server to machines in the same network on subnet 10.25.0.0/18 but the machine that I SSH in to logs the IP address of the VPN server as the originating address. Is there a way for it to show the IP address of the machine where I am running the SSH client process?

See example snippet from /var/log/messages:

msg='op=PAM:accounting grantors=pam_unix,pam_localuser acct="<user>" exe="/usr/sbin/sshd" hostname=10.25.8.10 addr=10.25.8.10 terminal=ssh res=success'

Preferably, I'd like to see the public IP address in cases where the user is behind a router and has, for example, a 192.168.0.0 IP address assigned to his/her computer.

Thanks for any help.
Linus

Post Reply