Jump to content

Internet connection sharing not working Tetra + Kali + VMWare + MacOS


AndyMan

Recommended Posts

Great after party at ceasar's at defcon 26 ... thanks for the invite and free beer-vages!!

Bought the tetra amoungst other goodies from the hak5 booth and now trying to get the TETRA working.

This is my first experience with the pineapple express and I am reasonably technically savy with LINUX, networking etc - so please excuse any technical inaccuracy's or ignorance I may have.

I've searched the forums (this one and others), internet searches and everywhere I can for the past days.

PROBLEM: Internet connection sharing does not seem to work with my setup

SETUP: TETRA + Kali + VMWare Fusion + MacOS High Sierra + MBP 2016 + USB Y cable connected to eth on Tetra using both USBs to my MBP

(all above software and firmware at latest versions as of writing this message)

  • In my KALI VM (NIC in bridge mode), I am simultaneously able to connect to both the internet using Firefox and the admin console of the TETRA.
  • I did this by creating the 2nd wired NIC with a static 172.16.42.xx /24 IP as noted in other forum entries
  • Followed the video instructions to update firmware
  • Download and ran (several times) the wp6 script tried both the Guided and Manual

What I seems to eluded me is getting the Tetra to connect to the internet and download modules and other info. Bridging the internet between my VM's internet NIC (eth0) and the NIC (eth1) connected to the Tetra.

The Tetra's Br0 NIC is set to 172.16.42.1 as I believe it needs to.

What am I missing?

I even tried testing (albeit briefly):

  • My Window 7 VM with the same internet connectivity results as described above. (Much rather stay with Kali and avoid Win)
  • Connecting directly into my MBP but the TETRA NIC was not recognized. (I even did the reboot noted in the forums with no success)

Ideally, I would rather use the KALI VM.

Alternatively I'd be fine if I could use my MBP. I'd rather avoid having to go purchase a separate laptop and then install LINUX for this to work.

 

Link to comment
Share on other sites

On 8/26/2018 at 5:33 AM, Mr-Protocol said:

If you setup internet connection sharing on Kali, be sure to disable it's network manager. It will fight with Internet connection sharing. 

https://github.com/hak5darren/wp6/blob/master/wp6.sh

Unfortunately, disabling the network manager did not work for me. Please see below and let me know if I missed anything. Any assistance is appreciated.

Network devices:

  • eth0 <-- 192.168.0.x (internet)
  • eth1 <-- 172.16.42.42 (wifi pineapple Tetra)

 

Here are the steps I followed:

1) disabled the network manager:

# sudo systemctl stop NetworkManager.service

(following step is optional but I did it anyway)

# sudo systemctl disable NetworkManager.service

 

2) WP6 setup #1

Had to run this to add Tetra's eth1 to Kali

# ./wp6.sh

--> [G] uided setup

During guided setup, Tetra's NIC (eth1) was added

 

3) eth1 config

ifconfig did not display eth1, so I had to bring it up

# ifconfig eth1 up

# ifconfig eth1 172.16.42.42
# ifconfig eth1 netmask 255.255.255.0

# ifconfig now displays both eth0 and eth1

 

4) WP6 setup #2

Run this to setup the routes

--> [M] anual Setup

NOTE: when I run Manual setup, it seems a bit different the Hak5 video in Jtyle6's post. Specifically, it does not show the status at the end. Instead, below is what I saw:

    Select WiFi Pineapple Interface:
    [0]    eth0    192.168.0.16/24
    [1]    eth1    172.16.42.42/24
    > 1

    Select Internet Interface:
    [0]    eth0    192.168.0.16/24
    [1]    eth1    172.16.42.42/24
    > 0

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0
172.16.42.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0

    Specify Default Gateway IP Address: 192.168.0.1

    Settings saved.

    Saved Settings: Share Internet connection from eth0
    to WiFi Pineapple at eth1 through default gateway 192.168.0.1

 

5) Login to Tetra

When I try to load Bulletins, I get the following message:

"Error connecting to WiFiPineapple.com. Please check your connection."

FYI, TETRA's networking tab shows the following routes:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         172.16.42.42    0.0.0.0         UG    0      0        0 br-lan
172.16.42.0     *               255.255.255.0   U     0      0        0 br-lan

 

Is there anything obvious I am doing wrong?

Any other suggestions to get this working?

Link to comment
Share on other sites

FIGURED IT OUT!

It was so simple, I feel embarrassed to admit my error. But I will admit so that others can learn from my mistake.

It was quite simple as it works with Kali's built-in network manager - no CLI commands required.

Steps:

1. In network manager, create a second NIC. In my case, I created a:

  • wired NIC called 'TETRA"
  • with static IP of 172.16.42.2
  • with net mask of 255.255.255.0
  • Then scroll down and click the checkbox with "Use this connection only for resources on this network"

 

2. Run WP6 as follows

(I am sure some can do this more efficient that I did but I ran WP6 twice to get this working)

  • WP6 #1 to detect the Pineapple
  • Ran [G] uided with the following settings:

    WiFi Pineapple detected. Please disconnect the WiFi Pineapple from
    this computer and press any key to continue with guided setup.
    
    Step 1 of 3: Select Default Gateway
    Default gateway reported as 192.168.0.1
    Use the above reported default gateway?             [Y/n]?

    Step 2 of 3: Select Internet Interface
    Internet interface reported as eth0
    Use the above reported Internet interface?          [Y/n]?

    Step 3 of 3: Select WiFi Pineapple Interface
    Please connect the WiFi Pineapple to this computer.
    ...................................................
    .....[Checking]
    Detected WiFi Pineapple on interface eth1
    Use the above detected WiFi Pineapple interface?    [Y/n]?

    Settings saved.

    Saved Settings: Share Internet connection from eth0
    to WiFi Pineapple at eth1 through default gateway 192.168.0.1

  • Without quitting WP6 (although quitting probably would not matter)
  • WP6 #2 to define the network routes
  • Ran [M] anual with the following settings:

    Select WiFi Pineapple Interface:
    [0]    eth0    192.168.0.16/24
    [1]    eth1    172.16.42.2/24
    > 1

    Select Internet Interface:
    [0]    eth0    192.168.0.16/24
    [1]    eth1    172.16.42.2/24
    > 0

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0
172.16.42.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0

    Specify Default Gateway IP Address: 192.168.0.1

  • WP6 #3
  • Okay here is my idiot moment, drum rolls please...
  • Ran [C] onnect using saved settings

Yah, dumb, eh? I can't believe I missed this one. I was trouble-shooting for days and missed this simple step. Obvious, now that I noticed it. Actually, I cannot take credit for this. I saw this solution on a forum somewhere and then decided to try it.

 

3. Final step

  • login to pineapple
  • go to networking and set a default route
  • in my case: I entered 172.16.42.2 for br-lan and then clicked "update route"

Voila!!

 

some trouble-shooting side notes

  • for some reason I lost connection to the Wifi Pineapple if in network monitor I selected the bridged NIC that I named "TETRA" instead of the internet NIC. Not sure why but it happened.
  • also, I found occasionally I would lose access to the TETRA. Simply by re-running the WP6 script and the selecting "[C] onnect using saved settings" -- fixed the issue.

Okay, I hope that helps!

 

Sorry about the verbosity of this post BUT I have read so many forum posts and found many very lacking in key details. Hopefully i have not missed anything in my directions.

 

NOW it is time to play! -- and also ask you all even more questions as I learn about my new test tool.

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...