All of lore.kernel.org
 help / color / mirror / Atom feed
* logging question
@ 2005-10-17 16:26 Eric Moore
  2005-10-17 16:39 ` Stephen Smalley
  0 siblings, 1 reply; 17+ messages in thread
From: Eric Moore @ 2005-10-17 16:26 UTC (permalink / raw)
  To: SELinux


I have a debian unstable machine I'm trying to get selinux to work on.
I've gotten a policy to build, installed the userland tools, loaded
it, etc.  It's working, because I can swithc into enforcing mode, and
things break (presumably due to my havng screwed up the policy).  But
I never sdeem to get any logging messages of what was denied and why
(In or out of enforcing mode).  What's the best way for me to get
the kernel to log the appropriate messages somewhere?

Thanks.

-- 
Eric

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 17+ messages in thread
* Logging question
@ 2005-02-09 14:08 dave beach
       [not found] ` <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAqrTb2LYes02Oflamihm4w8 KAAAAQAAAA2SDxWNDfuEmRY16FU7zNcwEAAAAA@rogers.com>
  0 siblings, 1 reply; 17+ messages in thread
From: dave beach @ 2005-02-09 14:08 UTC (permalink / raw)
  To: netfilter

Hi, I have been using iptables for quite some time now but only recently
have decided to do things a bit differently. I'm trying to ulog various
things, and am having an unexpected problem ulogging packets outbound on
eth0 (the external interface). I don't have a problem constructing the rule,
just in figuring out in which table/chain to place it.

I'm clearly still not fully understanding table/chain traversal. It was my
understanding that every outbound packet, no matter where its origin or
destination, would pass through the nat/POSTROUTING chain, so this is where
my ulog rule came in to try and log all outbound packets. After seeing this
wasn't working (at all, although a similar rule to ulog all packets outbound
on eth1 (the internal interface) placed right after it seems to work like a
charm), I noticed in Oskar's excellent tutorial the statement that some
packets may not in fact pass through nat/POSTROUTING at all.

Without posting my entire iptables script, I guess I have several general
questions:

1) Can the "flow" diagram in section 3.1 of Oskar's tutorial be relied upon?
I would have thought so, and it has seemed reliable in practice, but the
failure of this one logging rule is now making me doubt that.

2) Under what circumstances would packets not traverse the nat/POSTROUTING
chain, as hinted at by Oskar in the tutorial?

3) Where would be a more appropriate place to put a ulog rule to capture
details of all outbound packets on eth0, and why would that not be the same
place as one to capture details of all outbound packets on eth1? I suspect
the answer to this is intimately related to the answers to 1 and 2 above.

Any help would be appreciated; I can post my iptables script if it would be
useful.


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

end of thread, other threads:[~2005-10-30 12:54 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-17 16:26 logging question Eric Moore
2005-10-17 16:39 ` Stephen Smalley
2005-10-17 21:52   ` Russell Coker
2005-10-17 22:19     ` Luke Kenneth Casson Leighton
2005-10-18 11:56     ` Stephen Smalley
2005-10-18 22:21       ` Russell Coker
2005-10-29 16:00     ` Manoj Srivastava
2005-10-29 16:50       ` Luke Kenneth Casson Leighton
2005-10-30 12:49       ` Dale Amon
  -- strict thread matches above, loose matches on Subject: below --
2005-02-09 14:08 Logging question dave beach
     [not found] ` <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAqrTb2LYes02Oflamihm4w8 KAAAAQAAAA2SDxWNDfuEmRY16FU7zNcwEAAAAA@rogers.com>
2005-02-09 15:35   ` Samuel Jean
2005-02-09 15:35     ` dave beach
     [not found]       ` <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAqrTb2LYes02Oflamihm4ww L6DwAQAAAA7ow78K+3jEWLSOFdgBEHbAEAAAAA@rogers.com>
2005-02-09 16:11         ` Samuel Jean
2005-02-09 16:32           ` dave beach
     [not found]             ` <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAqrTb2LYes02Oflamihm4ww L6DwAQAAAAWHMJM5wRT0u+QcOQ5qBuJQEAAAAA@rogers.com>
2005-02-09 17:08               ` Samuel Jean
2005-02-09 17:02                 ` dave beach
2005-02-11 13:45                   ` dave beach

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.