Advertisement
S-trace

Untitled

Mar 21st, 2014
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. ~ # grep hosts /etc/nsswitch.conf
  2. hosts: files
  3.  
  4.  
  5. ~ # cat /etc/hosts
  6. 127.0.0.1 localhost
  7. 192.168.0.2 KEENETIC
  8.  
  9.  
  10. ~ # dig @8.8.8.8 google.com
  11. /bin/sh: dig: not found
  12.  
  13.  
  14. ~ # wget http://192.168.0.2/
  15. Connecting to 192.168.0.2 (192.168.0.2:80)
  16. wget: server returned error: HTTP/1.0 401 Unauthorized
  17.  
  18.  
  19. ~ # ping 173.194.32.162 # google.com IP (pre-resolved on PC)
  20. PING 173.194.32.162 (173.194.32.162): 56 data bytes
  21. 64 bytes from 173.194.32.162: seq=0 ttl=52 time=36.252 ms
  22. ^C
  23. --- 173.194.32.162 ping statistics ---
  24. 1 packets transmitted, 1 packets received, 0% packet loss
  25. round-trip min/avg/max = 36.252/36.252/36.252 ms
  26.  
  27.  
  28. ~ # wget http://173.194.32.162
  29. Connecting to 173.194.32.162 (173.194.32.162:80)
  30. wget: can't connect to remote host (173.194.32.162): Connection timed out
  31.  
  32.  
  33. ~ # iptables -t nat -L
  34. Chain PREROUTING (policy ACCEPT)
  35. target prot opt source destination
  36.  
  37. Chain INPUT (policy ACCEPT)
  38. target prot opt source destination
  39.  
  40. Chain OUTPUT (policy ACCEPT)
  41. target prot opt source destination
  42.  
  43. Chain POSTROUTING (policy ACCEPT)
  44. target prot opt source destination
  45.  
  46.  
  47. ~ # iptables -L
  48. Chain INPUT (policy ACCEPT)
  49. target prot opt source destination
  50.  
  51. Chain FORWARD (policy ACCEPT)
  52. target prot opt source destination
  53.  
  54. Chain OUTPUT (policy ACCEPT)
  55. target prot opt source destination
  56.  
  57.  
  58. ~ # lsmod
  59. Module Size Used by
  60. xt_mark 672 0
  61. xt_mac 608 0
  62. sd_mod 25248 3
  63. usb_storage 35704 2
  64. scsi_mod 77026 2 sd_mod,usb_storage
  65. rndis_host 4649 0
  66. cdc_ether 3532 1 rndis_host
  67. usbnet 16255 2 rndis_host,cdc_ether
  68. mii 3496 1 usbnet
  69. option 25856 0
  70. usb_wwan 4380 1 option
  71. usbserial 18103 2 option,usb_wwan
  72. ohci_hcd 13472 0
  73. ehci_hcd 30380 0
  74. usbcore 106391 9 usb_storage,rndis_host,cdc_ether,usbnet,option,usb_wwan,usbserial,ohci_hcd,ehci_hcd
  75. usb_common 1160 1 usbcore
  76. ppp_generic 19698 0
  77. slhc 4347 1 ppp_generic
  78. l2tp_netlink 6456 0
  79. l2tp_core 14558 1 l2tp_netlink
  80. ipv6 237078 15 l2tp_core
  81. ipt_MASQUERADE 1088 0
  82. iptable_nat 1680 0
  83. iptable_mangle 912 0
  84. iptable_filter 672 0
  85. ip_tables 9149 3 iptable_nat,iptable_mangle,iptable_filter
  86. xt_state 688 0
  87. xt_tcpudp 1712 0
  88. xt_TCPMSS 2720 0
  89. x_tables 10981 9 xt_mark,xt_mac,ipt_MASQUERADE,iptable_mangle,iptable_filter,ip_tables,xt_state,xt_tcpudp,xt_TCPMSS
  90. nf_nat_ipv4 2558 1 iptable_nat
  91. nf_nat 9695 3 ipt_MASQUERADE,iptable_nat,nf_nat_ipv4
  92. nf_conntrack_ipv4 4676 1
  93. nf_defrag_ipv4 742 1 nf_conntrack_ipv4
  94. nf_conntrack 44171 6 ipt_MASQUERADE,iptable_nat,xt_state,nf_nat_ipv4,nf_nat,nf_conntrack_ipv4
  95. ledtrig_heartbeat 1136 0
  96. leds_gpio 2976 0
  97. gpio_button_hotplug 6032 0
  98. fuse 60465 2
  99. vfat 7776 0
  100. fat 45247 1 vfat
  101. ext4 282457 1
  102. crc16 1015 1 ext4
  103. mbcache 3949 1 ext4
  104. jbd2 46892 1 ext4
  105. crypto_hash 9546 2 ext4,jbd2
  106. nls_cp1251 3648 0
  107. nls_utf8 864 0
  108. nls_base 5022 5 usbcore,vfat,fat,nls_cp1251,nls_utf8
  109. rt2800soc 2464 0
  110. rt2800mmio 5865 1 rt2800soc
  111. rt2800lib 72417 2 rt2800soc,rt2800mmio
  112. rt2x00soc 1218 1 rt2800soc
  113. rt2x00mmio 1952 2 rt2800soc,rt2800mmio
  114. rt2x00lib 34064 5 rt2800soc,rt2800mmio,rt2800lib,rt2x00soc,rt2x00mmio
  115. mac80211 337582 3 rt2800lib,rt2x00soc,rt2x00lib
  116. cfg80211 187689 2 rt2x00lib,mac80211
  117. compat 1273 3 rt2800soc,mac80211,cfg80211
  118. crc_ccitt 1019 1 rt2800lib
  119.  
  120.  
  121. ON PC (192.168.0.3, directly connected to MIPS box):
  122. ~ $ LANG=C ping 192.168.0.2
  123. PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
  124. 64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=2.08 ms
  125. ^C
  126. --- 192.168.0.2 ping statistics ---
  127. 1 packets transmitted, 1 received, 0% packet loss, time 0ms
  128. rtt min/avg/max/mdev = 2.084/2.084/2.084/0.000 ms
  129.  
  130.  
  131. ~ $ LANG=C wget http://192.168.0.2
  132. --2014-03-21 21:25:58-- http://192.168.0.2/
  133. Connecting to 192.168.0.2:80... failed: Connection timed out.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement