Difference between revisions of "NetCat"
From John Freier
Line 3: | Line 3: | ||
This one redirect port 24 to port 22. | This one redirect port 24 to port 22. | ||
− | <code> | + | <code>24 stream tcp nowait nobody /usr/sbin/tcpd /bin/nc 192.168.1.1 22</code> |
− | + | ||
− | 24 stream tcp nowait nobody /usr/sbin/tcpd /bin/nc 192.168.1.1 22 | + | |
− | + | ||
− | </code> | + | |
This one redirects port 6000(x11) to port 25 | This one redirects port 6000(x11) to port 25 | ||
− | <code> | + | <code>x11 stream tcp nowait root /usr/local/bin/nc nc -n -w 3 127.0.0.1 25</code> |
− | + | ||
− | x11 stream tcp nowait root /usr/local/bin/nc nc -n -w 3 127.0.0.1 25 | + | |
− | + | ||
− | </code> | + |
Revision as of 08:50, 28 May 2009
Redirect ports.
This one redirect port 24 to port 22.
24 stream tcp nowait nobody /usr/sbin/tcpd /bin/nc 192.168.1.1 22
This one redirects port 6000(x11) to port 25
x11 stream tcp nowait root /usr/local/bin/nc nc -n -w 3 127.0.0.1 25