This paper presents an enhanced intrusion detection system (IDS) utilizing feature selection methods and ensemble learning algorithms to improve detection accuracy while reducing computational complexity. The proposed approach involves dividing an input dataset into subsets corresponding to various attacks, applying information gain filtering for feature selection, and using random forest and voting algorithms for classification. Experimental results on the NSL-KDD dataset demonstrate that the method improves system performance with fewer features and indicates that the product probability rule yields the best accuracy.