Open ports from source to destination


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Open ports from source to destination
# 1  
Open ports from source to destination

Is there a way to find out all the ports open between source IP & destination IP in any way ?
# 2  
If you have access to switches in LAN network or access to both hosts to examine configuration and traffic, yes.
Otherwise, you will not get advice here about 'hacking' tools or their usage, if question is related to remote stuff

Hope that helps
Regards
Peasant.
# 3  
Oh no, I am happy with my job, not into hacking. I have access to both hosts, need some command like netstat which will let me know the ports open from source to destination. I need to forward some application logs from source to destination.
# 4  
I use basic port scan tools; as all sys admins should do port scans from time-to-time to check open ports (basic IT security).

From a quick Goggle search:

Code:
8 Port Scanner Tools for Network Administrator
1 TCP Port Scanner.
2 Nmap.
3 Netcat.
4 Port Authority.
5 Advanced Port Scanner.
6 Network Scanner by MiTeC.
7 PortQryUI.
8 NetScanTools.

These 2 Users Gave Thanks to Neo For This Post:
# 5  
Hi
Maybe this will help?
Code:
ss -t -o state established

--- Post updated at 16:07 ---

Code:
ss -t -o state connected
ss -t -o state synchronized

These 3 Users Gave Thanks to nezabudka For This Post:
# 6  
I not sure that ss is the tool the OP is looking for.

ss is similar to netstat, giving information on the state of sockets.

However, when the OP asks:

Quote:
Is there a way to find out all the ports open between source IP & destination IP in any way ?
It's not clear to me the OP is looking for netstat-like information, which can be read from a host which we have access to ss and netstat (or even lsof) , but external to the hosts.

Let's see what the OP really wants Smilie
This User Gave Thanks to Neo For This Post:
# 7  
Check firewall-cmd or iptables -L (depending on linux release and type) rules for specific rules, containing IP addresses in questions.
This should help, if linux firewall is used.

If not, other advice given here (ss netstat nmap) should provide reasonable info.

Please, when asking such question in future, please specify your operating system and version.
This will help us help you.

Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #204
Difficulty: Easy
The BGP routing protocol runs over User Datagram Protocol (UDP).
True or False?

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Count the number of files copied from source to destination location

Hi Guys, how to count number of files successfully copied while coping files from source to destination path ex:10 files from source to target location copying if 8 files copied successfully then echo successfully copied=8 failure=2 files if two files get error to coping files from... (23 Replies)
Discussion started by: sravanreddy
23 Replies

2. UNIX for Advanced & Expert Users

Rsync error while running from destination to source

hi All, i have 2 server setup now for Rsync, i configured Rsync on both of the server and it worked well when i did run from source to destination. and while running back from destination to source it produced this error: bash-3.2$ ksh rsync_bravo_db.ksh usa0300uz1247.apps.mc.xerox.com... (0 Replies)
Discussion started by: lovelysethii
0 Replies

3. Solaris

Ftp: SSL_connect error while connecting from source to destination server Solaris 10

Hi Everyone, I am using solaris 10.I am facing a different problem here with tlsftp.I have intalled all steps for tlsftp and able to connect to the destination server from the source server.It worked for some days.But recently when i am connectin it is giving below error.I am... (0 Replies)
Discussion started by: muraliinfy04
0 Replies

4. Linux

rpmbuild, how to specify a different source and destination path for files

I'd like to specify a different build and deployment path for files, by default the same path is used for both build and install, I wasn't able to find a way to make these different. With Solaris pkgadd, one can specify different paths in prototype, so I would assume something like that is possible... (0 Replies)
Discussion started by: tiburblium
0 Replies

5. Shell Programming and Scripting

Move all files from source to destination directory based on the filename

Move all files starting with a specific name to different directory. This shell script program should have three parameters File Name Source Directory Destination Directory User should be able to enter ‘AB_CD*’ in file name parameter. In this case all the files starting with AB_CD will... (1 Reply)
Discussion started by: chetancrsp18
1 Replies

6. IP Networking

Selecting interface based on source and destination ip address

Hi all, I have some doubts in selecting the interface to transfer packets and receive the packets. --> Multiple interfaces : -------------------- 1) 0.0.0.0 --------> wild card address. 2) x.x.x.x --------> valid address.(192.168.1.156) 3) ff.ff.ff.ff -------->... (0 Replies)
Discussion started by: vijaypdp2006
0 Replies

7. Shell Programming and Scripting

Count total unique destination for source

Hi, need help how to count unique destination for the source ip. The file is contains 4 number of fields. Example of the file is here src ip dest ip #of flows total bytes 192.168.6.0 88.0.33.2 12 128 192.168.6.0 88.0.33.2 1 168 192.168.6.0 ... (5 Replies)
Discussion started by: new_buddy
5 Replies

8. UNIX for Advanced & Expert Users

Byte Rate to/from a source/destination

is there a command in unix/linux that allows you to sample what the historic byte rate is from a local IP to a client IP. (1 Reply)
Discussion started by: cubs0729
1 Replies

Featured Tech Videos