[Lvlug] Re: iptables question regarding asterisk
Faber Fedor
faber at linuxnj.com
Thu Jul 7 11:29:58 EDT 2005
On 07/07/05 10:22 -0400, Dann S. Washko wrote:
> iptables -A PREROUTING -t nat -p tcp -d 66.92.235.11 --dport 69 -j DNAT
> --to 192.168.0.14:69
>
>
> The --dport option lets you specify a range of ports: --dport 10000:20000
>
> but the --to option does not seem to have the same syntax. The man page
> suggests --to destination:ip_range_start-ip_range_stop
Have you tried
--to-destination ip_range_start-ip_range_stop:port_start-port_end
(search the man page for DNAT).
--
Regards,
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701
http://www.linuxnj.com
More information about the Lvlug
mailing list