Skip to content

mk34guidetunnelhttpviassh

Hak5Foxtrot edited this page May 11, 2013 · 1 revision

How to tunnel the WifiPineapple's http interface to a relay server for remote access over the internet:

  1. Setup reverse-ssh tunneling. See this episode of hak5 for an explanation: http://hak5.org/episodes/hak5-1112

  2. Once that is working, ssh into your pineapple and run this command (or create a script that does it automatically):

ssh -f -N -R 4266:localhost:1471 root@my-dns-name.com -i /etc/dropbear/id_rsa

Now, open your browser on a machine on the internet and browse to root@my-dns-name.com:4266 This should then be tunneled across both ssh tunnels and 'lands' on the pineapple TCP port 1471 (assuming 2.7.0 software). Note, you may need to also add a NAT statement (port forward) in your router for TCP port 4266 to the relay server.

Clone this wiki locally