How to Accept SMTP Requests for Subnet Only
how do I allow ip addresses for subnet 192.165.x.x to access my server via SMTP but any other subnet outside of that group is rejected?
I tried the following syntax:
iptables -I INPUT 1 -s 126.96.36.199/16 -d 188.8.131.52 -p tcp --dport 25 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
iptables -A INPUT -d 192.168.17.3 -j REJECT
Will this work?
Last edited by nytcrwlr70; 07-02-2007 at 04:55 PM.