Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wlan1 in monitor mode stellen -> wlan1mon
- ifconfig
- eth0 hat eine IP-Adresse vom Router, 192.168.0.38
- Router IP ist 192.168.0.1
- Subnet 255.255.255.0
- Auszug aus hostapd:
- interface=wlan1mon
- driver=nl80211
- ssid=AP1
- hw_mode=g
- channel=6
- macaddr_acl=0
- ignore_broadcast_ssid=0
- auth_algs=1
- wpa=2
- wpa_passphrase=12345679
- wpa_key_mgmt=WPA-PSK
- wpa_pairwise=CCMP
- wpa_group_rekey=86400
- ieee80211n=1
- wme_enabled=1
- Das funktioniert soweit alles, der AP wird ohne Probleme erstellt.
- interface=wlan1mon
- dnsmasq.conf:
- interface=wlan1mon
- #Range der IP-Vergabe
- dhcp-range=192.168.0.100,192.168.0.200,12h
- #Router IP
- dhcp-option=3,192.168.0.1
- dhcp-option=6,192.168.0.1
- #Google DNS
- server=8.8.8.8
- log-queries
- log-dhcp
- listen-address=127.0.0.1
- Hier bin ich mir nicht sicher ob ich die Einstellung aus meinem Netzwerk eintrage,
- sprich selbe IP Range und dhcp Option die IP des Routers, oder komplett andere
- Werte weil evtl. Konflikte entstehen?
- hostapd /root/.../hostapd.conf um hostapd auszuführen.
- Traffic routen und iptables erstellen:
- wlan1mon soll Verbindung zum Internet von eth0 erhalten.
- root@kali:~# ifconfig wlan1mon 192.168.0.1 netmask 255.255.255.0
- root@kali:~# iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
- root@kali:~# iptables --append FORWARD --in-interface wlan1mon -j ACCEPT
- root@kali:~# echo 1 > /proc/sys/net/ipv4/ip_forward
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement