/* * example.cfg */ user nobody group nobody tcp /* TCP connections */ { /* * Connections on port 12000 from subnet localhost/24 and * ports in the range 0-5000 are forwarded to 127.0.0.1:23. * Anything else goes to localhost:80. */ 12000 { localhost/24:+5000 => 127.0.0.1:23; /* anything else */ => localhost:80 }; /* * On port 11000, connections from address localhost, any * port, are forwarded to 127.0.0.1:telnet. */ 11000 { localhost => 127.0.0.1:telnet }; 10000 ftp-active-mode-on 127.0.0.1 ftp-passive-mode-on 127.0.0.1 { => localhost:ftp } } udp /* UDP packets */ { /* * All packets on port 10000 are forwarded to 127.0.0.1:11000. */ 4662 { => 192.168.0.1:4662 } } /* * eof: example.cfg */