Link to home
Start Free TrialLog in
Avatar of crash1624
crash1624

asked on

Check open ports on firewall

Hello,

I need to check if ports are open in a SonicWall programmatically from a computer within that lan.  I've though about some solutions like telnet and others but I need a consistent way to see if the ports are open and report back using the output from the shell.

Thanks in advance for any assistance.
Avatar of techzter
techzter
Flag of United States of America image

I am not clear on what you are looking to check. Are you trying to see what ports are open for outbound access from the client machines to the internet, or inbound from external locations into your network?

Do you have admin access to the firewall? The easiest way would be to review the firewall rules or contact the admin at your site that has this access.
Avatar of crash1624
crash1624

ASKER

I'm looking to check outbound ports.  I don't want to have to log into the router/firewall to check this.  I want to be able to start a script from a computer on their lan to see if they can get out on specific ports.
SOLUTION
Avatar of techzter
techzter
Flag of United States of America 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
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
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
Sorry I'll try to be more specific.  I have a remote agent that I can run scripts against that are on the lan side of the firewall.  I want to be able to run a script that will attempt to connect to an outside server (that I host) on specific ports to verify that those ports are not blocked by their firewall.  This must be done programmatically as I will be performing this check on dozens of clients periodically.
ASKER CERTIFIED 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
Give nmap.org a try