Unable to open remote connections

Hello everybody,
This is an unusual problem that I am facing on my Solaris 9 on Sun Blade 150 workstation. I can ping remote machines (outside subnet) but I can't open up a connection/port on those machines.

For example, `ping ftp.xyz.com` gives ftp.xyz.com is alive but if I do a `ftp ftp.xyz.com` or `telnet ftp.xyz.com 21`; it just gives "Trying ftp.xyz.com..." and fails. This holds true for ALL remote machines for all services (ftp, telnet, http). Gateway/routing is not the problem since pinging works. Name resolution in not a problem since `dig` also works. I haven't configured TCP wrappers or ipfilters. So where can be the problem?

Am I missing something?

Interesting part of the problem is that I can successfully telnet or ftp TO this machine (from a remote machine). But here also, there is a problem: Incoming connections (telnet or FTP) get dropped automatically after a minute or so. Although I can reconnect immediately.

Problem Summary: Outgoing connections are blocked and incoming connections work but get get dropped after some time.

Can anybody come up with something helpful at earliest? Thanks in advance.

checked the firewall rules. Try to do iptables -F and give it a try.

Also, check the port using nmap

nmap hostname