[Motorola Atrix 2] lapu:
help on iptables listing

hi there,

could someone turn on the tethering and help to print out following command output:

(assume you are at adb)

adb shell

su

iptables -L -v --line-number

iptables -L -v --line-number -t nat

it will be something like following:

Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

d:\android>adb shell

shell@android:/ $ su

su

shell@android:/ # iptables -L -v --line-number

iptables -L -v --line-number

Chain INPUT (policy ACCEPT 3885 packets, 3244K bytes)

num pkts bytes target prot opt in out source destination

1 1497K 2006M bw_INPUT all -- any any anywhere anywhere

2 1497K 2006M fw_INPUT all -- any any anywhere anywhere

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)

num pkts bytes target prot opt in out source destination

protoent* getprotobynumber(int)(3) is not implemented on Android

netent* getnetbyaddr(uint32_t, int)(3) is not implemented on Android

1 213 11480 TCPMSS tcp -- any any 192.168.43.0/24 anywhere tcpflags: SYN,RST/SYN TCPMSS clamp to PMTU

2 169K 80M ACCEPT all -- any any anywhere anywhere

Chain OUTPUT (policy ACCEPT 3328 packets, 511K bytes)

num pkts bytes target prot opt in out source destination

1 605K 51M oem_out all -- any any anywhere anywhere

2 605K 51M fw_OUTPUT all -- any any anywhere anywhere

3 605K 51M bw_OUTPUT all -- any any anywhere anywhere

Chain bw_FORWARD (0 references)

num pkts bytes target prot opt in out source destination

1 0 0 all -- !lo+ any anywhere anywhere ! quota globalAlert: 2097152 bytes

2 0 0 all -- !lo+ any anywhere anywhere

Chain bw_INPUT (1 references)

num pkts bytes target prot opt in out source destination

1 302K 421M all -- !lo+ any anywhere anywhere ! quota globalAlert: 2097152 bytes

2 1483K 1994M costly_rmnet_usb0 all -- rmnet_usb0 any anywhere anywhere

3 98 5280 RETURN all -- lo any anywhere anywhere

4 1348K 1872M all -- any any anywhere anywhere owner socket exists

Chain bw_OUTPUT (1 references)

num pkts bytes target prot opt in out source destination

1 151K 8318K all -- any !lo+ anywhere anywhere ! quota globalAlert: 2097152 bytes

2 592K 49M costly_rmnet_usb0 all -- any rmnet_usb0 anywhere anywhere

3 98 5280 RETURN all -- any lo anywhere anywhere

4 604K 51M all -- any any anywhere anywhere owner socket exists

Chain costly_rmnet_usb0 (2 references)

num pkts bytes target prot opt in out source destination

1 0 0 REJECT all -- any any anywhere anywhere ! quota rmnet_usb0: 9223372036854775807 bytes reject-wi

th icmp-net-prohibited

2 2076K 2043M penalty_box all -- any any anywhere anywhere

Chain costly_shared (0 references)

num pkts bytes target prot opt in out source destination

1 0 0 penalty_box all -- any any anywhere anywhere

Chain fw_FORWARD (0 references)

num pkts bytes target prot opt in out source destination

Chain fw_INPUT (1 references)

num pkts bytes target prot opt in out source destination

Chain fw_OUTPUT (1 references)

num pkts bytes target prot opt in out source destination

Chain natctrl_FORWARD (0 references)

num pkts bytes target prot opt in out source destination

1 0 0 RETURN all -- rmnet_usb0 wlan0 anywhere anywhere state RELATED,ESTABLISHED

2 0 0 DROP all -- wlan0 rmnet_usb0 anywhere anywhere state INVALID

3 0 0 RETURN all -- wlan0 rmnet_usb0 anywhere anywhere

4 0 0 DROP all -- any any anywhere anywhere

Chain oem_fwd (0 references)

num pkts bytes target prot opt in out source destination

Chain oem_out (1 references)

num pkts bytes target prot opt in out source destination

Chain penalty_box (2 references)

num pkts bytes target prot opt in out source destination

shell@android:/ # iptables -L -v --line-number -t nat

iptables -L -v --line-number -t nat

Chain PREROUTING (policy ACCEPT 1848 packets, 163K bytes)

num pkts bytes target prot opt in out source destination

1 10532 1085K oem_nat_pre all -- any any anywhere anywhere

Chain INPUT (policy ACCEPT 4 packets, 752 bytes)

num pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 14 packets, 911 bytes)

num pkts bytes target prot opt in out source destination

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)

num pkts bytes target prot opt in out source destination

1 7024 396K MASQUERADE all -- any any anywhere anywhere

Chain natctrl_nat_POSTROUTING (0 references)

num pkts bytes target prot opt in out source destination

1 0 0 MASQUERADE all -- any rmnet_usb0 anywhere anywhere

netent* getnetbyaddr(uint32_t, int)(3) is not implemented on Android

2 0 0 MASQUERADE all -- any rmnet+ 192.168.0.0/16 anywhere

Chain oem_nat_pre (1 references)

num pkts bytes target prot opt in out source destination

shell@android:/ #

long strory:

my atrix2 screen was broken. i bought a note2 LTE, but i have been struggling for weeks (by flashing roms, adb commands) to make tethering worked for my carrier.

Atrix2 works with JB leak 3 and slimkat (with wifi tethering fix in this thread).

however, JB leak3 kernel does not support iptables, and i cant boot into slimkat (screen broken).

i want to compare iptables for both.

thanks in advance.