English
Ask Your Question
0

how to create whitelist firewall for SSH connections using firewalld

asked 2017-02-24 21:06:16 +0000

fedoreo gravatar image

The first thing that happens to any new linux server brought online is a deluge of ssh dictionary attacks. The first firewall I usually put in place is an iptables firewall which drops port 22 and then whitelists our admin IPs. I can't find a way to do this with firewalld. I have found ways to create a whitelist for ALL connections, which I do not want to do. I only want to restrict port 22 connections.

Just when I was getting comfortable with iptables, it is being replaced with firewalld.

Please advise.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-25 23:39:45 +0000

You need to use Firewalld rich language to accomplish what you want with it. Look at https://fedoraproject.org/wiki/Featur...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2017-02-24 21:06:16 +0000

Seen: 247 times

Last updated: Feb 24