Jump to content
Hak5 Forums

iad

Members
  • Content count

    5
  • Joined

  • Last visited

  • Days Won

    1

About iad

  • Rank
    Newbie
  1. I have one more post for today, so let's sum up my spamming(again sorry for it, i just got too excited with getting over OS's stupid iptables clone). 1). Enabled sharing internet to my device (Ax88x72A) 2). Changed IPs as shown in the first message of this topic, but put OS's en9 interface MANUALLY a 192.168.2.1 address 3). Changed Pineapples gateway to 192.168.2.1 4). Executed this pfctl rules in terminal: # enable IP forwarding $ sudo sysctl -w net.inet.ip.forwarding=1 # enable PF firewall $ sudo pfctl -e # Add NAT rule after en9 is up (Pineapple already plugged and started) $ echo "nat on en0 from en9:network to any -> (en0)" | sudo pfctl -f - I am sure, that you don't need to change the subnet, as you just nat everything from en9 interface to en0 (wifi interface). Just make sure that your usb interface (en9 in my case) and pinapple gateway are the same. So a packet from pineapple goes to gateway (ex. 192.168.2.1), then it is being nat'ed by OS from en9 interface to en0 interface. Cheers.
  2. whops, there seems to be a copy-paste bug (change en5 to en9) sorry for spamming
  3. Okay guys, double check me please, but this seems to work, at least i can ping from pineapple: (inspired by https://github.com/inversepath/usbarmory/wiki/Host-communication, actually just copy-pasted) # enable IP forwarding $ sudo sysctl -w net.inet.ip.forwarding=1 # enable PF firewall $ sudo pfctl -e # Option 1: add NAT rule after en9 is up (Pineapple already plugged and started) $ echo "nat on en0 from en5:network to any -> (en0)" | sudo pfctl -f - # Option 2: add NAT rule before Pineapple is plugged, requires specifying its network $ echo "nat on en0 from 10.0.0.0/8 to any -> (en0)" | sudo pfctl -f -
  4. Or i should set this 192.168.2.1 on en9 interface of pineapple?
  5. Hey guys, I have changed subnet and address to 192.168.2.0/24 on pineapple. Allowed internet sharing to Ax88x72A Manually set address on bridge0 to 192.168.2.1 netmask 255.255.255.0 But pineapple doesn't see its gateway (192.168.2.1), what am i doing wrong ? :) Thanks
×