Skip to content

Simply doesn't work #1

Description

@QuantumDisposition

Listening port drops connections. Literally nothing is happening. Debug log shows nothing. An nginx worker exists with signal 8.

2022/12/23 22:40:35 [debug] 57526#102466: accept on 10.10.0.1:8080, ready: 1
2022/12/23 22:40:35 [debug] 57526#102466: posix_memalign: 0000000800DD5000:256 @16
2022/12/23 22:40:35 [debug] 57526#102466: *15 accept: 10.10.0.1:58234 fd:3
2022/12/23 22:40:35 [debug] 57526#102466: posix_memalign: 0000000800DD5100:256 @16
2022/12/23 22:40:35 [info] 57526#102466: *15 client 10.10.0.1:58234 connected to 10.10.0.1:8080
2022/12/23 22:40:35 [debug] 57526#102466: *15 posix_memalign: 0000000800DD5200:256 @16
2022/12/23 22:40:35 [debug] 57526#102466: *15 malloc: 000000080147C140:272
2022/12/23 22:40:35 [debug] 57526#102466: *15 generic phase: 0
2022/12/23 22:40:35 [debug] 57526#102466: *15 generic phase: 1
2022/12/23 22:40:35 [debug] 57526#102466: *15 generic phase: 2
2022/12/23 22:40:35 [debug] 57526#102466: *15 generic phase: 3
2022/12/23 22:40:35 [debug] 57526#102466: *15 generic phase: 4
2022/12/23 22:40:35 [debug] 57526#102466: *15 tcp_nodelay
2022/12/23 22:40:35 [debug] 57526#102466: *15 posix_memalign: 0000000800DD5300:256 @16
2022/12/23 22:40:35 [debug] 57526#102466: *15 posix_memalign: 0000000800DD5400:256 @16
2022/12/23 22:40:35 [debug] 57526#102466: *15 recv: eof:0, avail:0, err:0
2022/12/23 22:40:35 [debug] 57526#102466: *15 kevent set event: 3: ft:-1 fl:0025
2022/12/23 22:40:35 [debug] 57526#102466: *15 recv: eof:0, avail:5, err:0
2022/12/23 22:40:35 [debug] 57526#102466: *15 recv: fd:3 5 of 128
2022/12/23 22:40:35 [debug] 57526#102466: *15 send: fd:3 2 of 2
2022/12/23 22:40:35 [debug] 57526#102466: *15 recv: eof:0, avail:13, err:0
2022/12/23 22:40:35 [debug] 57526#102466: *15 recv: fd:3 13 of 128
2022/12/23 22:40:35 [debug] 57528#102466: kevent set event: 11: ft:-1 fl:0005
2022/12/23 22:40:35 [debug] 57528#102466: kevent set event: 12: ft:-1 fl:0005
2022/12/23 22:40:35 [debug] 57528#102466: kevent set event: 13: ft:-1 fl:0005
2022/12/23 22:40:35 [debug] 57528#102466: kevent set event: 14: ft:-1 fl:0005
2022/12/23 22:40:35 [debug] 57528#102466: kevent set event: 15: ft:-1 fl:0005
==> ngx.error.log <==
2022/12/23 22:40:35 [alert] 57408#101792: worker process 57526 exited on signal 8
log_format socks5 'socks: $socks_connect_addr $socks_name $socks_passwd';
server {
    listen 10.10.0.1:8080;
    socks;
    socks_proxy_bind [external IPv4];
    socks_user_passwd test1 test2;
    access_log ngx_socks_access.log socks5;
}

testing with:

# curl -v --socks5 test1:test2@10.10.0.1:8080 ifconfig.me
*   Trying 10.10.0.1:8080...
* connection to proxy closed
* Closing connection 0
curl: (97) connection to proxy closed
nginx version: nginx/1.23.3

Compiles fine. Stream is enabled (and works).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions