Local binding port for SSH client?
Jorge Fábregas
jorge.fabregas at gmail.com
Thu Sep 4 04:37:17 UTC 2008
On Wednesday 03 September 2008 11:59:05 pm Bill Davidsen wrote:
> If you want to learn a little about iptables you can just do SNAT to
> control the IP and port.
> iptables -A POSTROUTING -t nat -p tcp -d 1.2.3.4 --dport ssh \
> -j SNAT --to-source 4.3.2.1:24702
>
> That is, if the destination IP is 1.2.3.4 and the destination port is
> ssh (22), change the source IP to 4.3.2.1 port 24702
>
> Requires static IP.
Hi Bill,
That's interesting. I had no idea I could do that with iptables. I use it for
incoming traffic (on my machine) but never thought about makign those
manipulation with outbound traffic of mine.
Thanks for the tip.
--
Jorge
More information about the fedora-list
mailing list