Hi,
I have read some forum theads about the open and close ports. some points are clear and it is not working on my machine or something am i missing?
I have commented out a port /etc/services, one application uses
then when i use the telnet <hostname[localhost]> <port_blocked> it shows connected..
ideally it should not come right?
Or Am i missing anything here?
Thanks,
Bala
---------- Post updated at 06:23 PM ---------- Previous update was at 05:51 PM ----------
This is the steps I followed
- I stopped the service which is running on 3500 port
- checked the netstat -an | grep 3500 ==> no outputs
- checked the port in /etc/services, it is commented out
- ran this command
su root -c "/etc/init.d/xinetd restart"
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
- telnet mypc.com 3500
Trying 10.177.58.254...
telnet: connect to address 10.177.58.254: Connection refused
telnet: Unable to connect to remote host: Connection refused
This looks good, as expected i believe
-
Now I started the service on the port 3500
-
Service started successfully ?? How, it should not right?
-
Issue the telnet
telnet mypc.com 3500
Trying 10.177.58.254...
Connected to mypc.com (10.177.58.254).
Escape character is '^]'.
Now it is connected...
Am i somewhere wrong here?
I want to close the port.. but it is not working.
Pl assist me here.