* Can iptables control what internal LAN clients can configure the Firewall over UPnP?
@ 2010-01-25 9:18 paddy joesoap
2010-01-25 9:23 ` Richard Horton
0 siblings, 1 reply; 3+ messages in thread
From: paddy joesoap @ 2010-01-25 9:18 UTC (permalink / raw)
To: netfilter
Dear Experts,
Is it possible to control what LAN clients can administer the firewall by UPnP.
I have recently learned that client-to-client filtering will not come
into play for clients on the same LAN as those client packets don't
pass through the firewall.
However, I presume it is possible to filter client-2-firewall on the
LAN side. Presumably packets would traverse the firewall TCP/IP stack
thereby triggering iptables into action.
That is, clientA (IP address) is allowed to communicate directly with
the firewall for UPnP but clientB and clientC are not.
If UPnP is enabled then, iptables will provide some protection as to
what clients can talk to its UPnP ports.
Also, if client-2-firewall on the LAN side is possible, one could
further lock down the firewall to only allow clientA communicate to
port http, https and ssh that may also be open on the firewall. A
defence in depth strategy.
Firewall I am using is WRT54G running dd-wrt. But I guess the question
is open to all kinds of iptables-ready machines, be they standalone
PC's converted to a firewall.
All feedback welcomed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can iptables control what internal LAN clients can configure the Firewall over UPnP?
2010-01-25 9:18 Can iptables control what internal LAN clients can configure the Firewall over UPnP? paddy joesoap
@ 2010-01-25 9:23 ` Richard Horton
2010-01-25 9:55 ` paddy joesoap
0 siblings, 1 reply; 3+ messages in thread
From: Richard Horton @ 2010-01-25 9:23 UTC (permalink / raw)
To: paddy joesoap; +Cc: netfilter
2010/1/25 paddy joesoap <paddyjoesoap@gmail.com>:
> Dear Experts,
>
> Is it possible to control what LAN clients can administer the firewall by UPnP.
Yes, just add the appropriate rule into the input chain (the traffic
target is the firewall itself...)
--
Richard Horton
Users are like a virus: Each causing a thousand tiny crises until the
host finally dies.
http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats
http://www.pbase.com/arimus - My online photogallery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Can iptables control what internal LAN clients can configure the Firewall over UPnP?
2010-01-25 9:23 ` Richard Horton
@ 2010-01-25 9:55 ` paddy joesoap
0 siblings, 0 replies; 3+ messages in thread
From: paddy joesoap @ 2010-01-25 9:55 UTC (permalink / raw)
To: Richard Horton; +Cc: netfilter
Thanks once again Richard.
Fantastic!
Extending my original question a little further:
Given that iptables doesn't filter client-2-client on the same LAN is
there another way around it? Perhaps ebtables?
[note: in terms of the home broadband boxes which are multi-purpose
firewall-router-switch, it is possible to filter
wifiClient-2lanPortClient as they appear on separate interfaces. Or
that is my limited understanding)
I guess if I take the ebtables idea, then the firewall becomes a
bridge and only filters layer 2, thereby rendering the normal things
i'd like to do with iptables ineffective.
Perhaps, I've misinterpreted this. Maybe the firewall can run in both
modes ebtables and iptables. I'll need to read some more into this
area.
The reason I ask is, imagine a scenario where, clienthacker gains
access to the LAN via cracking the WiFi. It would be nice to be able
to silo clienthacker from the trusted clients by iptables rules. That
way, clienthacker cannot directly attack the trusted clients. And also
it cannot subvert the firewall configuration via UPnP, as you've
pointed out that iptables can prevent this as with trusted LAN
clients.
The idea would be that trusted clients A,B and C could communicate
with each other but clienthacker could not communicate with them. This
leaves clienthacker only access to the outside world, which in turn
can be controlled as it must pass through the firewall ;-)
Thanks again for the responses and for bearing with my ignorance on
this subject.
On Mon, Jan 25, 2010 at 9:23 AM, Richard Horton
<arimus.uk@googlemail.com> wrote:
> 2010/1/25 paddy joesoap <paddyjoesoap@gmail.com>:
>> Dear Experts,
>>
>> Is it possible to control what LAN clients can administer the firewall by UPnP.
>
> Yes, just add the appropriate rule into the input chain (the traffic
> target is the firewall itself...)
>
>
> --
> Richard Horton
> Users are like a virus: Each causing a thousand tiny crises until the
> host finally dies.
> http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats
> http://www.pbase.com/arimus - My online photogallery
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-25 9:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-25 9:18 Can iptables control what internal LAN clients can configure the Firewall over UPnP? paddy joesoap
2010-01-25 9:23 ` Richard Horton
2010-01-25 9:55 ` paddy joesoap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox