Opened 15 months ago

Last modified 4 months ago

#26831 assigned defect

Feature: conditionally allow non-localhost inbound connections with command-line flag

Reported by: dbkaplun Owned by:
Priority: Medium Milestone:
Component: Core Tor/Torsocks Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I am able to run ZNC without torsocks. Here's my attempt to proxy ZNC via torsocks:

foo@foo:~$ torsocks -d znc
1531790543 DEBUG torsocks[2727]: Logging subsytem initialized. Level 5, file (null), time 1 (in init_logging() at torsocks.c:303)
1531790543 DEBUG torsocks[2727]: Config file not provided by TORSOCKS_CONF_FILE. Using default /etc/tor/torsocks.conf (in config_file_read() at config-file.c:543)
1531790543 DEBUG torsocks[2727]: Config file setting tor address to 127.0.0.1 (in conf_file_set_tor_address() at config-file.c:298)
1531790543 DEBUG torsocks[2727]: Config file setting tor port to 9050 (in conf_file_set_tor_port() at config-file.c:254)
1531790543 DEBUG torsocks[2727]: [config] Onion address range set to 127.42.42.0/24 (in set_onion_info() at config-file.c:108)
1531790543 DEBUG torsocks[2727]: Config file /etc/tor/torsocks.conf opened and parsed. (in config_file_read() at config-file.c:572)
1531790543 DEBUG torsocks[2727]: [fclose] Close caught for fd 3 (in tsocks_fclose() at fclose.c:45)
1531790543 DEBUG torsocks[2727]: [onion] Pool init with subnet 127.42.42.0 and mask 24 (in onion_pool_init() at onion.c:104)
1531790543 DEBUG torsocks[2727]: [onion] Pool initialized with base 0, max_pos 255 and size 8 (in onion_pool_init() at onion.c:132)
1531790543 DEBUG torsocks[2727]: [fclose] Close caught for fd 5 (in tsocks_fclose() at fclose.c:45)
[ .. ] Checking for list of available modules...
[ >> ] ok
[ .. ] Opening config [/home/foo/.znc/configs/znc.conf]...
[ >> ] ok
[ .. ] Loading global module [webadmin]...
[ >> ] [/usr/lib/znc/webadmin.so]
[ .. ] Binding to port [+21212]...
1531790543 DEBUG torsocks[2727]: [socket] Creating socket with domain 10, type 1 and protocol 6 (in tsocks_socket() at socket.c:33)
1531790543 DEBUG torsocks[2727]: [listen] Non localhost inbound connection are not allowed. (in tsocks_listen() at listen.c:64)
1531790543 DEBUG torsocks[2727]: [close] Close caught for fd 6 (in tsocks_close() at close.c:33)
[ !! ] Unable to bind [Operation not permitted]
[ ** ] Unrecoverable config error.
1531790543 DEBUG torsocks[2727]: [close] Close caught for fd 5 (in tsocks_close() at close.c:33)
1531790543 DEBUG torsocks[2727]: [onion] Destroying onion pool containing 0 entry (in onion_pool_destroy() at onion.c:148)
1531790543 DEBUG torsocks[2727]: [fclose] Close caught for fd 2 (in tsocks_fclose() at fclose.c:45)
foo@foo:~$ 

Child Tickets

Change History (2)

comment:1 Changed 15 months ago by nickm

Component: - Select a componentCore Tor/Torsocks
Owner: set to dgoulet

comment:2 Changed 4 months ago by gaba

Owner: dgoulet deleted
Status: newassigned

Releasing some old tickets.

Note: See TracTickets for help on using tickets.