Kali/Hotspot: Difference between revisions
From charlesreid1
(→Setup) |
|||
| Line 15: | Line 15: | ||
Tunnel traffic from AP (wlan1) through to internet-connected wifi network (wlan2) | Tunnel traffic from AP (wlan1) through to internet-connected wifi network (wlan2) | ||
=Install Software= | =Procedure= | ||
==Install Software== | |||
Install DNS, DHCP, and AP-hosting software: | Install DNS, DHCP, and AP-hosting software: | ||
| Line 21: | Line 23: | ||
<pre> | <pre> | ||
sudo apt install dnsmasq dhcpcd5 hostapd | sudo apt install dnsmasq dhcpcd5 hostapd | ||
</pre> | |||
==Set up DHCP== | |||
For dhcp we'll use the dhcpcd utility. | |||
===Edit dhcpcd config file=== | |||
Edit <code>/etc/dhcpcd.conf</code> and modify it to contain this: | |||
<pre> | |||
interface wlan1 | |||
static ip_address=192.168.4.1/24 | |||
nohook wpa_supplicant | |||
</pre> | |||
replace wlan1 with whatever interface you want to use. | |||
===Restart dhcpcd service=== | |||
<pre> | |||
sudo service dhcpcd restart | |||
</pre> | </pre> | ||
Revision as of 01:31, 25 November 2019
Turning a Kali Laptop into a Hotspot
Materials
1 laptop
2 wifi cards
Setup
Create a wifi hotspot/access point with 1 wifi card (wlan2)
Connect to an existing wifi network with 2nd wifi card (wlan1)
Tunnel traffic from AP (wlan1) through to internet-connected wifi network (wlan2)
Procedure
Install Software
Install DNS, DHCP, and AP-hosting software:
sudo apt install dnsmasq dhcpcd5 hostapd
Set up DHCP
For dhcp we'll use the dhcpcd utility.
Edit dhcpcd config file
Edit /etc/dhcpcd.conf and modify it to contain this:
interface wlan1
static ip_address=192.168.4.1/24
nohook wpa_supplicant
replace wlan1 with whatever interface you want to use.
Restart dhcpcd service
sudo service dhcpcd restart
Flags