LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-19-2017, 07:54 PM   #1
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 26; HP Pavilion 8Gb and Acer Aspire 16Gb; both Intel Core-i7
Posts: 266

Rep: Reputation: 22
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.

Kind regards,
Doug
 
Old 03-19-2017, 07:56 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,546

Rep: Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558Reputation: 1558
A port will not show as open unless there is some process listening on that port.
 
Old 03-20-2017, 12:07 AM   #3
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 26; HP Pavilion 8Gb and Acer Aspire 16Gb; both Intel Core-i7
Posts: 266

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by rknichols View Post
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
 
Old 03-24-2017, 06:15 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,406

Rep: Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396Reputation: 2396
As rknichols hints, there are 4 options:

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

You may want to install & use nmap tool
 
Old 03-25-2017, 12:33 AM   #5
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 26; HP Pavilion 8Gb and Acer Aspire 16Gb; both Intel Core-i7
Posts: 266

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by chrism01 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Protecting open ports on firewall RecoilUK Linux - Security 3 06-08-2005 11:29 PM
Open ports behind a firewall? ni0wn Slackware 4 09-16-2004 07:48 AM
PLEASE !!! Can't open ports with rc.firewall peryserv Linux - Networking 2 08-26-2004 07:43 PM
Help with RedHat firewall open ports Linux6574 Red Hat 2 04-24-2004 08:20 AM
Open ports on firewall LionMaster Linux - Security 3 04-13-2003 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration