Answer the question
In order to leave comments, you need to log in
Why does the host stop responding when I turn off iptables over ssh?
When I am connected to the server via shh, I do iptables -F, the host throws me out of the way, the kicks do not go. I went to the server room and connected the monitor, I look at the screen it says "pres eni kay", I press it, everything worked. Made a script
#!/bin/sh
iptables -F
iptables -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
. Answer the question
In order to leave comments, you need to log in
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -X
iptables -F
Because iptables needs to be applied via iptables-save > file/ cat file | iptables-restore, not the hell.
And so yes - the script stops its work after iptables -F, the default policy of your current REJECT, apparently. -F policy does not change.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question