🙈Using proxy
Use proxy to interact with KLY network
TOR Proxy

Probably the most known hidden network is TOR. We already have a simple and lightweight docker image for you to set up your own local proxy:
Build
docker build -t tag .
Or install
docker pull klyntar/dev_tor@sha256:9650d231a781cace3c71591faa29fde37ca46c45cdae7379a34e1f2c532c8535
Create container
docker run -dtp 5666:5666 --name tor_proxy <image_name>
Start proxy
docker exec -ti tor_proxy sudo -u tor tor
This will run proxy on 0.0.0.0, so you can use this SOCKS proxy via port 5666. If you need,modify torrc
file and rebuild the image
Usage
Using TOR proxy you have ability to hide your connection to node with no matter if this node in so-called clearnet or runned as hidden service over TOR
So these two snippets are ok:
Node in clearnet
import Web1337 from '@klyntar/web1337';
let web1337 = new Web1337({
symbioteID:'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
workflowVersion:0,
nodeURL:'https://some.example.com:7332/token=blablabla'
// Set to use SOCKS proxy on local port 5666 for YOU => TOR => NODE interaction
proxyURL:'socks5h://localhost:5666'
});
Node runned as a TOR hidden service
import Web1337 from '@klyntar/web1337';
let web1337 = new Web1337({
symbioteID:'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
workflowVersion:0,
// v3 address
nodeURL:'http://klyntarkari3d3tzvsnzqgg7i3gou3l5t2svedzfdlh4cigcw6hwmcqd.onion'
// Set to use SOCKS proxy on local port 5666 to interact with node hidden over TOR
proxyURL:'socks5h://localhost:5666'
});
I2P

I2P can be used both as HTTP and SOCKS proxy
Other proxies
SSH
Proxy services
Last updated
Was this helpful?