0

If I make a simple rule (left image) like this:

enter image description here

It adds two entries in rule (right image) and after restarting ufw service, I can connect to it BUT if I make an advanced rule like this (left):

enter image description here

It adds only one entry in rule (right) and after restarting ufw service, I can't access the linux system!

How to make such a rule?

  • The two entries in your first picture are the same rule (allow connections to port 22 from anywhere) for IPv4 and IPv6, this is possibly configurable with the "Protocol" option that you have set to "both". Your second picture shows a rule that only allows connections from 192.168.0.100 port 22 to connect to port 22 on 192.168.0.100, which I do not think is what you wanted to do. – GracefulRestart Aug 5 '19 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.