"Fossies" - the Fresh Open Source Software Archive 
Member "portfwd-0.29/cfg/portfwd1.cfg" (15 May 2001, 883 Bytes) of package /linux/privat/old/portfwd-0.29.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) INI source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /*
2 portfwd1.cfg
3
4 $Id: portfwd1.cfg,v 1.1.1.1 2001/05/15 00:24:48 evertonm Exp $
5 */
6
7 user nobody
8 group nobody
9
10 tcp /* TCP connections */
11 {
12 /*
13 * Connections on port 12000 from subnet localhost/24 and
14 * ports in the range 0-5000 are forwarded to 127.0.0.1:23.
15 * Anything else goes to 127.0.0.1:80.
16 */
17 12000 {
18 localhost/24:+5000 => 127.0.0.1:23;
19 /* anything else */ => 127.0.0.1:80
20 };
21
22 /*
23 * On port 11000, connections from address localhost, any port,
24 * are forwarded to 127.0.0.1:23.
25 */
26 11000 { localhost => 127.0.0.1:23 };
27
28 10000 ftp-passive-mode-on 127.0.0.1
29 { => localhost:ftp }
30 }
31
32 udp /* UDP packets */
33 {
34 /*
35 * All packets on port 10000 are forwarded to 127.0.0.1:11000.
36 */
37 10000 { => 127.0.0.1:11000 }
38 }