Re: bloccare accesso ad internet per un'applicazione

2005-10-25 Per discussione Alessandro Pellizzari
Il giorno lun, 24/10/2005 alle 19.42 +0200, Roberto Nicolini ha scritto:

> 2) dove trovare più info su questo particolare, visto che l'output di 
> man iptables | grep owner
> è nullo.

Credo che dovresti aggiornare iptables. O non usare le manpage in
italiano, che spesso non sono aggiornate.
Questo da etch:


 owner
   This module attempts to match various characteristics of the
packet creator, for locally-generated packets. It is valid in the INPUT,
OUTPUT  and
   POSTROUTING chains, however in the INPUT chain only TCP and UDP
packets can be matched. Also note that some packets (such as ICMP ping
responses)
   may have no owner, and hence never match.

   --uid-owner userid
  Matches if the packet was created by a process with the
given effective user id.

   --gid-owner groupid
  Matches if the packet was created by a process with the
given effective group id.

   --pid-owner processid
  Matches if the packet was created by a process with the
given process id.

   --sid-owner sessionid
  Matches if the packet was created by a process in the
given session group.

   --cmd-owner name
  Matches if the packet was created by a process with the
given command name.  (this option is present only if iptables was
compiled under a
  kernel supporting this feature)

   NOTE: pid, sid and command matching are broken on SMP



-- 
Alessandro Pellizzari



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: bloccare accesso ad internet per un'applicazione

2005-10-24 Per discussione Roberto Nicolini
Gesendet von Maxx, am Monday 24 October 2005 17:52:
> On Mon, 24 Oct 2005 13:10:52 +0200 Michele Concina wrote:
> > ciao a tutti!
> > una curiosità, è possibile in qualche modo (senza usare un firewall)
> > impedire che un'applicazione si connetta ad internet?
> > Grazie,
> > michele
>
> Se hai il controllo della macchina su cui gira $applicazione
> puoi p.es. usare iptables (se il kernel lo supporta, of course):
>
> # iptables -A OUTPUT -m owner --cmd-owner $applicazione -j DROP
>
> Maxx

Scusate se mi intrometto nel thread, ma avrei due domande su questo punto:

1) se questa cosa funziona anche in input, cioè se posso proibire i tentativi 
di connessione o comunicazione dall'esterno con una specifica applicazione, o 
consentirli solo se diretti a una specifica applicaizione

2) dove trovare più info su questo particolare, visto che l'output di 
man iptables | grep owner
è nullo.

Grazie mille!

Roberto



bloccare accesso ad internet per un'applicazione

2005-10-24 Per discussione Michele Concina

ciao a tutti!
una curiosità, è possibile in qualche modo (senza usare un firewall) 
impedire che un'applicazione si connetta ad internet?

Grazie,
michele


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]