-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtnat64.1
48 lines (47 loc) · 1.54 KB
/
tnat64.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.TH TNAT64 1 "" "TNAT64"
.SH NAME
.BR tnat64
\- Shell wrapper to simplify the use of the tnat64(8) library to
transparently allow an application to connect to IPv4 hosts via NAT64
on IPv6-only systems when the application doesn't support IPv6 itself.
.SH SYNOPSIS
.B tnat64
.RB [application\ [application's\ arguments]]
.br
or
.B tnat64
.RB [on|off]
.br
or
.B tnat64
.SH DESCRIPTION
.B tnat64
is a wrapper between the tnat64 library and the application what you
would like to run through NAT64.
.SH OPTIONS
.IP \fB[application\ \fB[application's\ arguments]]
run the application as specified with the environment (LD_PRELOAD) set
such that tnat64(8) will transparently forward all connections to the NAT64
via IPv6
.IP \fB[on|off]
this option adds or removes tnat64(8) from the LD_PRELOAD environment
variable. When tnat64(8) is in this variable all executed
applications are automatically NAT64-ed. If you want to
use this function, you HAVE to source the shell script from yours,
like this: "source /usr/bin/tnat64" or ". /usr/bin/tnat64"
.br
Example:
.br
". tnat64 on" -- add the tnat64 lib to LD_PRELOAD
.br
". tnat64 off" -- remove the tnat64 lib from LD_PRELOAD
.IP \fB[show|sh]
show the current value of the LD_PRELOAD variable
.IP \fB<without\ any\ argument>
create a new shell with LD_PRELOAD including tnat64(8).
.PP
.SH AUTHOR
This script was created by Tamas SZERB <toma@rulez.org> for the Debian
package of tsocks. It (along with this manual page) have since been
adapted into the main tsocks project and modified, and then modified
to be used with tnat64.