Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Am looking for a command to check the incoming connectivity on the port 22 and 10022 for a server.
Am able to connect from serverA to serverB on these ports, but is there a way to find out that these ports are allowing incoming connections with any commands(from serverB only), except the iptables?
What service are you expecting to connect to on each port? You can try connecting with netcat and you can sniff the connection with tcpdump if the two servers are on the same network.
This is a very useful link . But the details in it is not helping me for my requirement .
I can re-describe the requirement here now.
port 22 and 10022 are opened in serverB , so that a user from serverA can reach serverB on these ports . It is a Oneway connection , Reverse connections are not allowed.
Since am sitting in server B , I just want to check the incoming connections are allowed on ServerB from the serverA on the ports 22 and 10022.
This is a very useful link . But the details in it is not helping me for my requirement .
I can re-describe the requirement here now.
port 22 and 10022 are opened in serverB , so that a user from serverA can reach serverB on these ports . It is a Oneway connection , Reverse connections are not allowed.
Since am sitting in server B , I just want to check the incoming connections are allowed on ServerB from the serverA on the ports 22 and 10022.
You can check if ServerB ports are open using
Code:
telnet localhost <port>
But you'd be hard pressed to check if ServerA can connect to ServerB's open ports from ServerB.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.