This paper will analyze the possibility to create firewalls with AI algorithms to implement prediction methods for setting firewall rules of data traffic acceptance. Using ID3 decision tree algorithm, created by J. Ross Quinlan will be demonstrating a possible prediction possibility to implement automat decision for firewall questions. The paper will use a simple example, calculating a simple decision tree based on ID3 algorithm.