All of lore.kernel.org
 help / color / mirror / Atom feed
* some questions about Linux audit
@ 2017-06-09  1:46 =?gb18030?B?MzU4MTIzMDk3?=
  2017-06-09  2:23 ` Steve Grubb
  0 siblings, 1 reply; 2+ messages in thread
From: =?gb18030?B?MzU4MTIzMDk3?= @ 2017-06-09  1:46 UTC (permalink / raw)
  To: =?gb18030?B?bGludXgtYXVkaXQ=?=


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.1: Type: text/plain; charset="gb18030", Size: 728 bytes --]

Dear Sir/Madam,


Hello£¬ I¡®am a Chinese student£¬ now I studying Linux audit and having some problems. I want to collect some information from network£¬such as the accessor¡¯s IP and port. I defined a audit rule in machine A as follow£¬ then I used ¡°ping¡± and ¡°vsftpd¡± programs to test audit. For example, I run "ping A" in another machine, I can't collect any information in A's audit log. In addition, I run "ssh A" , then I get some incomprehensible records that display in the picture below(eg saddr=inet6 host:::1 serv:45983 and saddr=inet6 host:::ffff:127.0.0.1 serv:41573).
  -a always,exit -F arch=b64 -S connect -S getsockname -S getpeername


Looking forward to your reply£¡
Your sincerely,
Yingjie Tang

[-- Attachment #1.1.2: Type: text/html, Size: 960 bytes --]

[-- Attachment #1.2: EFD706CC@4A4DB562.08FE3959.png.jpg --]
[-- Type: image/jpeg, Size: 134271 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: some questions about Linux audit
  2017-06-09  1:46 some questions about Linux audit =?gb18030?B?MzU4MTIzMDk3?=
@ 2017-06-09  2:23 ` Steve Grubb
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Grubb @ 2017-06-09  2:23 UTC (permalink / raw)
  To: linux-audit

Hello,

On Thursday, June 8, 2017 9:46:48 PM EDT 358123097 wrote:
> Dear Sir/Madam,
> 
> Hello, I‘am a Chinese student, now I studying Linux audit and having some
> problems. I want to collect some information from network,such as the
> accessor’s IP and port. I defined a audit rule in machine A as follow, then
> I used “ping” and “vsftpd” programs to test audit. For example, I run "ping
> A" in another machine, I can't collect any information in A's audit log. In
> addition, I run "ssh A" , then I get some incomprehensible records that
> display in the picture below(eg saddr=inet6 host:::1 serv:45983 and
> saddr=inet6 host:::ffff:127.0.0.1 serv:41573).
> -a always,exit -F arch=b64 -S connect -S getsockname -S getpeername 

I am not sure of your intent (inbound vs outbound info). If you want to 
collect inbound information, you need to monitor syscalls for inbound events 
such as accept, accept4, recv, recvfrom. Ping uses ICMP packets and is not 
likely to show up in normal syscalls. You might find them by placing audit 
rules in the iptables rules.

-Steve

--
Linux-audit mailing list
Linux-audit@redhat.com
https://www.redhat.com/mailman/listinfo/linux-audit

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-09  2:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-09  1:46 some questions about Linux audit =?gb18030?B?MzU4MTIzMDk3?=
2017-06-09  2:23 ` Steve Grubb

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.