netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [DNAT] Port forwarding with Port range
@ 2024-11-26 14:46 Mokhtar BEN MESSAOUD
       [not found] ` <CABMULtJAEe+jv6O5qpzqiP1q9o4gDmkCti2D-Ldp10MEh1O2nA@mail.gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Mokhtar BEN MESSAOUD @ 2024-11-26 14:46 UTC (permalink / raw)
  To: netfilter

is it possible to use iptables to define a rule to make a port
forwarding of a range of ports
For example :
iptables -t nat -A PREROUTING -p tcp --dport 1000:2000 -j DNAT
--to-destination 192.168.1.100:3000-4000

so traffic for port 1000 will be redirected to port 3000
and traffic for port 1000+n ==> 3000+N

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-27 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-26 14:46 [DNAT] Port forwarding with Port range Mokhtar BEN MESSAOUD
     [not found] ` <CABMULtJAEe+jv6O5qpzqiP1q9o4gDmkCti2D-Ldp10MEh1O2nA@mail.gmail.com>
2024-11-27 13:02   ` Mokhtar BEN MESSAOUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).