From Newsgroup: comp.os.linux.networking
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
--- Synchronet 3.20a-Linux NewsLink 1.114