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

-- 
fedora-list mailing list
[email protected]
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Reply via email to