LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2019, 03:22 AM   #1
uzairali001
LQ Newbie
 
Registered: Jan 2019
Posts: 2

Rep: Reputation: Disabled
Question Custom ssh port not accessible from internet


I have change my shh port to 3579 add the rules in firewall with this command
Code:
semanage port -a -t ssh_port_t -p tcp 3579
and this
Code:
firewall-cmd --permanent --zone=public --add-port=3579/tcp
after adding those two command it was working fine but after I install PLESK it no longer works now nmap show filtered.

Netstat
https://drive.google.com/open?id=1st...qm8nHK0LukjxT2

Nmap from remote location
https://drive.google.com/open?id=1kt...pRtpqvB2rLZ1wd

PS. ssh on localhost over 3579 is working
Code:
ssh localhost -p 3579
 
Old 01-03-2019, 04:16 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
What is the firewall’s status right now?
Code:
firewall-cmd --get-active-zones
firewall-cmd --zone=public --list-ports
 
Old 01-03-2019, 06:02 AM   #3
uzairali001
LQ Newbie
 
Registered: Jan 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Code:
firewall-cmd --get-active-zones
shows plesk and
Code:
firewall-cmd --zone=public --list-ports
shows 3579/tcp

The active zone is different right so I added rule in currently active zone
Code:
firewall-cmd --permanent --zone=plesk --add-port=3579/tcp
which solves the issue.

Thank. I'm new to linux environment so still learning
 
  


Reply

Tags
firewall, port blocking, ssh access



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
[SOLVED] IPtables : ssh port forwarding one port to another port issue routers Linux - Networking 7 08-07-2018 08:41 AM
Way to hide keys in .ssh from login user but still accessible via ssh. MikeyCarter Linux - Software 4 03-29-2018 10:44 AM
Port not accessible from remote machine harshildesai Linux - Server 1 07-17-2009 09:56 AM
svnserve listening, but port not accessible from remote. menphix Linux - Server 4 07-17-2009 09:37 AM
NTFS (winxp) drive is accessible only by root, why NTFS (winxp) drive not accessible Samppa72 Linux - Software 1 07-26-2004 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

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
Open Source Consulting | Domain Registration