LinuxQuestions.org
Review your favorite Linux distribution.
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 01-14-2016, 04:06 PM   #1
fan0o
LQ Newbie
 
Registered: Jan 2016
Posts: 1

Rep: Reputation: Disabled
Exclamation Iptables very strange issues


This rule is working:

-A INPUT -p tcp -m tcp --dport 8989 -j ACCEPT

but this is not working:

-A INPUT -s X.X.X.X/32 -p tcp -m tcp --dport 8989 -j ACCEPT


Just adding the source address or let say limiting port 8989 access to one IP X.X.X.X/32, it fails can't i add -s X.X.X.X/32 is the above statement?

What wrong am i doing?
 
Old 01-14-2016, 04:16 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,780

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
Quote:
Originally Posted by fan0o View Post
This rule is working:

-A INPUT -p tcp -m tcp --dport 8989 -j ACCEPT

but this is not working:

-A INPUT -s X.X.X.X/32 -p tcp -m tcp --dport 8989 -j ACCEPT
Are those two alternatives being placed at the same point in the INPUT chain? Iptables chains are evaluated in order, and the first matching rule with a terminating action (ACCEPT, REJECT, DROP) determines its fate.
 
  


Reply



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
Strange logs in my iptables.... L1nuxn00b703 Linux - Newbie 1 03-24-2010 07:31 PM
Strange issue with iptables. Ratclaws Linux - Security 4 10-01-2009 12:45 PM
Strange IPTables or Perhaps its not IPtables problem? helptonewbie Linux - Security 4 01-28-2009 07:54 AM
IPTables strange behavior jocast Linux - Server 2 02-28-2008 09:20 AM
Sound Issues with XMMS/ mpg123 strange (strange noises) thegreatbob Linux - Software 0 06-25-2004 03:18 PM

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

All times are GMT -5. The time now is 07:07 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