How to return ip that was rejected by mistake in iptable

Asked 1 years ago, Updated 1 years ago, 99 views

iptables-I INPUT-s Wrong ip-j DROP

What should I do to get this back?
Also, please tell me how to check it.

iptables

2022-09-30 20:35

2 Answers

Simply change to the -D option (if you do not mind entering the latter part) to delete the entry.

 iptables-DINPUT-s Wrong ip-j DROP

Alternatively, you can list (-L) with the --line-numbers option and delete the entry by line numbering.

iptables-LINPUT --line-number
iptables-DINPUT<Number>

Your answers are also helpful.


2022-09-30 20:35

I happened to find it, but I think the following site will be helpful.

http://tejunsho.com/os/20110331000108.html


2022-09-30 20:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.