Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No internet on the AP (noproxy + captiveflask) #63

Closed
harames2001 opened this issue Jul 11, 2020 · 0 comments
Closed

No internet on the AP (noproxy + captiveflask) #63

harames2001 opened this issue Jul 11, 2020 · 0 comments
Labels
invalid This doesn't seem right or not following the issue template

Comments

@harames2001
Copy link

harames2001 commented Jul 11, 2020

I have no internet on the Client. (443, see pic.)

  • DNS is working (checked)
  • Routing to captive portal is working
  • IPTables (i could not find any issue)
  • DHCP is using another netmask as my ethernet adapter( Could there be any problem with eth=10.152.152.3 netmask 255.255.192.0 ?)
  • net.ipv4.ip_forward=1 in /etc/sysctl.conf +reboot.
  • Are there any other settings i may miss?

CannotConnect_to_Internet_1

CannotConnect_to_Internet_2

root@kali:~# sudo iptables -t nat -L 
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  anywhere             anywhere           

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination  
root@kali:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.152.152.3  netmask 255.255.192.0  broadcast 10.152.191.255
        inet6 fe80::6d71:6f13:b33b:725d  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:e2:d1:04  txqueuelen 1000  (Ethernet)
        RX packets 19433  bytes 19757046 (18.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11866  bytes 1563472 (1.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 64  bytes 4164 (4.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 64  bytes 4164 (4.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1400
        inet 172.16.0.1  netmask 255.240.0.0  broadcast 172.31.255.255
        inet6 fe80::bef6:85ff:fe03:365b  prefixlen 64  scopeid 0x20<link>
        ether bc:f6:85:03:36:5b  txqueuelen 1000  (Ethernet)
        RX packets 2208  bytes 200509 (195.8 KiB)
        RX errors 0  dropped 10  overruns 0  frame 0
        TX packets 2135  bytes 1083366 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
config ini
[Class-A-Address]
broadcast=10.0.0.255
leasetimeDef=600
leasetimeMax=7200
netmask=255.0.0.0
range=10.0.0.20/10.0.0.50
router=10.0.0.1
subnet=10.0.0.0

[Class-B-Address]
broadcast=172.16.0.255
leasetimeDef=600
leasetimeMax=7200
netmask=255.240.0.0
range=172.16.0.100/172.16.0.150
router=172.16.0.1
subnet=172.16.0.0

[Class-C-Address]
broadcast=192.168.0.255
leasetimeDef=600
leasetimeMax=7200
netmask=255.255.255.0
range=192.168.0.100/192.168.0.150
router=192.168.0.1
subnet=192.168.0.0

[accesspoint]
bssid=BC:F6:85:03:36:5B
channel=1
checkConnectionWifi=true
check_support_ap_mode=true
current_session=c46ab112-c385-11ea-a337-6d80e61b921b
enable_security=false
interface=wlan0
path_pydns_server_zones=core/config/app/dns_hosts.ini
persistNetwokManager=true
pydhcp_server=true
pydns_server=true
ssid=WiFi Pumpkin 3
status_ap=true
timer_update_info=2000
wpa_algorithms=TKIP
wpa_sharedkey=1234567890
wpa_type=2

[ap_mode]
docker=false
karma=false
mana=false
static=true

[colors_log]
captiveflask=light-cyan, #000000
generic=light-white, #000000
pumpkinproxy=light-red, #000000
pydhcp_server=light-magenta, #000000
pydns_server=light-blue, #000000
responder3=light-green, #000000
sniffkin3=light-yellow, #000000

[dhcpdefault]
broadcast=172.16.0.255
leasetimeDef=600
leasetimeMax=7200
netmask=255.240.0.0
range=172.16.0.100/172.16.0.150
router=172.16.0.1
subnet=172.16.0.0

[docker]
docker_hostapd_path=/usr/sbin/hostapd

[iptables]
iptables_0_masq=iptables -w -P FORWARD ACCEPT
iptables_A_masq=iptables -w -t nat -A POSTROUTING --out-interface $inet -j MASQUERADE
iptables_B_forward="iptables -w -A FORWARD -i $inet --out-interface $wlan -j ACCEPT -m state --state RELATED,ESTABLISHED"
iptables_C_foracept=iptables -w -A FORWARD -i $wlan --out-interface $inet -j ACCEPT
iptables_D_accept=iptables -w -A OUTPUT --out-interface $inet -j ACCEPT
iptables_E_accpet=iptables -w -A INPUT --in-interface $wlan -j ACCEPT

[karma]
karma_hostapd_path=./plugins/bin/hostapd-karma/hostapd

[mana]
enable_mana=true
mana_hostapd_path=./plugins/bin/hostapd-mana/hostapd
mana_loud=false
mana_macl=false

[mitm_modules]
responder3=false
responder3_config=/.config/wifipumpkin3/config/plugins/responder3/examples/config.py
sniffkin3=false

[proxy_plugins]
captiveflask=false
noproxy=true
pumpkinproxy=false
pumpkinproxy_config_port=8080

[settings]
log_colorize=true
log_serialize=true

[static]
static_hostapd_path=/usr/sbin/hostapd

Thx for your Help!

Great project!

@mh4x0f mh4x0f added the invalid This doesn't seem right or not following the issue template label Jul 17, 2020
@mh4x0f mh4x0f closed this as completed Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right or not following the issue template
Projects
None yet
Development

No branches or pull requests

2 participants