Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~ # grep hosts /etc/nsswitch.conf
- hosts: files
- ~ # cat /etc/hosts
- 127.0.0.1 localhost
- 192.168.0.2 KEENETIC
- ~ # dig @8.8.8.8 google.com
- /bin/sh: dig: not found
- ~ # wget http://192.168.0.2/
- Connecting to 192.168.0.2 (192.168.0.2:80)
- wget: server returned error: HTTP/1.0 401 Unauthorized
- ~ # ping 173.194.32.162 # google.com IP (pre-resolved on PC)
- PING 173.194.32.162 (173.194.32.162): 56 data bytes
- 64 bytes from 173.194.32.162: seq=0 ttl=52 time=36.252 ms
- ^C
- --- 173.194.32.162 ping statistics ---
- 1 packets transmitted, 1 packets received, 0% packet loss
- round-trip min/avg/max = 36.252/36.252/36.252 ms
- ~ # wget http://173.194.32.162
- Connecting to 173.194.32.162 (173.194.32.162:80)
- wget: can't connect to remote host (173.194.32.162): Connection timed out
- ~ # iptables -t nat -L
- Chain PREROUTING (policy ACCEPT)
- target prot opt source destination
- Chain INPUT (policy ACCEPT)
- target prot opt source destination
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
- Chain POSTROUTING (policy ACCEPT)
- target prot opt source destination
- ~ # iptables -L
- Chain INPUT (policy ACCEPT)
- target prot opt source destination
- Chain FORWARD (policy ACCEPT)
- target prot opt source destination
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
- ~ # lsmod
- Module Size Used by
- xt_mark 672 0
- xt_mac 608 0
- sd_mod 25248 3
- usb_storage 35704 2
- scsi_mod 77026 2 sd_mod,usb_storage
- rndis_host 4649 0
- cdc_ether 3532 1 rndis_host
- usbnet 16255 2 rndis_host,cdc_ether
- mii 3496 1 usbnet
- option 25856 0
- usb_wwan 4380 1 option
- usbserial 18103 2 option,usb_wwan
- ohci_hcd 13472 0
- ehci_hcd 30380 0
- usbcore 106391 9 usb_storage,rndis_host,cdc_ether,usbnet,option,usb_wwan,usbserial,ohci_hcd,ehci_hcd
- usb_common 1160 1 usbcore
- ppp_generic 19698 0
- slhc 4347 1 ppp_generic
- l2tp_netlink 6456 0
- l2tp_core 14558 1 l2tp_netlink
- ipv6 237078 15 l2tp_core
- ipt_MASQUERADE 1088 0
- iptable_nat 1680 0
- iptable_mangle 912 0
- iptable_filter 672 0
- ip_tables 9149 3 iptable_nat,iptable_mangle,iptable_filter
- xt_state 688 0
- xt_tcpudp 1712 0
- xt_TCPMSS 2720 0
- x_tables 10981 9 xt_mark,xt_mac,ipt_MASQUERADE,iptable_mangle,iptable_filter,ip_tables,xt_state,xt_tcpudp,xt_TCPMSS
- nf_nat_ipv4 2558 1 iptable_nat
- nf_nat 9695 3 ipt_MASQUERADE,iptable_nat,nf_nat_ipv4
- nf_conntrack_ipv4 4676 1
- nf_defrag_ipv4 742 1 nf_conntrack_ipv4
- nf_conntrack 44171 6 ipt_MASQUERADE,iptable_nat,xt_state,nf_nat_ipv4,nf_nat,nf_conntrack_ipv4
- ledtrig_heartbeat 1136 0
- leds_gpio 2976 0
- gpio_button_hotplug 6032 0
- fuse 60465 2
- vfat 7776 0
- fat 45247 1 vfat
- ext4 282457 1
- crc16 1015 1 ext4
- mbcache 3949 1 ext4
- jbd2 46892 1 ext4
- crypto_hash 9546 2 ext4,jbd2
- nls_cp1251 3648 0
- nls_utf8 864 0
- nls_base 5022 5 usbcore,vfat,fat,nls_cp1251,nls_utf8
- rt2800soc 2464 0
- rt2800mmio 5865 1 rt2800soc
- rt2800lib 72417 2 rt2800soc,rt2800mmio
- rt2x00soc 1218 1 rt2800soc
- rt2x00mmio 1952 2 rt2800soc,rt2800mmio
- rt2x00lib 34064 5 rt2800soc,rt2800mmio,rt2800lib,rt2x00soc,rt2x00mmio
- mac80211 337582 3 rt2800lib,rt2x00soc,rt2x00lib
- cfg80211 187689 2 rt2x00lib,mac80211
- compat 1273 3 rt2800soc,mac80211,cfg80211
- crc_ccitt 1019 1 rt2800lib
- ON PC (192.168.0.3, directly connected to MIPS box):
- ~ $ LANG=C ping 192.168.0.2
- PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
- 64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=2.08 ms
- ^C
- --- 192.168.0.2 ping statistics ---
- 1 packets transmitted, 1 received, 0% packet loss, time 0ms
- rtt min/avg/max/mdev = 2.084/2.084/2.084/0.000 ms
- ~ $ LANG=C wget http://192.168.0.2
- --2014-03-21 21:25:58-- http://192.168.0.2/
- Connecting to 192.168.0.2:80... failed: Connection timed out.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement