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.
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?
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
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?
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.
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.
Sysop: | Luis Silva |
---|---|
Location: | Lisbon |
Users: | 763 |
Nodes: | 10 (0 / 10) |
Uptime: | 179:30:22 |
Calls: | 111 |
Files: | 46,971 |
Messages: | 11,214 |