how to use the iptable firewall to restrict ssh,telnet,ftp

For SSH
iptables -A INPUT -s -p tcp --dport <22> -j
REJECT/DROP/DENY

For Telnet
iptables -A INPUT -s -p tcp --dport <23> -j
REJECT/DROP/DENY

For FTP
iptables -A INPUT -s -p tcp --dport <21> -j
REJECT/DROP/DENY

No comments:

Post a Comment

comment on this post

Note: Only a member of this blog may post a comment.