What's new

How to restore chains OUTPUT and PREROUTING to default values?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Mircica

Regular Contributor
Old router RT-AC66U

Operation Mode:Wireless router
Firmware:374.43_45EAj9527
SSID: (2.4GHz)Linksys(5GHz)Linksys 5GHz
(Merlin LTS fork)

After:

# Delete old YAMalwareBlock rules.
logger -t Firewall "Delete old YAMalwareBlock rules."
echo Delete old YAMalwareBlock rules.
iptables -t raw -L --line-numbers | grep YAMalwareBlock | cut -d' ' -f1 | sed '1!G;h;$!d' | while read number; do iptables -t raw -D PREROUTING $number; done
ipset -L | grep YAMalwareBlock | cut -d' ' -f2 | while read setname; do ipset --destroy $setname; done

I want to reset/flush those 2 Chains to default!
Tried all I found in this forum but didn't work...

reboot after was properly done, twice!
 
Do you want to uninstall that script? Usually the raw chains are empty.
 
No, I just changed the blocking list:
"ya-malware-block.urls"
but still some IP addresses from the old one remained blocked even if they are not in the new list right now!
Quite curious how to get rid of all of this!
So I thought I escaped when uninstalled and reinstalled!
But this is not the case apparently so what can I do?
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top