Saltar para conteúdo


Foto
- - - - -

Problema com Iptables

iptables

  • Por favor inicie sessão para responder
Não há respostas a este tópico.

#1 SSilver

SSilver

    Novato

  • Membros
  • Pip
  • 2 mensagens

Mensagem publicada 07 June 2016 - 23:09

Boas,

 

Criei um dispositivo através do AVD com Android 4.4.2.

Através da adb shell estou a tentar adicionar uma regra com o iptables para poder registar o trafego no Log, mas o obtenho o seguinte erro:

root@generic_x86:/ #iptables -I INPUT 1 -j LOG --log-prefix "[IPT IN START] " --log-level 4 --log-uid
iptables: No chain/target/match by that name.

Tenho o seguinte na iptables:

root@generic_x86:/ # iptables -L -n -v
Chain INPUT (policy ACCEPT 652 packets, 38705 bytes)
 pkts bytes target     prot opt in     out     source               destination

  652 38705 bw_INPUT   all  --  *      *       0.0.0.0/0            0.0.0.0/0

  652 38705 fw_INPUT   all  --  *      *       0.0.0.0/0            0.0.0.0/0


Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

    0     0 oem_fwd    all  --  *      *       0.0.0.0/0            0.0.0.0/0

    0     0 fw_FORWARD  all  --  *      *       0.0.0.0/0            0.0.0.0/0

    0     0 bw_FORWARD  all  --  *      *       0.0.0.0/0            0.0.0.0/0

    0     0 natctrl_FORWARD  all  --  *      *       0.0.0.0/0            0.0.0.
0/0

Chain OUTPUT (policy ACCEPT 563 packets, 49784 bytes)
 pkts bytes target     prot opt in     out     source               destination

  563 49784 oem_out    all  --  *      *       0.0.0.0/0            0.0.0.0/0

  563 49784 fw_OUTPUT  all  --  *      *       0.0.0.0/0            0.0.0.0/0

  563 49784 bw_OUTPUT  all  --  *      *       0.0.0.0/0            0.0.0.0/0


Chain bw_FORWARD (1 references)
 pkts bytes target     prot opt in     out     source               destination


Chain bw_INPUT (1 references)
 pkts bytes target     prot opt in     out     source               destination


Chain bw_OUTPUT (1 references)
 pkts bytes target     prot opt in     out     source               destination


Chain bw_costly_shared (0 references)
 pkts bytes target     prot opt in     out     source               destination


Chain bw_happy_box (0 references)
 pkts bytes target     prot opt in     out     source               destination


Chain bw_penalty_box (0 references)
 pkts bytes target     prot opt in     out     source               destination


Chain fw_FORWARD (1 references)
 pkts bytes target     prot opt in     out     source               destination


Chain fw_INPUT (1 references)
 pkts bytes target     prot opt in     out     source               destination


Chain fw_OUTPUT (1 references)
 pkts bytes target     prot opt in     out     source               destination


Chain natctrl_FORWARD (1 references)
 pkts bytes target     prot opt in     out     source               destination

    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0


Chain natctrl_tether_counters (0 references)
 pkts bytes target     prot opt in     out     source               destination


Chain oem_fwd (1 references)
 pkts bytes target     prot opt in     out     source               destination


Chain oem_out (1 references)
 pkts bytes target     prot opt in     out     source               destination

Alguma ideia do que se poderá estar a passar ?

Conseguem ajudar?

 

Obrigado

Cumprimentos


  • AustAdmilk, Rebdert e Franwab gosta disto