Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #8516 > unrolled thread

iptables syntax issue

Started byMike Scott <usenet.16@scottsonline.org.uk.invalid>
First post2024-11-26 13:32 +0000
Last post2024-11-28 08:03 +0000
Articles 8 — 4 participants

Back to article view | Back to comp.os.linux.networking


Contents

  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

#8516 — iptables syntax issue

FromMike Scott <usenet.16@scottsonline.org.uk.invalid>
Date2024-11-26 13:32 +0000
Subjectiptables syntax issue
Message-ID<vi4ilq$3fcck$1@dont-email.me>
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.

-- 
Mike Scott
Harlow, England

[toc] | [next] | [standalone]


#8517 — (resolved) Re: iptables syntax issue

FromMike Scott <usenet.16@scottsonline.org.uk.invalid>
Date2024-11-26 13:44 +0000
Subject(resolved) Re: iptables syntax issue
Message-ID<vi4jcq$3fh6i$1@dont-email.me>
In reply to#8516
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.

-- 
Mike Scott
Harlow, England

[toc] | [prev] | [next] | [standalone]


#8520 — Re: (resolved) Re: iptables syntax issue

Fromcandycanearter07 <candycanearter07@candycanearter07.nomail.afraid>
Date2024-11-30 06:20 +0000
SubjectRe: (resolved) Re: iptables syntax issue
Message-ID<slrnvkkvlg.9kce.candycanearter07@candydeb.host.invalid>
In reply to#8517
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

[toc] | [prev] | [next] | [standalone]


#8521 — Re: (resolved) Re: iptables syntax issue

FromMike Scott <usenet.16@scottsonline.org.uk.invalid>
Date2024-12-03 19:19 +0000
SubjectRe: (resolved) Re: iptables syntax issue
Message-ID<vinlkf$96ek$1@dont-email.me>
In reply to#8520
On 30/11/2024 06:20, candycanearter07 wrote:
> 
> Try emailing the webmaster?


Done, but as they don't give contact info on their pages I assume 
they're not welcoming input.


-- 
Mike Scott
Harlow, England

[toc] | [prev] | [next] | [standalone]


#8524 — Re: (resolved) Re: iptables syntax issue

FromMike Scott <usenet.16@scottsonline.org.uk.invalid>
Date2024-12-09 11:50 +0000
SubjectRe: (resolved) Re: iptables syntax issue
Message-ID<vj6lhb$d0sg$1@dont-email.me>
In reply to#8521
On 03/12/2024 19:19, Mike Scott wrote:
> On 30/11/2024 06:20, candycanearter07 wrote:
>>
>> Try emailing the webmaster?
> 
> 
> Done, but as they don't give contact info on their pages I assume 
> they're not welcoming input.
> 
> 

And the email to webmaster@... has just bounced (Operation timed out). 
They really don't seem to want people to talk to them.

-- 
Mike Scott
Harlow, England

[toc] | [prev] | [next] | [standalone]


#8525 — Re: (resolved) Re: iptables syntax issue

FromGeorge Neuner <gneuner2@comcast.net>
Date2024-12-09 20:24 -0500
SubjectRe: (resolved) Re: iptables syntax issue
Message-ID<an5fljpeobt6d8du1likbe3od7k47v7lo3@4ax.com>
In reply to#8524
On Mon, 9 Dec 2024 11:50:03 +0000, Mike Scott
<usenet.16@scottsonline.org.uk.invalid> wrote:

>On 03/12/2024 19:19, Mike Scott wrote:
>> On 30/11/2024 06:20, candycanearter07 wrote:
>>>
>>> Try emailing the webmaster?
>> 
>> 
>> Done, but as they don't give contact info on their pages I assume 
>> they're not welcoming input.
>> 
>> 
>
>And the email to webmaster@... has just bounced (Operation timed out). 
>They really don't seem to want people to talk to them.

The maintainer's address is  web at die dot net 
It's right on the main page.

[toc] | [prev] | [next] | [standalone]


#8518

FromMarc Haber <mh+usenetspam1118@zugschl.us>
Date2024-11-26 21:24 +0100
Message-ID<vi5aq9$3p2em$1@news1.tnib.de>
In reply to#8516
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
-- 
----------------------------------------------------------------------------
Marc Haber         |   " Questions are the         | Mailadresse im Header
Rhein-Neckar, DE   |     Beginning of Wisdom "     | 
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 6224 1600402

[toc] | [prev] | [next] | [standalone]


#8519 — resolved: Re: iptables syntax issue

FromMike Scott <usenet.16@scottsonline.org.uk.invalid>
Date2024-11-28 08:03 +0000
Subjectresolved: Re: iptables syntax issue
Message-ID<vi983v$f0pe$1@dont-email.me>
In reply to#8518
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.networking


csiph-web