Groups | Search | Server Info | Login | Register
Groups > comp.os.linux.networking > #8518
| From | Marc Haber <mh+usenetspam1118@zugschl.us> |
|---|---|
| Newsgroups | comp.os.linux.networking |
| Subject | Re: iptables syntax issue |
| Date | 2024-11-26 21:24 +0100 |
| Organization | private site, see http://www.zugschlus.de/ for details |
| Message-ID | <vi5aq9$3p2em$1@news1.tnib.de> (permalink) |
| References | <vi4ilq$3fcck$1@dont-email.me> |
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
Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar
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