netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PCI Compliance, gee fun.
@ 2012-11-13 16:18 Greg Folkert
  2012-11-13 16:32 ` /dev/rob0
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Folkert @ 2012-11-13 16:18 UTC (permalink / raw)
  To: netfilter

Hello,

I'm being told by my PCI QSA that IPTables supports DNS Names in kernel.
He is forcing me to use "DNS Names" in my "iptables-restore" formatted
save file. I am using a Fedora (FC2) based Firewall (with some updated
packages to fix things)... its quite Old... (which they also don't like)
using IPTables v1.2.9.

The problem is, IPTables only deals with "IP Addresses" in its structure
and doesn't have "dynamic" IP resolution and only resolves on
"runtime/load". Now if I use "iptables-save" the file format does NOT in
fact use DNS and only dumps the IP Address.

What I need is the actual documentation that seems TERRIBLY hard to find
on this very subject...

He is also claiming that other firewalls solutions (aka Proprietary, aka
Cisco) "dynamically" resolve rules... which I believe is incorrect, as
well.

Please point me at some place I can find "authoritative" documentation
for this situation for me to either "suck it up" or to give him direct
docs for him to include in our Audit.

Thanks. Hopefully I have stated the issue well enough.
-- 
greg folkert - systems administration and support
web:    donor.com
email:  greg@donor.com
phone:  877-751-3300 x416
direct: 616-328-6449 (direct dial and fax)
"If the only prayer you ever say in your entire life is thank you, it
will be enough."
    -- Meister Eckhart


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

* Re: PCI Compliance, gee fun.
  2012-11-13 16:18 PCI Compliance, gee fun Greg Folkert
@ 2012-11-13 16:32 ` /dev/rob0
  2012-11-13 16:45   ` John Lauro
  0 siblings, 1 reply; 4+ messages in thread
From: /dev/rob0 @ 2012-11-13 16:32 UTC (permalink / raw)
  To: netfilter

On Tue, Nov 13, 2012 at 11:18:55AM -0500, Greg Folkert wrote:
> I'm being told by my PCI QSA that IPTables supports DNS Names in kernel.

You obviously know this is wrong.

> He is forcing me to use "DNS Names" in my "iptables-restore" formatted
> save file. I am using a Fedora (FC2) based Firewall (with some updated
> packages to fix things)... its quite Old... (which they also don't like)
> using IPTables v1.2.9.
> 
> The problem is, IPTables only deals with "IP Addresses" in its structure
> and doesn't have "dynamic" IP resolution and only resolves on
> "runtime/load". Now if I use "iptables-save" the file format does NOT in
> fact use DNS and only dumps the IP Address.
> 
> What I need is the actual documentation that seems TERRIBLY hard to find
> on this very subject...

The iptables(8) manual:
"
[!] -s, --source address[/mask][,...]
    Source specification. Address can be either a network name, a 
    hostname, a network IP address (with /mask), or a plain IP 
    address. Hostnames will be resolved once only, before the rule
    is submitted to the kernel. Please note that specifying any name
    to be resolved with a remote query such as DNS is a really bad
    idea. ...
"

The iptables-restore(8) manual is very short and does not cover these 
specifics, but it does refer to iptables in "SEE ALSO". And perhaps a 
patch would be accepted. :)

> He is also claiming that other firewalls solutions (aka Proprietary, aka
> Cisco) "dynamically" resolve rules... which I believe is incorrect, as
> well.

I don't know Cisco et al, but I don't see how this would be practical 
without some kind of backend to monitor DNS for changes and update a 
list of IP addresses.

(You could do the same thing with iptables and ipset(8), FWIW, albeit 
not so easily on your Fedorasaurus, of course.)

> Please point me at some place I can find "authoritative" documentation
> for this situation for me to either "suck it up" or to give him direct
> docs for him to include in our Audit.
> 
> Thanks. Hopefully I have stated the issue well enough.

Good luck.
-- 
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

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

* Re: PCI Compliance, gee fun.
  2012-11-13 16:32 ` /dev/rob0
@ 2012-11-13 16:45   ` John Lauro
  2012-11-13 16:54     ` Eric Leblond
  0 siblings, 1 reply; 4+ messages in thread
From: John Lauro @ 2012-11-13 16:45 UTC (permalink / raw)
  To: netfilter

You could do some sort of template to generate iptables-restore format
and refresh it every so often (once an hour, or day).

Yes, dyamic DNS is fairly common on application layer firewalls.  That
said, they don't run in the kernel and their resolvers are fairly good
at caching that info...  Running things through proxy servers or other
things can allow you to make your rules use dns names there.

PS: I would assume that the "DNS" requirement is only for external
services that publish by DNS name only and not for internal services
or gateway services that publish the IP to use outside of DNS.


On Tue, Nov 13, 2012 at 11:32 AM, /dev/rob0 <rob0@gmx.co.uk> wrote:
> On Tue, Nov 13, 2012 at 11:18:55AM -0500, Greg Folkert wrote:
>> I'm being told by my PCI QSA that IPTables supports DNS Names in kernel.
>
> You obviously know this is wrong.
>
>> He is forcing me to use "DNS Names" in my "iptables-restore" formatted
>> save file. I am using a Fedora (FC2) based Firewall (with some updated
>> packages to fix things)... its quite Old... (which they also don't like)
>> using IPTables v1.2.9.
>>
>> The problem is, IPTables only deals with "IP Addresses" in its structure
>> and doesn't have "dynamic" IP resolution and only resolves on
>> "runtime/load". Now if I use "iptables-save" the file format does NOT in
>> fact use DNS and only dumps the IP Address.
>>
>> What I need is the actual documentation that seems TERRIBLY hard to find
>> on this very subject...
>
> The iptables(8) manual:
> "
> [!] -s, --source address[/mask][,...]
>     Source specification. Address can be either a network name, a
>     hostname, a network IP address (with /mask), or a plain IP
>     address. Hostnames will be resolved once only, before the rule
>     is submitted to the kernel. Please note that specifying any name
>     to be resolved with a remote query such as DNS is a really bad
>     idea. ...
> "
>
> The iptables-restore(8) manual is very short and does not cover these
> specifics, but it does refer to iptables in "SEE ALSO". And perhaps a
> patch would be accepted. :)
>
>> He is also claiming that other firewalls solutions (aka Proprietary, aka
>> Cisco) "dynamically" resolve rules... which I believe is incorrect, as
>> well.
>
> I don't know Cisco et al, but I don't see how this would be practical
> without some kind of backend to monitor DNS for changes and update a
> list of IP addresses.
>
> (You could do the same thing with iptables and ipset(8), FWIW, albeit
> not so easily on your Fedorasaurus, of course.)
>
>> Please point me at some place I can find "authoritative" documentation
>> for this situation for me to either "suck it up" or to give him direct
>> docs for him to include in our Audit.
>>
>> Thanks. Hopefully I have stated the issue well enough.
>
> Good luck.
> --
>   http://rob0.nodns4.us/ -- system administration and consulting
>   Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: PCI Compliance, gee fun.
  2012-11-13 16:45   ` John Lauro
@ 2012-11-13 16:54     ` Eric Leblond
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Leblond @ 2012-11-13 16:54 UTC (permalink / raw)
  To: John Lauro; +Cc: netfilter

Hi,

On Tue, 2012-11-13 at 11:45 -0500, John Lauro wrote:
> You could do some sort of template to generate iptables-restore format
> and refresh it every so often (once an hour, or day).

It should be possible to use the --comment option and to store inside
this the used DNS name. This will allow to store the information in the
iptables-save format. This will not fix the restoration but it could be
a good base for a conversion script.

BR,

> Yes, dyamic DNS is fairly common on application layer firewalls.  That
> said, they don't run in the kernel and their resolvers are fairly good
> at caching that info...  Running things through proxy servers or other
> things can allow you to make your rules use dns names there.
> 
> PS: I would assume that the "DNS" requirement is only for external
> services that publish by DNS name only and not for internal services
> or gateway services that publish the IP to use outside of DNS.
> 
> 
> On Tue, Nov 13, 2012 at 11:32 AM, /dev/rob0 <rob0@gmx.co.uk> wrote:
> > On Tue, Nov 13, 2012 at 11:18:55AM -0500, Greg Folkert wrote:
> >> I'm being told by my PCI QSA that IPTables supports DNS Names in kernel.
> >
> > You obviously know this is wrong.
> >
> >> He is forcing me to use "DNS Names" in my "iptables-restore" formatted
> >> save file. I am using a Fedora (FC2) based Firewall (with some updated
> >> packages to fix things)... its quite Old... (which they also don't like)
> >> using IPTables v1.2.9.
> >>
> >> The problem is, IPTables only deals with "IP Addresses" in its structure
> >> and doesn't have "dynamic" IP resolution and only resolves on
> >> "runtime/load". Now if I use "iptables-save" the file format does NOT in
> >> fact use DNS and only dumps the IP Address.
> >>
> >> What I need is the actual documentation that seems TERRIBLY hard to find
> >> on this very subject...
> >
> > The iptables(8) manual:
> > "
> > [!] -s, --source address[/mask][,...]
> >     Source specification. Address can be either a network name, a
> >     hostname, a network IP address (with /mask), or a plain IP
> >     address. Hostnames will be resolved once only, before the rule
> >     is submitted to the kernel. Please note that specifying any name
> >     to be resolved with a remote query such as DNS is a really bad
> >     idea. ...
> > "
> >
> > The iptables-restore(8) manual is very short and does not cover these
> > specifics, but it does refer to iptables in "SEE ALSO". And perhaps a
> > patch would be accepted. :)
> >
> >> He is also claiming that other firewalls solutions (aka Proprietary, aka
> >> Cisco) "dynamically" resolve rules... which I believe is incorrect, as
> >> well.
> >
> > I don't know Cisco et al, but I don't see how this would be practical
> > without some kind of backend to monitor DNS for changes and update a
> > list of IP addresses.
> >
> > (You could do the same thing with iptables and ipset(8), FWIW, albeit
> > not so easily on your Fedorasaurus, of course.)
> >
> >> Please point me at some place I can find "authoritative" documentation
> >> for this situation for me to either "suck it up" or to give him direct
> >> docs for him to include in our Audit.
> >>
> >> Thanks. Hopefully I have stated the issue well enough.
> >
> > Good luck.
> > --
> >   http://rob0.nodns4.us/ -- system administration and consulting
> >   Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
> > --
> > To unsubscribe from this list: send the line "unsubscribe netfilter" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



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

end of thread, other threads:[~2012-11-13 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-13 16:18 PCI Compliance, gee fun Greg Folkert
2012-11-13 16:32 ` /dev/rob0
2012-11-13 16:45   ` John Lauro
2012-11-13 16:54     ` Eric Leblond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).