LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-11-2016, 12:16 PM   #16
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164

Ok, what I've learned from this is that loopback rules at the top.

You also said ESTABLISHED,RELATED also at the top, following the loopback. Does that go for any port/protocol?

The OUTPUT lines didn't copy over...so my mistake.

I'm not sure about the logging. You are right, in that it is logging everything. I'm getting flooded by ARP and Broadcast traffic. I'm would like to whittle it down to Oracle and SSH traffic. Just got to research it.


Thanks again for taking the time...I'm learning the ins and outs of IPTables.
 
Old 02-11-2016, 05:53 PM   #17
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by JockVSJock View Post
You also said ESTABLISHED,RELATED also at the top, following the loopback. Does that go for any port/protocol?
Any protocol conntrack know about.


Quote:
Originally Posted by JockVSJock View Post
I'm would like to whittle it down to Oracle and SSH traffic.
Code:
-A INPUT -s 192.168.10.0/255.255.255.0 -p tcp -m multiport --dports 22,1158,1521 -m state --state NEW -j LOG --log-prefix 'in_NEW_ORA_SSH '
 
Old 02-11-2016, 07:25 PM   #18
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Right now I have the logging for iptables going to /var/log/messages. However I see you can also log to /var/log/iptables. Are there any advantages/disadvantages to either?

thanks
 
Old 02-12-2016, 12:31 AM   #19
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by JockVSJock View Post
Right now I have the logging for iptables going to /var/log/messages. However I see you can also log to /var/log/iptables. Are there any advantages/disadvantages to either?
As you can grep for firewall entries in the first that's "good enough" for simple purposes I'd say.
 
  


Reply

Tags
icmp, iptables, logging



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
Log iptables drop packet to file but not /var/log/messages? kikilinux Linux - Security 1 10-02-2012 09:42 AM
[SOLVED] No /var/log/messages , syslog , kern.log -but cat /var/spool/octopussy/octo_fifo masuch Linux - Newbie 4 06-13-2012 08:05 PM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
iptables and /var/log/messages Obie Linux - Security 5 08-18-2004 02:02 AM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM

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

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