Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The answer will be little more than just a set of two commands:
* allow all established (established) and related (related) connections
* allow connection via ssh (you don't want to lose connection with the server)
* allow connection from the source address you need
* install default policy DROP
is now in the form of commands:
iptables --append INPUT --match state --state ESTABLISHED,RELATED --jump ACCEPT
iptables --append INPUT --protocol tcp --dport 22 --jump ACCEPT
iptables --append INPUT --source WWW.ZZZ.YYY.XXX --jump ACCEPT
iptables --policy INPUT DROP
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question