
01-14-2011, 11:54 PM
|
|
WHT Addict
|
|
Join Date: Jul 2010
Location: South Floooor-eduh
Posts: 126
|
|
All ports blocked but one... SSH (22)
Greets,
Let me know if this is in the wrong section  .
So, I'm running into a little issue here. My VPS is showing all ports blocked but one (SSH)... checked this through nmap and various online port checking websites. I need a specific port open but have no idea how to go about it.
OS = CentOS 5
I have used multiple commands to open the iptables (disable it altogether) but it's not happening.
Have used:
Code:
iptables -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 443 -j ACCEPT
Code:
service iptables stop
chkconfig iptables off
Is it possible the VPS provider is blocking all the ports (NAT)? I dunno... I'm clueless.
Thanks for your time!
|

01-15-2011, 12:08 AM
|
|
MACBOOKS EVERYWHEREEEEEEEEEEEE
|
|
Join Date: Mar 2009
Posts: 3,805
|
|
Whos your provider? I know Amazon EC2 forces ports closed before it hits your vps (default is ssh only)
__________________
mirACL: firewalls in software.
|

01-15-2011, 12:33 AM
|
|
Web Hosting Master
|
|
Join Date: Sep 2009
Posts: 1,416
|
|
They may have central firewall where your ISP IP address is blocked. Contact them and tell them about this problem.
|

01-15-2011, 01:29 AM
|
|
We need coffee...
|
|
Join Date: Jan 2003
Location: U.S.A.
Posts: 3,906
|
|
That is strange and it appears to be some issue with the hostnode.
__________________
PogiWeb LLC | sales@pogiweb.com | 1-704-464-8238
PogiWeb.com - The best VPS prices around with Instant Setups and Reseller Program!
Simply the best Shared, Reseller, Virtual Private Server and Dedicated Server Hosting Provider around!
Join us on Facebook!
|

01-15-2011, 01:30 AM
|
|
Disabled
|
|
Join Date: Sep 2010
Posts: 627
|
|
|

01-15-2011, 02:36 AM
|
|
WHT Addict
|
|
Join Date: Jul 2010
Location: South Floooor-eduh
Posts: 126
|
|
Quote:
Originally Posted by quantumphysics
Whos your provider? I know Amazon EC2 forces ports closed before it hits your vps (default is ssh only)
|
Hostrail
Quote:
Originally Posted by LVPSHosting
They may have central firewall where your ISP IP address is blocked. Contact them and tell them about this problem.
|
Yeah I sent them a ticket before I wrote this thread. No reply just yet.
Quote:
Originally Posted by PogiWeb
That is strange and it appears to be some issue with the hostnode.
|
Yeah, possibly. I was pretty shocked to see all the ports closed.
Quote:
Originally Posted by misspink
try iptables -F
|
Just did. Doesn't return any feedback. Ports still not open (none opened).
Thanks for your time!
|

01-15-2011, 02:38 AM
|
|
Disabled
|
|
Join Date: Sep 2010
Posts: 627
|
|
I'm pretty sure that the port scanner websites only show ports in use, for example, this is my webserver:
178.239.52.32 is responding on port 21 (ftp).
178.239.52.32 isn't responding on port 23 (telnet).
178.239.52.32 isn't responding on port 25 (smtp).
178.239.52.32 is responding on port 80 (http).
178.239.52.32 isn't responding on port 110 (pop3).
178.239.52.32 isn't responding on port 139 (netbios-ssn).
178.239.52.32 isn't responding on port 445 (microsoft-ds).
178.239.52.32 isn't responding on port 1433 (ms-sql-s).
178.239.52.32 isn't responding on port 1521 (ncube-lm).
178.239.52.32 isn't responding on port 1723 (pptp).
178.239.52.32 is responding on port 3306 (mysql).
178.239.52.32 isn't responding on port 3389 (ms-wbt-server).
178.239.52.32 isn't responding on port 5900 ().
178.239.52.32 isn't responding on port 8080 (webcache).
However, I'm not blocking any ports.
|

01-15-2011, 03:20 AM
|
|
WHT Addict
|
|
Join Date: Jul 2010
Location: South Floooor-eduh
Posts: 126
|
|
Quote:
Originally Posted by misspink
I'm pretty sure that the port scanner websites only show ports in use, for example, this is my webserver:
178.239.52.32 is responding on port 21 (ftp).
178.239.52.32 isn't responding on port 23 (telnet).
178.239.52.32 isn't responding on port 25 (smtp).
178.239.52.32 is responding on port 80 (http).
178.239.52.32 isn't responding on port 110 (pop3).
178.239.52.32 isn't responding on port 139 (netbios-ssn).
178.239.52.32 isn't responding on port 445 (microsoft-ds).
178.239.52.32 isn't responding on port 1433 (ms-sql-s).
178.239.52.32 isn't responding on port 1521 (ncube-lm).
178.239.52.32 isn't responding on port 1723 (pptp).
178.239.52.32 is responding on port 3306 (mysql).
178.239.52.32 isn't responding on port 3389 (ms-wbt-server).
178.239.52.32 isn't responding on port 5900 ().
178.239.52.32 isn't responding on port 8080 (webcache).
However, I'm not blocking any ports.
|
http://www.yougetsignal.com/tools/open-ports/
^^ one of the websites I used.
And I nmap'd from another linux box here at home. Nothing is open (22 and 3 other ports listening). When I was running Ubuntu w/Gnome on the same VPS, I was able to use VNC but now the VNC port is closed no matter what I do.
I'm fairly confused.
|

01-15-2011, 08:04 AM
|
|
Web Hosting Master
|
|
Join Date: Mar 2005
Location: Labrador, Canada
Posts: 873
|
|
All ports are "closed" by default. If you want to (for example) serve web traffic on port 80, then you must run an HTTP daemon listening on port 80. Then port 80 is "open".
You can see which daemons are running and listening on ports with this command:
netstat -lt
__________________
sleddog
|

01-15-2011, 08:13 AM
|
|
WHT Addict
|
|
Join Date: Jul 2010
Location: South Floooor-eduh
Posts: 126
|
|
Quote:
Originally Posted by sleddog
All ports are "closed" by default. If you want to (for example) serve web traffic on port 80, then you must run an HTTP daemon listening on port 80. Then port 80 is "open".
You can see which daemons are running and listening on ports with this command:
netstat -lt
|
Did that -- only SSH shows.
Can you by chance write down the commands to do this? I'd greatly appreciate it.
I have a game server running right now and it's not showing up on that list.
Thanks
Last edited by gigist; 01-15-2011 at 08:17 AM.
|

01-15-2011, 08:16 AM
|
|
Web Hosting Master
|
|
Join Date: Apr 2007
Posts: 3,486
|
|
If it only shows SSH then you need to install the services you want...
They aren't close, there is just nothing bound to them. What services are you trying to setup?
|

01-15-2011, 08:29 AM
|
|
WHT Addict
|
|
Join Date: Jul 2010
Location: South Floooor-eduh
Posts: 126
|
|
It's a game server and it's running right now. I can connect to it if I input the IP:port manually but it won't be listed publicly until the port opens.
Which doesn't make sense to me because if I can connect to it... it can't be blocked? Tried to input the port forward in HyperVM but it says the connection was refused.
|

01-15-2011, 08:50 AM
|
|
Web Hosting Master
|
|
Join Date: Mar 2005
Location: Labrador, Canada
Posts: 873
|
|
Provide the complete output from these commands, then someone may be able to help you...
netstat -lt
ps aux
__________________
sleddog
|

01-15-2011, 10:21 AM
|
|
WHT Addict
|
|
Join Date: Jan 2006
Location: Charlotte,NC
Posts: 138
|
|
Have you tried using the built-in tool for managing the firewall. Your iptables may be mangled...no pun intended
system-config-securitylevel-tui
|

01-16-2011, 04:17 AM
|
|
WHT Addict
|
|
Join Date: Jul 2010
Location: South Floooor-eduh
Posts: 126
|
|
Just wanted to update this really quick. Everything is good now... flushing the firewall rules works now (didn't before). No clue, lol. Thanks for the replies/help.
Cheers
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|