http://grimore.i2p/networking/tor/hidden_services
After configuring the local subnets, the only required lines are: server = 127.0.0.1
server_type = 5
server_port = 9050 that relay all the TCP traffic to Tor, listening on 127.0.0.1 and on port 9050 . An invocation of tsocks , could then be: tsocks mysql -u user -p -h vva33zlardffgeet.onion that would connect to a hidden database, at the .onion address vva33zlardffgeet.onion over the Tor network.