Banner2.jpgBanner3.jpgBanner1.jpgBanner4.jpg

phone ip tables

Ip tables and info from my phone

used to check configuration for tethering through vpn

Android phone
netcfg

dummy0 DOWN 0.0.0.0/0 0x00000082 c6:17:fc:65:6e:b4
wlan0 UP 172.20.82.159/20 0x00001043 cc:3a:61:25:92:b5
rmnet_usb2 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet_usb1 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00 -- tether link
rmnet_usb0 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00 -- LTE link
p2p0 UP 0.0.0.0/0 0x00001003 ce:3a:61:25:92:b5
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
rmnet_smux1 DOWN 0.0.0.0/0 0x00001002 0e:27:ef:e6:f0:e2
rmnet_smux0 DOWN 0.0.0.0/0 0x00001002 be:db:25:6c:ae:26

shell@jfltecan:/ $ netcfg
dummy0 DOWN 0.0.0.0/0 0x00000082 c6:17:fc:65:6e:b4
wlan0 UP 192.168.43.1/24 0x00001043 cc:3a:61:25:92:b5
rmnet_usb2 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet_usb1 UP 25.249.213.238/30 0x00000041 00:00:00:00:00:00
rmnet_usb0 UP 25.160.193.156/30 0x00000041 00:00:00:00:00:00
p2p0 DOWN 0.0.0.0/0 0x00001002 00:90:4c:33:22:11
tun0 UP 104.143.76.228/27 0x0000000051 00:00:00:00:00:00
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
rmnet_smux1 DOWN 0.0.0.0/0 0x00001002 0e:27:ef:e6:f0:e2
rmnet_smux0 DOWN 0.0.0.0/0 0x00001002 be:db:25:6c:ae:26

shell@jfltecan:/ $ ip route
25.160.193.156/30 dev rmnet_usb0 proto kernel scope link src 25.160.193.156
25.249.60.148/30 dev rmnet_usb1 proto kernel scope link src 25.249.60.148
104.143.76.224/27 dev tun0 proto kernel scope link src 104.143.76.228
192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.1

root@jfltecan:/ # ip route
25.160.193.156/30 dev rmnet_usb0 proto kernel scope link src 25.160.193.156
25.162.60.148/30 dev rmnet_usb1 proto kernel scope link src 25.162.60.148
104.143.76.224/27 dev tun0 proto kernel scope link src 104.143.76.228
192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.1

root@jfltecan:/ # ip rule show
0: from all lookup local
150: from 172.20.82.159 lookup 2
150: from 25.160.193.156 lookup 1
10000: from all fwmark 0xc0000/0xd0000 lookup legacy_system
11000: from all iif tun0 lookup local_network
12000: from all fwmark 0xc0231/0xcffff lookup tun0
12000: from all fwmark 0x0/0x20000 uidrange 0-99999 lookup tun0
13000: from all fwmark 0x10063/0x1ffff lookup local_network
13000: from all fwmark 0x1022d/0x1ffff lookup rmnet_usb0
13000: from all fwmark 0x10230/0x1ffff lookup rmnet_usb1
13000: from all fwmark 0x10231/0x1ffff uidrange 0-0 lookup tun0
13000: from all fwmark 0x10231/0x1ffff uidrange 0-99999 lookup tun0
14000: from all oif rmnet_usb0 lookup rmnet_usb0
14000: from all oif wlan0 lookup local_network
14000: from all oif rmnet_usb1 lookup rmnet_usb1
14000: from all oif tun0 uidrange 0-99999 lookup tun0
15000: from all fwmark 0x0/0x10000 lookup legacy_system
16000: from all fwmark 0x0/0x10000 lookup legacy_network
17000: from all fwmark 0x0/0x10000 lookup local_network
18000: from all iif wlan0 lookup rmnet_usb1
19000: from all fwmark 0x22d/0x1ffff lookup rmnet_usb0
19000: from all fwmark 0x230/0x1ffff lookup rmnet_usb1
21000: from all fwmark 0x231/0x1ffff lookup rmnet_usb0
22000: from all fwmark 0x0/0xffff lookup rmnet_usb0
23000: from all fwmark 0x0/0xffff uidrange 0-0 lookup main
32000: from all unreachable
root@jfltecan:/ #

ip route show table 1
default via 25.160.193.157 dev rmnet_usb0
25.160.193.156/30 dev rmnet_usb0 scope link

ip route show table rmnet_usb0
default via 25.160.193.157 dev rmnet_usb0 proto static

ip route show table rmnet_usb1
default via 25.249.255.170 dev rmnet_usb1 proto static

root@jfltecan:/ # ip route show table main
25.160.193.156/30 dev rmnet_usb0 proto kernel scope link src 25.160.193.156
25.249.255.168/30 dev rmnet_usb1 proto kernel scope link src 25.249.255.169
104.143.76.224/27 dev tun0 proto kernel scope link src 104.143.76.228

root@jfltecan:/ # ip route show table local
local 25.160.193.156 dev rmnet_usb0 proto kernel scope host src 25.160.193.156
broadcast 25.160.193.156 dev rmnet_usb0 proto kernel scope link src 25.160.193.156
broadcast 25.160.193.159 dev rmnet_usb0 proto kernel scope link src 25.160.193.156
broadcast 25.249.255.168 dev rmnet_usb1 proto kernel scope link src 25.249.255.169
local 25.249.255.169 dev rmnet_usb1 proto kernel scope host src 25.249.255.169
broadcast 25.249.255.171 dev rmnet_usb1 proto kernel scope link src 25.249.255.169
broadcast 104.143.76.224 dev tun0 proto kernel scope link src 104.143.76.229
local 104.143.76.229 dev tun0 proto kernel scope host src 104.143.76.229
broadcast 104.143.76.255 dev tun0 proto kernel scope link src 104.143.76.229
broadcast 127.0.0.0 dev lo proto kernel scope link src 127.0.0.1
local 127.0.0.0/8 dev lo proto kernel scope host src 127.0.0.1
local 127.0.0.1 dev lo proto kernel scope host src 127.0.0.1
broadcast 127.255.255.255 dev lo proto kernel scope link src 127.0.0.1
broadcast 192.168.43.0 dev wlan0 proto kernel scope link src 192.168.43.1
local 192.168.43.1 dev wlan0 proto kernel scope host src 192.168.43.1
broadcast 192.168.43.255 dev wlan0 proto kernel scope link src 192.168.43.1

root@jfltecan:/ # ip route show table tun0
default dev tun0 proto static scope link


2|root@jfltecan:/ # iptables -vL
Chain INPUT (policy ACCEPT 151 packets, 27661 bytes)
pkts bytes target prot opt in out source destination
433K 413M bw_INPUT all -- any any anywhere anywhere
433K 413M fw_INPUT all -- any any anywhere anywhere
433K 413M bw_VIDEOCALL all -- any any anywhere anywhere

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
1569 597K oem_fwd all -- any any anywhere anywhere
1569 597K fw_FORWARD all -- any any anywhere anywhere
1569 597K bw_FORWARD all -- any any anywhere anywhere
1569 597K natctrl_FORWARD all -- any any anywhere anywhere

Chain OUTPUT (policy ACCEPT 211 packets, 28624 bytes)
pkts bytes target prot opt in out source destination
192K 41M oem_out all -- any any anywhere anywhere
192K 41M fw_OUTPUT all -- any any anywhere anywhere
192K 41M bw_OUTPUT all -- any any anywhere anywhere
192K 41M st_filter_OUTPUT all -- any any anywhere anywhere
192K 41M bw_VIDEOCALL all -- any any anywhere anywhere

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

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
45096 66M all -- any any anywhere anywhere ! quota globalAlert: 2097152 bytes
3795 3144K bw_costly_rmnet_usb0 all -- rmnet_usb0 any anywhere anywhere

131 15243 bw_costly_rmnet_usb1 all -- rmnet_usb1 any anywhere anywhere

423K 412M all -- any any anywhere anywhere owner socket exists

Chain bw_OUTPUT (1 references)
pkts bytes target prot opt in out source destination
12823 2175K all -- any any anywhere anywhere ! quota globalAlert: 2097152 bytes
3738 836K bw_costly_rmnet_usb0 all -- any rmnet_usb0 anywhere anywhere

183 17104 bw_costly_rmnet_usb1 all -- any rmnet_usb1 anywhere anywhere

188K 41M all -- any any anywhere anywhere owner socket exists

Chain bw_VIDEOCALL (2 references)
pkts bytes target prot opt in out source destination

Chain bw_costly_rmnet_usb0 (2 references)
pkts bytes target prot opt in out source destination
7533 3981K bw_penalty_box all -- any any anywhere anywhere
0 0 REJECT all -- any any anywhere anywhere ! quota rmnet_usb0: 5772704988 bytes reject-with icmp-port-unreachable

Chain bw_costly_rmnet_usb1 (2 references)
pkts bytes target prot opt in out source destination
314 32347 bw_penalty_box all -- any any anywhere anywhere
0 0 REJECT all -- any any anywhere anywhere ! quota rmnet_usb1: 5772704988 bytes reject-with icmp-port-unreachable

Chain bw_costly_shared (0 references)
pkts bytes target prot opt in out source destination
0 0 bw_penalty_box all -- any any anywhere anywhere

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

Chain bw_penalty_box (3 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 -- any any anywhere anywhere

Chain natctrl_tether_counters (0 references)
pkts bytes target prot opt in out source destination
801 146K RETURN all -- wlan0 rmnet_usb1 anywhere anywhere
768 451K RETURN all -- rmnet_usb1 wlan0 anywhere anywhere

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

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



root@jfltecan:/ # iptables -t nat -vL
Chain PREROUTING (policy ACCEPT 19 packets, 1451 bytes)
pkts bytes target prot opt in out source destination
13621 1853K oem_nat_pre all -- any any anywhere anywhere
13621 1853K natctrl_nat_PREROUTING all -- any any anywhere anywhere

Chain INPUT (policy ACCEPT 19 packets, 1451 bytes)
pkts bytes target prot opt in out source destination

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

Chain POSTROUTING (policy ACCEPT 146 packets, 13236 bytes)
pkts bytes target prot opt in out source destination
12068 1112K natctrl_nat_POSTROUTING all -- any any anywhere anywhere
12005 1107K st_nat_POSTROUTING all -- any any anywhere anywhere

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

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

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

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

 

Subcategories

Copywrite ian-phaydy.ca 2014