Advertisement
Guest User

Untitled

a guest
Apr 15th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. root@raspberrypi:/home/pi# ifconfig
  2. eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  3. inet 11.0.0.1 netmask 255.255.255.0 broadcast 11.0.0.255
  4. inet6 fe80::ba27:ebff:fe59:1d86 prefixlen 64 scopeid 0x20<link>
  5. ether b8:27:eb:59:1d:86 txqueuelen 1000 (Ethernet)
  6. RX packets 2206 bytes 156484 (152.8 KiB)
  7. RX errors 0 dropped 0 overruns 0 frame 0
  8. TX packets 1362 bytes 137933 (134.7 KiB)
  9. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  10.  
  11. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  12. inet 127.0.0.1 netmask 255.0.0.0
  13. inet6 ::1 prefixlen 128 scopeid 0x10<host>
  14. loop txqueuelen 1 (Local Loopback)
  15. RX packets 272 bytes 21194 (20.6 KiB)
  16. RX errors 0 dropped 0 overruns 0 frame 0
  17. TX packets 272 bytes 21194 (20.6 KiB)
  18. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  19.  
  20. wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  21. inet 192.168.1.135 netmask 255.255.255.0 broadcast 192.168.1.255
  22. inet6 fe80::ba27:ebff:fe0c:48d3 prefixlen 64 scopeid 0x20<link>
  23. inet6 2602:306:cd0b:44b0:ba27:ebff:fe0c:48d3 prefixlen 64 scopeid 0x0<global>
  24. ether b8:27:eb:0c:48:d3 txqueuelen 1000 (Ethernet)
  25. RX packets 1076 bytes 110201 (107.6 KiB)
  26. RX errors 0 dropped 0 overruns 0 frame 0
  27. TX packets 920 bytes 179937 (175.7 KiB)
  28. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  29.  
  30. root@raspberrypi:/home/pi# iptables -L
  31. Chain INPUT (policy ACCEPT)
  32. target prot opt source destination
  33.  
  34. Chain FORWARD (policy ACCEPT)
  35. target prot opt source destination
  36.  
  37. Chain OUTPUT (policy ACCEPT)
  38. target prot opt source destination
  39. root@raspberrypi:/home/pi#
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. root@raspberrypi:/home/pi# iptables -L -t nat
  50. Chain PREROUTING (policy ACCEPT)
  51. target prot opt source destination
  52.  
  53. Chain INPUT (policy ACCEPT)
  54. target prot opt source destination
  55.  
  56. Chain OUTPUT (policy ACCEPT)
  57. target prot opt source destination
  58.  
  59. Chain POSTROUTING (policy ACCEPT)
  60. target prot opt source destination
  61. MASQUERADE all -- anywhere anywhere
  62.  
  63.  
  64.  
  65. root@raspberrypi:/home/pi# sysctl -a | grep forw
  66. net.ipv4.conf.all.forwarding = 1
  67. net.ipv4.conf.all.mc_forwarding = 0
  68. net.ipv4.conf.default.forwarding = 1
  69. net.ipv4.conf.default.mc_forwarding = 0
  70. net.ipv4.conf.eth0.forwarding = 1
  71. net.ipv4.conf.eth0.mc_forwarding = 0
  72. net.ipv4.conf.lo.forwarding = 1
  73. net.ipv4.conf.lo.mc_forwarding = 0
  74. net.ipv4.conf.wlan0.forwarding = 1
  75. net.ipv4.conf.wlan0.mc_forwarding = 0
  76. net.ipv4.ip_forward = 1
  77. net.ipv4.ip_forward_use_pmtu = 0
  78. sysctl: net.ipv6.conf.all.forwarding = 0
  79. net.ipv6.conf.all.mc_forwarding = 0
  80. reading key "net.ipv6.conf.all.stable_secret"
  81. sysctl: net.ipv6.conf.default.forwarding = 0
  82. net.ipv6.conf.default.mc_forwarding = 0
  83. reading key "net.ipv6.conf.default.stable_secret"
  84. sysctl: net.ipv6.conf.eth0.forwarding = 0
  85. net.ipv6.conf.eth0.mc_forwarding = 0
  86. reading key "net.ipv6.conf.eth0.stable_secret"
  87. sysctl: reading key "net.ipv6.conf.lo.stable_secret"
  88. net.ipv6.conf.lo.forwarding = 0
  89. net.ipv6.conf.lo.mc_forwarding = 0
  90. sysctl: reading key "net.ipv6.conf.wlan0.stable_secret"
  91. net.ipv6.conf.wlan0.forwarding = 0
  92. net.ipv6.conf.wlan0.mc_forwarding = 0
  93.  
  94.  
  95. root@raspberrypi:/home/pi# netstat -rn
  96. Kernel IP routing table
  97. Destination Gateway Genmask Flags MSS Window irtt Iface
  98. 0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
  99. 11.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
  100. 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
  101. root@raspberrypi:/home/pi#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement