\_ SMTP quoth Liberty Young on 5/20/2003 11:27 as having spake thusly:
\_
\_
\_
\_ I'm trying to forward ssh requests from one machine to another from the
\_ internet.
\_
\_ i.e., ssh to my home gateway from work on port 22 does just that (this
\_ works already).
\_ but if i ssh to my home gateway's IP from work, on port 3022 for
\_ example, would actually be logging me into another box behind my
\_ gateway.
\_
\_ I've been googling for iptable rules for this, but i'm not finding one.
\_ Do you guys have any iptable examples or other suggestions?
/sbin/iptables -t nat -A PREROUTING -p tcp -m tcp --dport 3022 \
-j DNAT --to-destination 192.168.0.10:22
David