Jump to content

Connect wlan0 to external wifi for internet access?


inzel

Recommended Posts

2 hours ago, Olaf Mufjay said:

You must edit the /etc/config/wireless

Ok great! I didnt see that config file before. Do you have any info on how to configure it for wifi hotspots that are open but you still need some sort of login? Starbucks is a real common one here in the states. 

If there is a guide somewhere that I am missing please point me in thet direction too. Thanks!

Link to comment
Share on other sites

haha thats the exact document Im looking at right now. Can you give me your idea on what is the best way to connect one wifi card to external wifi and broadcast with the other so I can still be the mitm?

Thanks again Olaf. I appreciate the help

Link to comment
Share on other sites

3 minutes ago, Olaf Mufjay said:

Use airbase-ng

Interesting. I havent used airbase-ng as a client before. Seems like I should be able to just connect in ad-hoc mode and that will set me up as a typical client?

Link to comment
Share on other sites

15 minutes ago, Olaf Mufjay said:

if you want to connect as a client connect to the network

I don't know what you want to do exactly

Yeah I think I have caused some confusion here. Let me start over:

I want to use my Tetra as a mitm by connecting one wifi card to external wifi so that the Tetra can use that to forward clients connections to the internet. 

                                                                                               Direction:

<--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

|cafe/home wifi| <----- |wlan0 Tetra| -- |mitm| -- |wlan1 Tetra broadcast for client connections| <----- |Random client connections| 

<--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

So essentially, a client connects to my Tetra via my broadcasted ssid. The tetra performs mitm and sends the traffic to the cafe/home wifi connection just as if it was plugged in thru ethernet or usb. In order to make this happen I need to connect one wifi card to internet and the other I will broadcast to get incoming connections.

I dont know why Im having a hard time explaining this. I hope it makes sense. If not.. I will try again haha

Link to comment
Share on other sites

I would use airbase-ng with a wifi in monitor mode, copy the network and redirect the clients from the original to your fake network. connect to the original network with another wifi (do not forward it) to establish an internet connection

Link to comment
Share on other sites

Ok gotcha. I will just have to take my pineapple to a location that has open wifi which logs in thru a browser to connect. 
 

i think I should be able to config the wireless file to the ap with no wpa/wpa2/etc. and hopefully my browser will pop up if I need to login with email or whatever like Starbucks does

Link to comment
Share on other sites

22 minutes ago, Olaf Mufjay said:

You can use the webinterface connect to a network with wlan1 and you have a example in the wireless config that you can overwrithe 🙂

Thats exactly what Im thinking :)

Link to comment
Share on other sites

Wow... I sure made things way harder than they needed to be. Ican easily be a mitm if I just connect wlan1 to wifi and still broadcast my own ssid for clients. Dont need to use wlan0 at all. Only downside is I cant use PineAP but thats fine with me for this use case.

As a matter of fact I am writing this update by going thru my pineapple 😉

Link to comment
Share on other sites

I just reset my Tetra and rewrote the wireless configuration and integrated the router into Wlan0-1. I removed the open ssid and use a connection to my router.

I hope it is the right way ... If you know a better way just write me :)

My wireless configuration:

Quote

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path 'platform/ar934x_wmac'
        option htmode 'HT20'
        option country 'DE'

config wifi-iface
        option device 'radio0'
        option ifname 'wlan0'
        option network 'lan'
        option mode 'ap'
        option encryption 'psk2+ccmp'
        option ssid 'WifiPineappleSSID'
        option key 'WifiPineappleKEY'
        option disabled '0'
        option hidden '0'

config wifi-iface
        option device 'radio0'
        option ifname 'wlan0-1'
        option mode 'sta'
        option network 'wwan'
        option ssid 'RouterSSID'
        option encryption 'psk2+ccmp'
        option key 'RouterKey'

config wifi-device 'radio1'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path 'pci0000:00/0000:00:00.0'
        option htmode 'HT20'
        option country 'DE'

config wifi-iface
        option device 'radio1'
        option ifname 'wlan1'
        option network 'lan'
        option mode 'sta'
        option ssid 'Pineapple_30C0'
        option encryption 'none'

wlan0     Link encap:Ethernet  HWaddr 02:13:37:A6:30:BF  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2193 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2193 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:575788 (562.2 KiB)  TX bytes:1063067 (1.0 MiB)

wlan0-1   Link encap:Ethernet  HWaddr 00:13:37:A6:30:BF  
          inet addr:192.168.2.109  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6655 errors:0 dropped:594 overruns:0 frame:0
          TX packets:3900 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2563626 (2.4 MiB)  TX bytes:685461 (669.3 KiB)

wlan1     Link encap:Ethernet  HWaddr 00:13:37:A6:30:C0  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

Link to comment
Share on other sites

Yeah your way should work fine. I got mine working great but did run in to an issue when connecting wlan1 to wifi that requires a web browser login. When a client connects to my ssid and routed to the wlan1 wifi they get redirected to a page that the tetra doesnt have an IP for. This causes it to break. I will be headed back tomorrow to try again and get a pcap to see if I can add a hosts entry to get around that.

 

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...