Re: dnat question

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

 



Don't include any port... that should be enough.

iptables -t nat -A PREROUTING -p tcp -j DNAT --to-destination x.x.x.x:80

On 2/14/06, James Edward Stickland <jstic04@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hello, could someone help me with writing a rule to do the following
>
> All tcp connections on all port numbers 1-65534 be dnat'ed to host
> x.x.x.x on port 80
>
> im setting up a simple honey pot. for new connections coming to my wan
> interface.
>
> i know i could do separate prerouting chain in the nat table entries
> for each port - but how can i do a one liner?
>
>



[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