All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables REJECT NAT Internal -> External Portrange
@ 2006-09-27 16:11 Ryan Belcher
  2006-09-27 16:30 ` Jan Engelhardt
  2006-09-27 17:24 ` Nathaniel Hall
  0 siblings, 2 replies; 5+ messages in thread
From: Ryan Belcher @ 2006-09-27 16:11 UTC (permalink / raw)
  To: netfilter

Hi All,

I'm trying to set up a rule that will send an icmp-host-unreachable (or similar) back to the local machine (inside the NAT) if they try to connect to an external host on a specified port range.

I know I'm missing something obvious, but I can't seem to figure out what I'm missing.

iptables -t nat -A PREROUTING -i eth2 -p tcp --dport 10000:11000 -j REJECT --reject-with icmp-host-unreachable

The above command returns with "Invalid Argument".

If I simply replace "-j REJECT --reject-with icmp-host-unreachabel" with "-j DROP" iptables accepts it.

What am I missing?

TIA!

Ryan




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

end of thread, other threads:[~2006-09-27 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27 16:11 iptables REJECT NAT Internal -> External Portrange Ryan Belcher
2006-09-27 16:30 ` Jan Engelhardt
2006-09-27 16:43   ` Ryan Belcher
2006-09-27 17:24 ` Nathaniel Hall
2006-09-27 17:31   ` Ryan Belcher

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.