All of lore.kernel.org
 help / color / mirror / Atom feed
* nft multiple port exception
@ 2020-01-26 14:01 david
  2020-01-26 14:07 ` kfm
  0 siblings, 1 reply; 2+ messages in thread
From: david @ 2020-01-26 14:01 UTC (permalink / raw)
  To: Linux Netfilter Users List

is it possible to use =! exception statemenet for multiple ports?

ip saddr xxx.xxx.xxx.xxx tcp dport != { 80, 443 } drop


blocking acces to IP except ports 80 and 443


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

* Re: nft multiple port exception
  2020-01-26 14:01 nft multiple port exception david
@ 2020-01-26 14:07 ` kfm
  0 siblings, 0 replies; 2+ messages in thread
From: kfm @ 2020-01-26 14:07 UTC (permalink / raw)
  To: Linux Netfilter Users List

On 26/01/2020 14:01, david@hajes.org wrote:
> is it possible to use =! exception statemenet for multiple ports?
> 
> ip saddr xxx.xxx.xxx.xxx tcp dport != { 80, 443 } drop

Yes.

-- 
Kerin Millar

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

end of thread, other threads:[~2020-01-26 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-26 14:01 nft multiple port exception david
2020-01-26 14:07 ` kfm

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.