security rules fix

terminal detection by IP did not work correct -- fixed.