Use ipchains to close the ports, if you want the rules to be persistent on reboot, append them to the end of /etc/rc.d/rc.local
To deny ICMP:
/sbin/ipchains -A input -p icmp --icmp-type echo-request -d -i [extern interface] -j DENY
To deny TELNET:
I would recommend you set it to Private from the E-smith manager. Then add:
/sbin/ipchains -A input -p tcp --dport 23 -d /32 -j DENY