SSH

perl: warning: Setting locale failed.

2 minute read Modified:

Why does this happen?

When I logged in from my laptop to nameserver and ran nsvi, I got the following message:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LC_MEASUREMENT = "nl_NL.UTF-8",
        LC_PAPER = "nl_NL.UTF-8",
        LC_MONETARY = "nl_NL.UTF-8",
        LC_NAME = "nl_NL.UTF-8",
        LC_ADDRESS = "nl_NL.UTF-8",
        LC_NUMERIC = "nl_NL.UTF-8",
        LC_TELEPHONE = "nl_NL.UTF-8",
        LC_IDENTIFICATION = "nl_NL.UTF-8",
        LC_TIME = "nl_NL.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

But when I login from my normal computer, this does not happen.

During the search of a solution I found it was easy to trigger by using a simple perl command:

perl -e exit

Correct IP logging with sslh

2 minute read Modified:

Logging when using sslh

On a server I use sslh to allow ssh to port 443 and allow serving https sites at the same time. But when this is used, the logging for the TLS/SSL vhosts all show 127.0.0.1 as the source IP. This post will fix this problem

Needed changes

The original documentation mentioned the transparent mode, but when I tried to set it up on a test system it didn’t work. After searching I found a good article which works and does not need iptables configuration.

Recent posts
- full list -