Projet

Général

Profil

Tâche #12856

Mis à jour par Klaas TJEBBES il y a plus de 8 ans

Dans */usr/share/eole/controlevnc/cliscribe.py*, ajouter une action "-fw" (comme il existe déjà "-killproc", "-shutdown", "-execute", "-executeuser", "-vnc").

<pre>
cliscribe.py -fw FW_ACTION FW_ACTION : INIT|ADD::rule|DEL::Nom|SETMODE::<in>;;<out>|ACTIVATE::True|False
* INIT initialise les règles de bases (fait une simple initalisation, ne lit pas "liste_fwregles.eol")
* ADD::rule
rule='Nom;; ip_src=XX;;ip_dst=XX;;action=XX;;proto=XX;;port_dst=XX;;program=XX'
- ip_src/dst = me|any|<ip>
- action=allow|block
- proto=tcp|udp|icmp|any
(Ex. 'ADD::TOTO;;ip_src=me;;ip_dst=any;;action=block;;proto=udp;;port_dst=123')
(Ex. 'ADD::TOTO;;ip_src=me;;ip_dst=any;;action=block;;proto=any;;program=notepad.exe')
* DEL::Nom
(Ex. 'DEL::TOTO')
* SETMODE::<in>;;<out>
<in>=allow|block
<out>=allow|block
(Ex. "SETMODE::block;;allow")
* ACTIVATE::True|False
r
</pre>

Retour