I am working on an experiment. When I (client) ssh into a gateway and run sudo iptables --policy INPUT DROP
then the gateway doesn't accept any communucation (or input) from my client.
By running sudo iptables --policy INPUT ACCEPT
on the gateway, then the client is able to write again.
My question is: How can I restore the situation from the client?