Groups | Search | Server Info | Login | Register


Groups > comp.os.linux.networking > #8519

resolved: Re: iptables syntax issue

From Mike Scott <usenet.16@scottsonline.org.uk.invalid>
Newsgroups comp.os.linux.networking
Subject resolved: Re: iptables syntax issue
Date 2024-11-28 08:03 +0000
Organization Scott family
Message-ID <vi983v$f0pe$1@dont-email.me> (permalink)
References <vi4ilq$3fcck$1@dont-email.me> <vi5aq9$3p2em$1@news1.tnib.de>

Show all headers | View raw


On 26/11/2024 20:24, Marc Haber wrote:
> Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
>> Hi all. I'm trying to get to grips with iptables, but I'm flummoxed by this:
>>
>> iptables> sudo iptables --table nat -D PREROUTING -p tcp --source
>> \!192.168.0.0/24 --dport ssh -j REDIRECT --to-port 20022
>> iptables v1.8.7 (nf_tables): host/network `!192.168.0.0' not found
>> Try `iptables -h' or 'iptables --help' for more information.
>>
>>
>> So what is the syntax to make a rule match sources other than the given
>> please?
> 
> I haven't used iptables directly in ages. Did you try putting
> whitespace between the ! and the network?
> 
> Greetings
> Marc


Thanks for the reply.

I found the man page I looked at  was wrong. The syntax is /not/
  -s ! <address>, rather ! -s <address>.



-- 
Mike Scott
Harlow, England

Back to comp.os.linux.networking | Previous | NextPrevious in thread | Find similar


Thread

iptables syntax issue Mike Scott <usenet.16@scottsonline.org.uk.invalid> - 2024-11-26 13:32 +0000
  (resolved) Re: iptables syntax issue Mike Scott <usenet.16@scottsonline.org.uk.invalid> - 2024-11-26 13:44 +0000
    Re: (resolved) Re: iptables syntax issue candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> - 2024-11-30 06:20 +0000
      Re: (resolved) Re: iptables syntax issue Mike Scott <usenet.16@scottsonline.org.uk.invalid> - 2024-12-03 19:19 +0000
        Re: (resolved) Re: iptables syntax issue Mike Scott <usenet.16@scottsonline.org.uk.invalid> - 2024-12-09 11:50 +0000
          Re: (resolved) Re: iptables syntax issue George Neuner <gneuner2@comcast.net> - 2024-12-09 20:24 -0500
  Re: iptables syntax issue Marc Haber <mh+usenetspam1118@zugschl.us> - 2024-11-26 21:24 +0100
    resolved: Re: iptables syntax issue Mike Scott <usenet.16@scottsonline.org.uk.invalid> - 2024-11-28 08:03 +0000

csiph-web