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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
.TH afserver 1 "apf 0.6" Jeremian
.SH NAME
afserver \- active port forwarder server
.SH SYNOPSIS
.B afserver [
.I options
.B ]
.SH DESCRIPTION
.B Afserver
is a port forwarding program designed to be efficient and easy to use. It listens for incoming
.B afclient
connections at listenport (default listenport is 50126). After successful client authorization,
.B afserver
listens for incoming user connections. When a new user connection is opened, all the data is redirected to previously connected
.B afclient,
which redirects it to the specified destination host:port.
.SH EXAMPLES
.B afserver
program starts with default options (become a daemon)
.B afserver -v
verbose mode is enabled (program won't enter daemon mode)
.B afserver -n localhost -l 5435 -m 6375
program will listen on localhost:5435 for users and on localhost:6375 for clients
.SH OPTIONS
.I "Basic options"
.B -n, --hostname NAME
used when creating listening sockets (default: '')
.B -l, --listenport PORT
listening port number - users connect to it (default: 50127)
.B -m, --manageport PORT
manage port number -
.I afclient
connects to it (default: 50126)
.B -h, --help
prints help screen
.I Authorization
.B --pass PASSWORD
password used for client identification (default: no password)
.I Configuration
.B -c, --cerfile FILE
the name of the file with certificate (default: cacert.pem)
.B -k, --keyfile FILE
the name of the file with RSA key (default: server.rsa)
.B -f, --cfgfile FILE
the name of the file with the configuration for the
.I afserver
.B -D, --dateformat FORMAT
format of the date printed in logs (see 'man strftime' for details) (default: %d.%m.%Y %H:%M:%S)
.B -t, --timeout N
the timeout value for the client's connection (default: 5)
.B -u, --users N
the amount of users allowed to use this server (default: 5)
.B -C, --clients N
the number of allowed clients to use this server (default: 1)
.B -r, --realm
set the realm name (default: none)
.B -R, --raclients N
the number of allowed clients in remote administration mode to use this server (default: 1)
.B -U, --usrpcli N
the number of allowed users per client (default: $users)
.B -M, --climode N
strategy used to connect users with clients (default: 1)
Available strategies:
1. fill first client before go to next
.B -p, --proto TYPE
type of server (tcp|udp) - what protocol it will be operating for (default: tcp)
.B -b, --baseport
listenports are temporary and differ for each client
.B --nossl
ssl is not used to transfer data (but it's still used to establish a connection) (default: ssl is used)
.B --nozlib
zlib is not used to compress data (default: zlib is used)
.B --dnslookups
try to obtain dns names of the computers rather than their numeric IP
.I Logging
.B -O, --heavylog
logging everything to a logfile
.B -o, --lightlog
logging some data to a logfile
.B -S, --heavysocklog
logging everything to a localport
.B -s, --lightsocklog
logging some data to a localport
.B -v, --verbose
to be verbose - program won't enter the daemon mode (use several times for greater effect)
.I "IP family"
.B -4, --ipv4
use ipv4 only
.B -6, --ipv6
use ipv6 only
.SH "REMOTE ADMINISTRATION"
Currently available commands are:
.B help
display help
.B lcmd
lists available commands
.B info
prints info about server
.B rshow
display realms
.B cshow X
display clients in X realm
.B ushow X
display users in X realm
.B quit
quit connection
.SH "SEE ALSO"
.BR afclient (1),
.BR afserver.conf (5)
.SH BUGS
.B Afserver
is still under development. There are no known open bugs at the moment.
.SH "REPORTING BUGS"
Please report bugs to <jeremian [at] poczta.fm>
.SH AUTHOR
Jeremian <jeremian [at] poczta.fm>
.SH CONTRIBUTIONS
Alex Dyatlov <alex [at] gray-world.net>, Simon <scastro [at] entreelibre.com>, Ilia Perevezentsev <iliaper [at] mail.ru> and Marco Solari <marco.solari [at] koinesistemi.it>
.SH LICENSE
Active Port Forwarder is distributed under the terms of the GNU General Public License v2.0 and is copyright (C) 2003,2004,2005 jeremian <jeremian [at] poczta.fm>. See the file COPYING for details.
|