kuanglee
asked on
How to configure the iptables
I have RH 9 machine with one NIC. I want to block all port other than 25,53 and 110 (mail and DNS) how can I do that? Can I just type the code below in terminal?
#iptables -P INPUT DROP
#iptables -P OUTPUT DROP
#iptables -P FORWARD DROP
#iptables -A INPUT -p tcp -m multiport --destination-port 25,53,110 -j ACCEPT
#iptables -A INPUT -p udp -m multiport --destination-port 25,53,110 -j ACCEPT
#iptables -P INPUT DROP
#iptables -P OUTPUT DROP
#iptables -P FORWARD DROP
#iptables -A INPUT -p tcp -m multiport --destination-port 25,53,110 -j ACCEPT
#iptables -A INPUT -p udp -m multiport --destination-port 25,53,110 -j ACCEPT
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what natma sayd ..
thats your answer.. :)
thats your answer.. :)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER