oblique / create_ap

[NOT MAINTAINED] This script creates a NATed or Bridged WiFi Access Point.
BSD 2-Clause "Simplified" License
4.41k stars 994 forks source link

iptables v1.8.1 (or above) compatibility #373

Open youmych opened 5 years ago

youmych commented 5 years ago

I tried run create_ap in Kali linux:

# lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:    kali-rolling
Codename:   kali-rolling
# ./create_ap -w2 --hostapd-debug 2 wlan0 eth0 xxx 1234567890
WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt
Config dir: /tmp/create_ap.wlan0.conf.xNBM1Nau
PID: 689
Sharing Internet using method: nat
iptables v1.8.1 (nf_tables): Chain 'MASQUERADE' does not exist
Try `iptables -h' or 'iptables --help' for more information.

It seems that the latest iptables use another syntax... or what? For example, only one command:

# iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE
iptables v1.8.1 (nf_tables): Chain 'MASQUERADE' does not exist
Try `iptables -h' or 'iptables --help' for more information.
NuIIDEATH commented 5 years ago

same problem。kali on raspberry-pi 3b+。iptables v1.8.2

saintofinternet commented 5 years ago

even in am getting the same.....how to solve this error?

omgwtfwow commented 5 years ago

Try update-alternatives –config iptables And select the legacy version Worked for me for the time being

cod3r-dev commented 4 years ago

Same problem here with raspberry 2!!