LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-04-2018, 09:51 AM   #1
myjess
LQ Newbie
 
Registered: Apr 2010
Posts: 11

Rep: Reputation: 0
sshd running as a daemon and as separate process on diff port - iptables.


Hi,
I have sshd running on normal port 22, and then also ran an sshd process as standalone on a completely different port.

iptables is setup.

I was able to ssh into that standalone sshd process from another server on the same subnet. The port should not be open in iptables.

Is this rule the reason why I could do that?
-A MYRH-Firewall -INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

Thanks.
 
Old 06-04-2018, 09:57 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,328
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Quote:
Originally Posted by myjess View Post
iptables is setup.
How was it set up?
Have a look at the INPUT chain, starting at the top.

Code:
sudo iptables-save | less
It may be set up, but obviously in such a ways as to do something other than what you have planned.
 
Old 06-04-2018, 10:12 AM   #3
DevGuy
LQ Newbie
 
Registered: May 2018
Location: London
Distribution: CentOS 7.5
Posts: 25

Rep: Reputation: Disabled
Quote:
Originally Posted by myjess View Post
Is this rule the reason why I could do that?
-A MYRH-Firewall -INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
No.
 
Old 06-14-2018, 08:51 PM   #4
JamesAM
LQ Newbie
 
Registered: May 2018
Posts: 5

Rep: Reputation: Disabled
It would be helpful if you could paste the output from iptables-save. Then we would be able to see what is causing your trouble.
 
  


Reply

Tags
iptables, sshd



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] Running process as daemon and stop it on reboot/shutdown ag33k Slackware 4 02-19-2017 08:41 AM
LXer: Firefox 3.6 is getting plugins running as a separate process LXer Syndicated Linux News 0 04-09-2010 10:50 AM
Checking on which port what process is running ashwini.naidu Linux - Newbie 5 01-05-2009 06:41 AM
displaying popuo message by daemon process running in runlevel 5 using xmessage kalpesh_rathod8 Programming 2 11-22-2004 03:19 AM
How to filter traffic using port+process in IPTables muath Linux - Security 10 03-01-2004 11:20 AM

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

All times are GMT -5. The time now is 08:56 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
Open Source Consulting | Domain Registration