Arpspoofing - internet connection error

Hi,

I am working on virtual box trying to do the arpspoofing, I achieved to have target laptop has the mac address of my kali machine as gateway. The problem is that there is no internet connection on the target machine (i got response when i ping the ip address of google, but i can’t open it using the browser)…
i put the ip forwarding to 1 but this has no effect on this issue.
Please advise.

Thank you

Hi Learner,

Can you show us the result of:

  • ifconfig in Kali
  • ipconfig in the target machine
  • Kali network settings in Vbox

Thank you.

1 Like

Hi AJS,
Thank you for your response;
Please see below the requested information:

1- ifconfig:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.4 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::a00:27ff:fe7c:8e8e prefixlen 64 scopeid 0x20
ether 08:00:27:7c:8e:8e txqueuelen 1000 (Ethernet)
RX packets 34 bytes 5000 (4.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28 bytes 2400 (2.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

2- ipconfig:
Ethernet adapter Ethernet:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::c50d:519f:96a4:e108%8
IPv4 Address. . . . . . . . . . . : 10.0.2.15
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :10.0.2.1

3- Kali network setting:
image

Regards

Hi Learner,

Please flush all IP tables rules by iptables -F, then do the arpspoof:

arpspoof -i eth0 -t 10.0.2.1 10.0.2.15

In another terminal window:

arpspoof -i eth0 -t 10.0.2.15 10.0.2.1

Enable IP forwarding again

echo 1 > /proc/sys/net/ipv4/ip_forward

If the above didn’t work, then please try to create a new nat network for both of the virtual machines, and try it again:

Please remove the browsing data on the target browser before running the spoofer.

1 Like

Hi AJS,
Thank you,

It worked one time, but when i tried to do the same using my wlan0 adapter to arp spoof my laptop but it failed, and i can’t do it now again through the eth0 even i flushed all ip tables again and made sure that the IP forwarding is enabled.
Please advice.

thank you

Hi Learner,

Please disable the wired interface eth0, and make sure that only wlan0 is connected and have an IP address. Then do the ARP spoofing again. If you still have issues, then try to forget the target network from Kali and Windows, then connect them again, and see. You can also reboot the router from the router wen interface (you can enter the local IP address which is the 1st IP in the subnet if you want to access it), and see.

Thank you.