BLITZ(1) | General Commands Manual | BLITZ(1) |
blitz
— Securely
transfer files between two workstations through NAT/Firewall.
blitz |
[-lT ] [-s
secret] [-k
keyfile] [-f
list] [-o
RSOPT=] [files ...] |
The blitz
utility is a wrapper script for
gs-netcat and rsync. It allows one to send files from one workstation to
another workstation via the Global Socket Relay Network (GSRN).
A typical use-case is where both workstations are separated by a Firewall or NAT and not able to establish a direct connection between each other.
-l
-s
secret-k
FILE-f
FILE-o
RSOPT=-T
blitz
tool will connect via TOR to
the GSRN. This requires TOR to be installed and running. The IP and PORT
of the TOR server can be set using environment variables.See gs-netcat(1) for more options.
Listen for clients with password 'MySecret':
$ mkdir /tmp/foo && cd
/tmp/foo
$ blitz -s MySecret -l
Copy 'file.dat' to /tmp/foo/file.dat on the server:
$ blitz -s MySecret
file.dat
Copy '/etc/ssh/ssh*config' to /tmp/foo/etc/ssh/ on the server:
$ blitz -s MySecret
/etc/ssh/ssh*config
It is also possible to limit the amount of path information that is sent as implied directories for each path you specify. You can insert a dot and a slash into the source path, like this:
$ blitz -s MySecret
/etc/./ssh/ssh*config
Copy recursively and limit bandwidth to 10kB/sec:
$ blitz -s MySecret -o
'RSOPT=--bwlimit=10' /usr/./share
Copy the entire root file-system:
$ blitz -s MySecret -o 'RSOPT=-x'
/
Copy specific files read from standard input:
$ find . -name '*.conf' |
blitz -s MySecret -f -
Run a permanent server (daemon) through TOR:
$ blitz -s MySecret -l -D
-T
See gs-netcat(1) for a list of supported environment variables.
Efforts have been made to have blitz
"do the right thing" in all its various modes. If you believe that
it is doing the wrong thing under whatever circumstances, please notify me
(skyper@thc.org) and tell me how you think it should behave.
October 12, 2020 | Debian |