Re: port forwarding question

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

 



On Mar 17 2008 09:26, Phil Sutter wrote:
>
>I thought I could do the following but it does not work:
>
>iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 5080:5085 -j DNAT
>--to 192.168.1.10:80-85
>
>Is there a way to do what I want to do with a single command or do I
>have to forward each port with an individual command?

To do it with a single rule requires your own target extension.

:80-85 just tells it to choose any one of it.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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