Jump to content

Item Just Arrived, No Dhcp On Wan/lan


xorred

Recommended Posts

My latest pineapple just arrived, but there's no DHCP on the LAN interface - only on the WiFI (and of course, I can't connect to the web interface from the wifi interface).

What would you recommend? I already tried resetting / rebooting to no avail.

Link to comment
Share on other sites

My latest pineapple just arrived, but there's no DHCP on the LAN interface - only on the WiFI (and of course, I can't connect to the web interface from the wifi interface).

What would you recommend? I already tried resetting / rebooting to no avail.

1 normally you can connect to UI through wifi 172.16.42.1/pineapple/

2 use the POE ethernet port, the wan/lan is not enabled yet.

All this is in the short guide supplied by hak5

It is a mark 4?

Link to comment
Share on other sites

This should allow you to plug into an existing LAN and share the internet connection with wireless clients. Use the WAN port for this as the LAN/POE port is designated for the backtrack bridge. From my tests dhcp client is enabled on eth1 which is why this script will work. This is intended to execute anytime the if up flag is done on eth1

-------------BEGIN SCRIPT---------------

#!/bin/bash

IP=$(/sbin/ifconfig eth1| grep 'inet addr:'| cut -d: -f2|awk '{print $1}')

MASK=${IP%.*}.0

echo '1' > /proc/sys/net/ipv4/ip_forward

iptables -I FORWARD -s $MASK/255.255.255.0 -j DROP

iptables -A FORWARD -i eth1 -o wlan0 -s $MASK/24 -m state --state NEW -j ACCEPT

iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A POSTROUTING -t nat -j MASQUERADE

-------------END SCRIPT---------------

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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