[sslh] Apache and the right IP address?

Brom brom at ldkf.de
Sun Jul 20 13:22:28 CEST 2014


Hi,
I was aware that there's a difference between libcap and libpcap but 
libpcap was not available as a package so I thought libpcap-dev is 
right. However compiling worked fine after installing libcap-dev. In the 
end it's the same now. I get the setsockopt error again with the new 
binaries.
Here's again the output when I start sshl-select manually.
/root at www:/home/alwin/sslh# /home/alwin/sslh/sslh-select --user sslh 
--listen 93.190.92.230:443 --ssh 93.190.92.230:22 --ssl 
93.190.92.230:4443 --transparent -f -v//
//ssh addr: www.ldkf.de:ssh. libwrap service: sshd family 2 2//
//ssl addr: www.ldkf.de:4443. libwrap service: (null) family 2 2//
//listening on://
//    www.ldkf.de:https//
//timeout: 2//
//on-timeout: ssh//
//listening to 1 addresses//
//turning into sslh//
//sslh-select v1.16-14-g9a0a9b9-dirty started//
//selecting... max_fd=4 num_probing=0//
//accepted fd 4 on slot 0//
//selecting... max_fd=5 num_probing=1//
//accepted fd 5 on slot 1//
//selecting... max_fd=6 num_probing=2//
//processing fd0 slot 1//
//**** writing deferred on fd -1//
//probing for ssh//
//probing for ssl//
//connecting to www.ldkf.de:4443 family 2 len 16//
//setsockopt: Operation not permitted/


Brom

Am 20.07.2014 13:08, schrieb Thomas Weißschuh:
> Hi,
>
> On Sun, 2014-07-20T11:14+0200, Brom wrote:
>> Hi,
>> Indeed I don't get the setsockopt error when I run as root, but as sslh I
>> do. The binary has the right capabilities. I tried compiling with libcap,
>> too. The error message was:
>> /$ make
>> cc -Wall -g   -o sslh-fork sslh-fork.o common.o sslh-main.o probe.o
>> -lconfig -lcap
>> /usr/bin/ld: cannot find -lcap
> libcap                     ^^^^^
>
>> collect2: error: ld returned 1 exit status
>> make: *** [sslh-fork] error 1/
>> I installed libpcap-dev with all its dependencies so that can't be the
> lib*p*cap     ^^^^^^^^^^^
>
>> problem. That's why I removed it from Makefile.
> Regards,
> Thomas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rutschle.net/pipermail/sslh/attachments/20140720/a1a0997f/attachment.html>


More information about the sslh mailing list