• (resolved) Re: iptables syntax issue

    From Mike Scott@21:1/5 to Mike Scott on Tue Nov 26 13:44:58 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From candycanearter07@21:1/5 to Mike Scott on Sat Nov 30 06:20:07 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Scott@21:1/5 to All on Tue Dec 3 19:19:43 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mike Scott@21:1/5 to Mike Scott on Mon Dec 9 11:50:03 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George Neuner@21:1/5 to usenet.16@scottsonline.org.uk.inval on Mon Dec 9 20:24:54 2024
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)