Link to home
Start Free TrialLog in
Avatar of vmwarecv1
vmwarecv1

asked on

How to verify if port 80 and port 443 open on linux server

Hi Experts,
I would like to verify if port 80 and port 443 open on my Linux server; OS SLES 10
Will there be any vulnerabilities if ports 80 and 443 are opened and allowed to talk to extrenal trusted vendor server over these ports.
Linux server is in the internal network of datacenter(Not DMZ).
Please suggest.
Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of linuxgfx
linuxgfx
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
About the vulnerabilities that depend on your configuration.
It is good to always use the latest version of Apache in this case and to ensure that your firewall/router does not allow other connections that the expected.
once you have finished the setup, check this web page in order to view if your server is reachable from outside and on witch ports:

http://www.canyouseeme.org/
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vmwarecv1
vmwarecv1

ASKER

The server is in the internal network and not in DMZ;
I logon to windows server, IE, google.com opened. Does that mean port 80 and 443 opened on windows server. How to verify if the windows is talking on which port.
I want to see if my internal network allows me to send packets to external network and communicate via port 80 and port 443.
Right, so you are saying you use the server as a firewall.

Then you need to check to following:

Is the linux box used as a proxy or not:
If proxy:
    Is windows/IE configured to use a proxy and which one.
    if the linux box is the proxy then
       if you can access the internet it works.
If no proxy:
    What is the default gateway:   (route print)
    is the Linux box the default gateway?
    If no: then the linux box is probably not used
    If yes: then if you can access a website behind it works.

You can also use:

iptables -L -nv
iptables -t nat -L -nv

and check if the forwarding rules allow port 443 and 80.
and block everything else??, or not.
I am not planning to use my linux server as proxy.
I am trying to find, if the server is allowed to send and receive packets on port 80 and port 443.
try the website i have wrote on my latest post.
I tried the website, but its showing same IP address, even though I am oprning it from different servers.
First part is false....

So this left:
If no proxy:
    What is the default gateway:   (route print) on the system where you sit.
    is the Linux box the default gateway?
    If no:
       then the linux box is probably not used
    If yes:
       then if you can access a website behind it works.

You can also use:

iptables -L -nv
iptables -t nat -L -nv

On the linux server

and check if the forwarding rules allow port 443 and 80.
and block everything else?? (or what is needed).
Also if there are specific rules for port 80 and/or 443 you can see it is hit because the counters increment if you use the browser.