Reverse the rules and make your regex more strict:
RewriteCond %{REMOTE_ADDR} ^111\.222\.
RewriteCond %{HTTP_HOST} ^test\.com$
RewriteRule !^hello /hello [R=301,L]
RewriteCond %{REMOTE_ADDR} !^111\.222
RewriteCond %{HTTP_HOST} ^test\.com$
RewriteRule !^goodbye /goodbye [R=301,L]