Hello ,
What you can do is to creat 3 rules under the ruleset :
1 st rule : Allow SSH access to permitted IP
2nd Rule : Block SHH access to any other IPs
3 rd rule : permitt everything .
eg:
root# show firewall
filter test {
term 1 {
from {
source-address {
1.2.3.4/32;
}
destination-port 22;
}
then accept;
}
term 2 {
from {
destination-port 22;
}
then {
discard;
}
}
term 3 {
then accept;
}
}