[BACK]Return to nat.1 CVS log [TXT][DIR] Up to [local] / src / share / ipf

Annotation of src/share/ipf/nat.1, Revision 1.2

1.2     ! kstailey    1: # map all tcp connections from network 10 to the address of the first ppp0
        !             2: # interface
        !             3: map ppp0 10.0.0.0/8 -> ppp0/32 portmap tcp/udp 10000:20000
        !             4:
1.1       dm          5: # map all tcp connections from 10.1.0.0/16 to 240.1.0.1, changing the source
                      6: # port number to something between 10,000 and 20,000 inclusive.  For all other
                      7: # IP packets, allocate an IP # between 240.1.0.0 and 240.1.0.255, temporarily
                      8: # for each new user.
                      9: #
                     10: map ed1 10.1.0.0/16 -> 240.1.0.1/32 portmap tcp 10000:20000
                     11: map ed1 10.1.0.0/16 -> 240.1.0.0/24
                     12: #
                     13: # Redirection is triggered for input packets.
                     14: # For example, to redirect FTP connections through this box, to the local ftp
                     15: # port, forcing them to connect through a proxy, you would use:
                     16: #
                     17: rdr ed0 0.0.0.0/0 port ftp -> 127.0.0.1 port ftp
                     18: #