Jump to content

Phyrne

Active Members
  • Posts

    13
  • Joined

  • Last visited

Posts posted by Phyrne

  1. I hope this isn't the case but we did accidentally have a unit go out recently that wasn't flashed with Jasager properly -- it was still running the stock openwrt from the factory. Assign an IP of 192.168.2.2 and try pinging 192.168.2.1. If it responds, then it just needs some manual flash loving: telnet to 192.168.2.1, as a root password with "passwd", then scp over the latest upgrade.bin to /tmp "scp upgrade.bin root@192.168.2.1:/tmp/" and perform the upgrade on the pineapple with "sysupgrade -v -n /tmp/upgrade.bin".

    I really hope that's not the case but if it is, 1) the above will get you situated and 2) please contact me directly at darren at hak5 dot org.

    Hey Darren, thanks for your response. I don't think that's going to be it, I've had my Pineapple for quite some time now (a fair few months) and I'm just getting round to FINALLY playing with it... well at least trying to! I really can't see what the problem is :(

  2. If you are manually changing the addresses and "something" is changing it to a 192. or something else. There is probably a network manager running that is changing it back.

    Not sure if I understand what you mean. The only 192 address I'm using is the IP on my wlan0 interface from my router's DHCP, which is fine. There is no network manager changing anything. netcfg works on a profile basis, I strictly tell it what to do, the only thing I have it doing is connecting to my router's wifi on a static IP. netcfg doesn't mess with the interfaces unless I ask it to :)

  3. Try disabling the network manager.

    Thanks for the swift response.

    I'm using netcfg, everything's done manually, so I don't think that'll be interfering.

    EDIT: Just took a look at the tail of dmesg, it looks like the USB dongle is working fine (I have confirmed this previously, it acts as a standard ethernet port would)

    [ 4073.427765] usb 1-1.3: new high-speed USB device number 9 using ehci_hcd
    [ 4073.878903] asix 1-1.3:1.0: eth0: register 'asix' at usb-0000:00:1a.7-1.3, ASIX AX88772 USB 2.0 Ethernet, b8:8d:12:56:b0:0b
    [ 4073.879011] usbcore: registered new interface driver asix
    [ 4139.789336] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 4327.492209] ip_tables: (C) 2000-2006 Netfilter Core Team

  4. Hoping someone can help me here...

    I'm having some trouble communicating with my Mark IV over ethernet.

    Here's the system & setup details:

    MacBook Air running x86_64 Arch Linux (3.5.3-2 kernel with CK patchset)

    Interface connected to my home router: wlan0

    Interface connected to the Pineapple: eth0 (this is a usb to ethernet dongle, going into the PoE port on the Pineapple)

    After powering on the Pineapple, leaving it for a minute or two to settle (WPS button stopped flashing n whatnot) I then connect it to my MacBook as described above.

    Running ifconfig only shows lo and wlan0, so, I manually bring up eth0 with sudo ifconfig eth0 up.

    I then run the wp4.sh script as root, however, ping requests to 172.16.42.1 fail and the WebUI is inaccessible.

    I manually assign 172.16.42.42 to my eth0 with sudo ifconfig eth0 172.16.42.42, then rerun the script, but it's the same thing :(

    Here's ifconfig's output after all this:

    eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
            inet 172.16.42.42  netmask 255.255.255.0  broadcast 172.16.42.255
            ether b8:8d:12:56:b0:0b  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 0  bytes 0 (0.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 0  (Local Loopback)
            RX packets 22403  bytes 1496944 (1.4 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 22403  bytes 1496944 (1.4 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.0.110  netmask 255.255.255.0  broadcast 192.168.0.255
            inet6 fe80::1240:f3ff:fe89:c2e2  prefixlen 64  scopeid 0x20<link>
            ether 10:40:f3:89:c2:e2  txqueuelen 1000  (Ethernet)
            RX packets 191815  bytes 256945237 (245.0 MiB)
            RX errors 0  dropped 0  overruns 0  frame 176769
            TX packets 129362  bytes 14277439 (13.6 MiB)
            TX errors 10  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 17  

    I really hope someone can help out! Thanks in advance :)

  5. Have you simply tried using dd?

    dd if=/path/to/install/media/(iso) of=/dev/sdb1 bs=1M

    You'll need to run as root (or with sudo), where '/dev/sdb1' is, replace with your device's ID.

    I've found it can be a bit hit and miss with the definition of partitions, so, if you try with something like '/dev/sdb1' and it doesn't work, try just with '/dev/sdb' (without the '1' pointing to the primary partition)

    **Keep in mind** using dd will write over ANY device it's pointed to, even the drive you're actually running the system on, so be sure to get your USB's device ID right. A simple way of checking is by running something like GParted or Gnome's Disk Utility, if you have that kind of software on your system)

  6. Ok, I'll give it a try, just to test my (non-existing) skill of writing guides :)

    This is excellent! I've had my Pineapple quite some time, I haven't even used it yet (too much work and no play), but thanks to your response, I'm putting some time aside this evening to play around.

    Very clear and concise :) It's greatly appreciated!

  7. Greetings! :)

    I can't seem to get my MkIV working with my MacBook Air running Arch Linux.

    Here's the situation: I have my Pineapple connected via ethernet (to eth0) from the PoE port, I wait a while after the WPS button stops flashing before trying anything.

    Here's the output of 'ip addr' before I run the script:

    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
        inet6 ::1/128 scope host 
           valid_lft forever preferred_lft forever
    2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
        link/ether 10:40:f3:89:c2:e2 brd ff:ff:ff:ff:ff:ff
        inet 192.168.0.110/24 brd 192.168.0.255 scope global wlan0
        inet6 fe80::1240:f3ff:fe89:c2e2/64 scope link 
           valid_lft forever preferred_lft forever
    3: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
        link/ether b8:8d:12:56:b0:0b brd ff:ff:ff:ff:ff:ff

    I run the wp4 script as root with all the default settings as these should suffice for my network:

         _ .           ___          \||/   Internet: 192.168.0.1 - wlan0
       (  _ )_  <-->  [___]  <-->  ,<><>,  Computer: 172.16.42.42
     (_  _(_ ,)       \___\        '<><>' Pineapple: 172.16.42.0/24 - eth0
    
    Browse to http://172.16.42.1/pineapple  --  Happy Hacking!

    Attempting to access the web gui at 172.16.42.1 shows that it is unreachable, so, here's ip addr after the script:

    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
        inet6 ::1/128 scope host 
           valid_lft forever preferred_lft forever
    2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
        link/ether 10:40:f3:89:c2:e2 brd ff:ff:ff:ff:ff:ff
        inet 192.168.0.110/24 brd 192.168.0.255 scope global wlan0
        inet6 fe80::1240:f3ff:fe89:c2e2/64 scope link 
           valid_lft forever preferred_lft forever
    3: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
        link/ether b8:8d:12:56:b0:0b brd ff:ff:ff:ff:ff:ff
        inet 172.16.42.42/24 brd 172.16.42.255 scope global eth0
    

    And just in case, here's uname -a's output:

    Linux MacBook 3.4.4-2-ARCH #1 SMP PREEMPT Sun Jun 24 18:59:47 CEST 2012 x86_64 GNU/Linux

    Does anybody have any idea as to what I'm doing wrong?

    Any help is greatly appreciated with this! Thanks in advance :)

  8. Thanks for the replies guys! The help is greatly appreciated :)

    I am indeed plugging it onto the PoE port. Unfortunately I won't have a chance to test another PC with an actual ethernet port for a while.

    I disabled the proprietary driver for my wireless card as that sets the interfaces to how they would usually appear. So now the link between my Pineapple and MacBook is eth0 and the wifi is wlan0 :) (used to be eth1)

    I'm still getting the same issue unfortunately, I do make sure to wait a while after the WPS button has stopped flashing before trying any of this.

    Here's the steps I take below (including my ifconfig):

    First I set the ip on eth0 manually:

    ┌─[phyrne@MacBookAir][Documents]
    └─→ » sudo ifconfig eth0 172.16.42.42

    Here's my ifconfig:

    ┌─[phyrne@MacBookAir][Documents]
    └─→ » ifconfig 
    eth0      Link encap:Ethernet  HWaddr b8:8d:12:56:b0:0b  
              inet addr:172.16.42.42  Bcast:172.16.42.255  Mask:255.255.255.0
              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)
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:365 errors:0 dropped:0 overruns:0 frame:0
              TX packets:365 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:28784 (28.7 KB)  TX bytes:28784 (28.7 KB)
    
    wlan0     Link encap:Ethernet  HWaddr 10:40:f3:89:c2:e2  
              inet addr:192.168.0.110  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::1240:f3ff:fe89:c2e2/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:267 errors:0 dropped:0 overruns:0 frame:0
              TX packets:418 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:30045 (30.0 KB)  TX bytes:58388 (58.3 KB)
    

    Then I run the script and leave all the options as default, here's the results:

    ┌─[phyrne@MacBookAir][Documents]
    └─→ » sudo ./wp4.sh 
    Input Pineapple Netmask [or ENTER for 255.255.255.0]: 
    Input Pineapple Network [or ENTER for 172.16.42.0/24]: 
    Input Interface between PC and Pineapple [or ENTER for eth0]: 
    Input Interface between PC and Internet [or ENTER for wlan0]: 
    Input Internet Gateway [or ENTER for 192.168.0.1]: 
    Input IP Address of Host PC [or ENTER for 172.16.42.42]: 
    Input IP Address of Pineapple [or ENTER for 172.16.42.1]: 
    Pineapple connected to: eth0
    Internet connection from: wlan0
    Internet connection gateway: 192.168.0.1
    Host Computer IP: 172.16.42.42
    Pineapple IP: 172.16.42.1
    Network: 172.16.42.0/24
    Netmask: 255.255.255.0
    IP Forwarding enabled. /proc/sys/net/ipv4/ip_forward set to 1
    iptables chains and rules cleared
    IP Forwarding Enabled
    Default route removed
    Pineapple Default Gateway Configured
    PING 172.16.42.1 (172.16.42.1) 56(84) bytes of data.
    From 172.16.42.42 icmp_seq=1 Destination Host Unreachable
    From 172.16.42.42 icmp_seq=2 Destination Host Unreachable
    From 172.16.42.42 icmp_seq=3 Destination Host Unreachable
    
    --- 172.16.42.1 ping statistics ---
    3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2017ms
    pipe 3
    
    Browse to http://172.16.42.1/pineapple  --  Happy Hacking!

    Perhaps it's something really simple I'm missing?

  9. Thanks for the replies :)

    barry99705, how are the settings supposed to be configured?

    NotTheFed, are you running OS X?

    I've enabled the proprietary drivers for my wireless card, so my wifi interface is now eth1, the wired connection to the Pineapple is eth0.

    Could someone please direct me to getting the setup I desire as described above?

    Really appreciate the help! :D

  10. Hello esteemed members of the Hak5 forums :)

    I've just got my Pineapple Mk IV and I'm having some trouble getting started, I feel a bit silly really...

    So let me start by explaining what I'm working with here:

    System: MacBook Air 4,1 (I like Apple's hardware okay...)

    OS: elementary Luna, dev builds (Ubuntu 12.04 just transformed with a few different packages)

    Pineapple: Mk IV (with whichever firmware it comes with I suppose :P)

    I'll go ahead and explain my system's network interfaces. I use the laptop's wireless, which is, as expected, wlan0.

    The MacBook Air doesn't actually have an ethernet port, however, it has a ethernet to USB adapter (which when being used is seen as eth0) that works flawlessly.

    So here's the deal, I can connect to my Pineapple by way of the pineapple's wifi, however, I wish to be able to communicate with it via ethernet, but maintain my wifi connection.

    I've ran the quick start wp4.sh script, however the ping test always fails at the end :(

    I feel unbelievably nooby asking for help with this, but oh well :P

    Any help on this is greatly appreciated, thanks in advance!

×
×
  • Create New...