I have a simple problem. Without going into too much details, someone in the shared network is constantly accessing the ASUS router portal and blocking my network access to my laptop. This is done using the ASUS router GUI and it shows with a blocked internet access icon next to my laptop's ip address.
This is annoying me greatly. I can't change the ASUS portal login credentials because of others sharing the network too.
Of course I can just go back to the portal and unblock myself, but the person will eventually block my internet access again.
Enabling SSH, I noticed that when I compare the iptables list between one where my laptop's ip address is blocked and one where it's not, the only difference is in the Chain FORWARD list like so:
Chain FORWARD (policy ACCEPT)
target prot opt source destination
DROP all -- anywhere anywhere MAC AE:E0:0E:EE:C0:89
Where the mac address there is the mac address of my laptop.
The first thing I tried was
iptables -I FORWARD -m mac --mac-source AE:E0:0E:EE:C0:89 -j ACCEPT
which solves the problem because the priority of this ACCEPT command is on the top of the list so the DROP packet command is not executed, however he actually unblocks and reblocks my IP which causes the DROP packet command to go above my ACCEPT line.
I also tried
iptables -D FORWARD -m mac --mac-source AE:E0:0E:EE:C0:89 -j DROP
in an attempt to delete the line for dropping packets from/to my laptop but the error
iptables: Bad rule (does a matching rule exist in that chain?).
appears.
I want to run a script that can automatically unblock my laptop ip address (or rather mac address). Is there any way I can delete the DROP command sent from the GUI using iptables command?