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.
Distribution: Fedora 36; Homebrew desktop with Ryzen 5600G and 32Gb. Using Red Hat since 1998
Posts: 304
Rep:
Ports not open even without firewall
Fedora 25, Gnome 3, two Core-i7 laptops with 8Gb and 1Tb.
This is probably the result of me not knowing as much as I would like about firewall-config and iptables, so please bear with me.
I have two machines. I want to control the desktop of A from B. Using firewall-config I set port 5900 and vnc-server to be open and available on A, but the port did not open after a reload and even after a reboot.
To test the results, I disabled firewalld.service and iptables.service on B and rebooted, expecting to find all my ports open in the absence of any firewall.
To my surprise, the only open ports are the same ones that were open beforehand.
I can control B from A via vinagre, so the network is not blocking anything.
I thought port opening/closing was controlled by the firewall. Please educate me as to what I have overlooked.
Distribution: Fedora 36; Homebrew desktop with Ryzen 5600G and 32Gb. Using Red Hat since 1998
Posts: 304
Original Poster
Rep:
Quote:
Originally Posted by rknichols
A port will not show as open unless there is some process listening on that port.
Well, there is something I didn't know - thank you very much for the information, which totally explains the problem I am seeing. It does not tell me how to fix it, but it does tell me where to start.
Just proves you are never too old to learn something new. "8-)
Last edited by Doug Hutcheson; 03-20-2017 at 12:49 AM.
Reason: Spelling
1. svc listening & firewall port open = access possible (may still need credentials)
2. svc listening & firewall port not open = no access possible
3. svc not listening & firewall port open = no access possible
4. svc not listening & firewall port not open = no access possible
Distribution: Fedora 36; Homebrew desktop with Ryzen 5600G and 32Gb. Using Red Hat since 1998
Posts: 304
Original Poster
Rep:
Quote:
Originally Posted by chrism01
You may want to install & use nmap tool
Thanks chrism01. I have much to learn about networking and your comment has helped me along the way. "8-)
I have been learning a little about my ports with nmap, but was confused when it didn't show me the ports I had opened - it didn't occur to me nmap was only showing the ports with 'listeners'.
Cheers,
Doug
PS: Has anyone else had problems getting notification emails from the forum? I have set my options to get instant notifications, but have not received one for ages. "8-[
------------------------
Forget it: I just switched my email choice to Daily and back to Immediate, and emails started to come through again. Don't try to explain things like that - you'll upset the Software Gods.
Last edited by Doug Hutcheson; 03-25-2017 at 12:59 AM.
Reason: Emails fixed
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.