Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. interface=wlan2
  2. dhcp-range=192.168.1.2,192.168.1.30,255.255.255.0,12h
  3. dhcp-option=3,192.168.1.1
  4. dhcp-option=6,192.168.1.1
  5. server=8.8.8.8
  6. log-queries
  7. log-dhcp
  8. listen-address=127.0.0.1
  9.  
  10. interface=wlan2
  11. ssid=wifi
  12. hw_mode=g
  13. channel=11
  14. macaddr_acl=0
  15. ignore_broadcast_ssid=0
  16. auth_algs=1
  17. wpa=2
  18. wpa_passphrase=12345678
  19. wpa_key_mgmt=WPA-PSK
  20. wpa_pairwise=CCMP
  21. wpa_group_rekey=86400
  22. ieee80211n=1
  23. wme_enabled=1
  24.  
  25. airmon-ng check kill
  26. airmon-ng start wlan2
  27. hostapd hostapd.conf
  28. ifconfig wlan2 up 192.168.1.1 netmask 255.255.255.0
  29. route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1
  30. dnsmasq -C dnsmasq.conf -d
  31. iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
  32. iptables --append FORWARD --in-interface wlan2 -j ACCEPT
  33. echo 1 > /proc/sys/net/ipv4/ip_forward
  34.  
  35. eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  36. inet 192.168.88.77 netmask 255.255.255.0 broadcast 255.255.255.0
  37. inet6 XX::XX:XX:XX:XX prefixlen 64 scopeid 0x20<link>
  38. ether XX:XX:XX:XX:XX:XX txqueuelen 1000 (Ethernet)
  39. RX packets 51716 bytes 38469469 (36.6 MiB)
  40. RX errors 0 dropped 19 overruns 0 frame 0
  41. TX packets 54456 bytes 8342685 (7.9 MiB)
  42. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  43.  
  44. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  45. inet 127.0.0.1 netmask 255.0.0.0
  46. inet6 ::1 prefixlen 128 scopeid 0x10<host>
  47. loop txqueuelen 1000 (Local Loopback)
  48. RX packets 7780 bytes 1590754 (1.5 MiB)
  49. RX errors 0 dropped 0 overruns 0 frame 0
  50. TX packets 7780 bytes 1590754 (1.5 MiB)
  51. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  52.  
  53. wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  54. inet6 XX::XX:XX:XX:XX prefixlen 64 scopeid 0x20<link>
  55. ether XX:XX:XX:XX:XX:XX txqueuelen 1000 (Ethernet)
  56. RX packets 0 bytes 0 (0.0 B)
  57. RX errors 0 dropped 0 overruns 0 frame 0
  58. TX packets 15 bytes 1506 (1.4 KiB)
  59. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  60.  
  61. wlan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  62. inet6 XX::XX:XX:XX:XX prefixlen 64 scopeid 0x20<link>
  63. ether XX:XX:XX:XX:XX:XX txqueuelen 1000 (Ethernet)
  64. RX packets 0 bytes 0 (0.0 B)
  65. RX errors 0 dropped 0 overruns 0 frame 0
  66. TX packets 0 bytes 0 (0.0 B)
  67. TX errors 0 dropped 15 overruns 0 carrier 0 collisions 0
  68.  
  69. wlan2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  70. inet6 XX::XX:XX:XX:XX prefixlen 64 scopeid 0x20<link>
  71. ether XX:XX:XX:XX:XX:XX txqueuelen 1000 (Ethernet)
  72. RX packets 0 bytes 0 (0.0 B)
  73. RX errors 0 dropped 0 overruns 0 frame 0
  74. TX packets 0 bytes 0 (0.0 B)
  75. TX errors 0 dropped 15 overruns 0 carrier 0 collisions 0
  76.  
  77. wlan0 IEEE 802.11 ESSID:off/any
  78. Mode:Managed Access Point: Not-Associated Tx-Power=31 dBm
  79. Retry short limit:7 RTS thr:off Fragment thr:off
  80. Encryption key:off
  81. Power Management:on
  82.  
  83. eth0 no wireless extensions.
  84.  
  85. lo no wireless extensions.
  86.  
  87. wlan2 IEEE 802.11 ESSID:off/any
  88. Mode:Managed Access Point: Not-Associated Tx-Power=18 dBm
  89. Retry short limit:7 RTS thr:off Fragment thr:off
  90. Encryption key:off
  91. Power Management:off
  92.  
  93. wlan1 IEEE 802.11 ESSID:off/any
  94. Mode:Managed Access Point: Not-Associated Tx-Power=18 dBm
  95. Retry short limit:7 RTS thr:off Fragment thr:off
  96. Encryption key:off
  97. Power Management:off
  98.  
  99. Kernel IP routing table
  100. Destination Gateway Genmask Flags Metric Ref Use Iface
  101. 0.0.0.0 192.168.88.1 0.0.0.0 UG 0 0 0 eth0
  102. 51.68.180.4 192.168.88.1 255.255.255.255 UGH 0 0 0 eth0
  103. 192.168.88.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement