Michael C. Toren on 9 Apr 2004 04:21:01 -0000 |
On Thu, Apr 08, 2004 at 10:24:39AM -0400, LeRoy Cressy wrote: > Last night there was a question about how to get port 22 to > automatically be forwarded to a machine inside a firewall to a private > address. [..] That's a good deal of boilerplate, but the only iptables rule you should need is something along the lines of: iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 22 \ -j DNAT --to 192.168.42.11:22 (Assuming eth0 is the external interface.) -mct ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|