Groups | Search | Server Info | Login | Register


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

Re: (resolved) Re: iptables syntax issue

From candycanearter07 <candycanearter07@candycanearter07.nomail.afraid>
Newsgroups comp.os.linux.networking
Subject Re: (resolved) Re: iptables syntax issue
Date 2024-11-30 06:20 +0000
Organization the-candyden-of-code
Message-ID <slrnvkkvlg.9kce.candycanearter07@candydeb.host.invalid> (permalink)
References <vi4ilq$3fcck$1@dont-email.me> <vi4jcq$3fh6i$1@dont-email.me>

Show all headers | View raw


Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote at 13:44 this Tuesday (GMT):
> On 26/11/2024 13:32, Mike Scott 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?
>> 
>> 
>> Thanks.
>> 
>
> Grrr. The online man page (https://linux.die.net/man/8/iptables) I was 
> looking at is wrong. It should be ! -s <address> not -s !<address>
>
> Not good.


Try emailing the webmaster?
-- 
user <candycane> is generated from /dev/urandom

Back to comp.os.linux.networking | Previous | NextPrevious in thread | Next 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