DNAT to localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2002-11-13 at 21:35, Nix N. Nix wrote:
> Hi ! I sent the following message to netfilter@lists.samba.org as well,
> so, if it hits this list twice, please forgive me.
>=20
> Here it is:
>=20
> Why doesn't this work ?
>=20
> /sbin/iptables -t nat -A PREROUTING -p udp --destination 192.168.1.1/32
> --dport 80 -j DNAT --to-destination 127.0.0.1:8080

[snip]

> So, is there any way to forward TCP ports from local interfaces to the
> loopback interface ?

Change from "udp" to "tcp" in your iptables line above.

When you debug your iptables rules, turn on full logging to see what is
being dropped.

Hope this helps,

Bj=F8rn




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux