* Rules in config file
@ 2005-08-10 12:18 Lists
2005-08-10 18:20 ` /dev/rob0
2005-08-11 5:55 ` Jan Engelhardt
0 siblings, 2 replies; 3+ messages in thread
From: Lists @ 2005-08-10 12:18 UTC (permalink / raw)
To: netfilter
Hi
Would it be possible to somehow disable changing iptables rules from scripts and enable changing only from config file, which loading would be protected by special password defined in kernel? Or even better, your could preset iptables rules in kernel. That rules would be unchangeable.
I think this would improve Linux firewall security on systems with complex and tight rules.
Matrix
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Rules in config file
2005-08-10 12:18 Rules in config file Lists
@ 2005-08-10 18:20 ` /dev/rob0
2005-08-11 5:55 ` Jan Engelhardt
1 sibling, 0 replies; 3+ messages in thread
From: /dev/rob0 @ 2005-08-10 18:20 UTC (permalink / raw)
To: netfilter
On Wednesday 2005-August-10 07:18, Lists wrote:
> Would it be possible to somehow disable changing iptables rules from
> scripts and enable changing only from config file, which loading
> would be protected by special password defined in kernel? Or even
And what process is going to read that config file? A kernel driver?
Sure, you can write kernel-space software to do things like this, but
the reasoning behind it is not clear to me. I'd think the chances of
inclusion in the mainstream kernel are close to zero.
> better, your could preset iptables rules in kernel. That rules would
> be unchangeable.
Is that good? BTW you can accomplish the same thing with an old 80386
and /sbin/halt ... the machine keeps passing packets after the OS
stops. I used to have a 386 firewall machine which died with a hard
drive crash. I left it running 3-4 weeks thereafter, until I needed to
make changes in the firewall rules.
> I think this would improve Linux firewall security on systems with
> complex and tight rules.
Complex rules often need care and attention. What is the threat model
addressed by such a change? If someone hostile gets root on your
machine, you're in trouble. Besides, I think SELinux presents a more
comprehensive and well-considered approach to that possibility.
--
mail to this address is discarded unless "/dev/rob0"
or "not-spam" is in Subject: header
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Rules in config file
2005-08-10 12:18 Rules in config file Lists
2005-08-10 18:20 ` /dev/rob0
@ 2005-08-11 5:55 ` Jan Engelhardt
1 sibling, 0 replies; 3+ messages in thread
From: Jan Engelhardt @ 2005-08-11 5:55 UTC (permalink / raw)
To: Lists; +Cc: netfilter
>Hi
>
>Would it be possible to somehow disable changing iptables rules from scripts
>and enable changing only from config file, which loading would be protected
>by special password defined in kernel? Or even better, your could preset
>iptables rules in kernel. That rules would be unchangeable.
Just remove CAP_NET_RAW and CAP_NET_ADMIN from your capability set ;-)
Jan Engelhardt
--
| Alphagate Systems, http://alphagate.hopto.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-11 5:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-10 12:18 Rules in config file Lists
2005-08-10 18:20 ` /dev/rob0
2005-08-11 5:55 ` Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox