Victor Cappuccio <(E-Mail Removed)> wrote:
> Redirecting a port too another machine using iptables...
> iptables -t nat -A PREROUTING -p tcp -i eth0 -d <firewall-ip> --dport
> 2222 -j DNAT --to <internal-ip>:22
> iptables -A FORWARD -p tcp -i eth0 -d <internal-ip> --dport 22 -j ACCEPT
Do you actually have a question?
What you've listed as basic port-forwarding, and is only really valid
when going through a NAT. If you really want to redirect a port to
another machine without going through a NAT (such a when you have a
transparent proxy set up on a machine that is not the firewall), then I
suggest you have a look at the Transparent Proxy HOWTO for how to do
such a thing.
--
Cameron Kerr
(E-Mail Removed) :
http://nzgeeks.org/cameron/
Empowered by Perl!