xorred Posted April 17, 2012 Share Posted April 17, 2012 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. Quote Link to comment Share on other sites More sharing options...
PineDominator Posted April 17, 2012 Share Posted April 17, 2012 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? Quote Link to comment Share on other sites More sharing options...
Vulture Posted April 17, 2012 Share Posted April 17, 2012 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--------------- Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.