Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Torsocks
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • Torsocks
  • Issues
  • #26831

Closed
Open
Created Jul 17, 2018 by Trac@tracbot

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

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:~$ 

Trac:
Username: dbkaplun

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking