I have apache server and one service running behind apache port on 9922. So, I want to allow only one user agent to 9922 port, other all application must be denied by iptables rule. Please someone can send me rules? My current configuration as “-A INPUT -p tcp -m tcp –dport 9922 -m string –string “curl” –algo bm –to 65535 -j ACCEPT” but on this configure all app access to 9922. Which additional rules denied all user agent(only curl must access)?
i expect the best solution