updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / portfwd / default_config.conf
blob7d18d2b2124c647852fbecd72054bc77dff35808
1 /*
2  * Default / example configuration file
3  * For more info see documentation in /usr/doc/portfwd
4  */
6 user  nobody
7 group nobody
8 listen-on 127.0.0.1
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 localhost:80.
16          */
17          
18          12000 { 
19                 localhost/24:+5000      => 127.0.0.1:23;
20                                         => localhost:80
21                 };
23         /*
24          * On port 11000, connections from address localhost, any 
25          * port, are forwarded to 127.0.0.1:telnet.
26          */
27          
28         11000 { localhost => 127.0.0.1:telnet };
29         20080 { localhost => 127.0.0.1:80 }
30     }
32 udp /* UDP packets */
33     {
34         /*
35          * All packets on port 10000 are forwarded to 127.0.0.1:11000.
36          */
37          
38          10000 { => 127.0.0.1:11000 }
39     }