smoothanx Posted April 26, 2012 Share Posted April 26, 2012 Hi Everyone, Long time reader, first time poster. I just got my pineapple and I was planning to connect the pineapple to a DSL router (via an ethernet cable) facing the internet with a 192 private IP addressing scheme. What is the simplest and quickest method to change all required IP addresses settings on the pineapple to allow it to function with the DSL router and the internet? Any help or tips would be greatly appreciated. Thankyou. Quote Link to comment Share on other sites More sharing options...
WatskeBart Posted April 26, 2012 Share Posted April 26, 2012 The quickest way without changing any IP's is to connect your DSL with a cable to your pineapple WAN port en connect your PC to either the PoE/LAN port on the pineapple or WiFi. But to configure the WAN port to enable NAT, you must add lines to your iptables. I'm using it in a similar setup like your and added the following code to the WPS button script located at the configuration page http://172.16.41.1/pineapple/config.php Add this code (source): #!/bin/sh #Script is executed when WPS button #is pressed for 2-4 seconds. iptables -A FORWARD -i eth1 -o wlan0 -s 172.16.42.0 -m state --state NEW -j ACCEPT iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE After you clicked the button "Update WPS script" when the WPS button on your pineapple is pressed for 2-4 seconds NAT'ing will be enabled. NOTE: After a reboot or replug you need to press the WPS button again to enable NAT. Quote Link to comment Share on other sites More sharing options...
smoothanx Posted April 26, 2012 Author Share Posted April 26, 2012 Thanks for your speedy reply. The problem is I don't want the pineapple directly connected to a PC. The setup I was going for was as follows; Internet -- DSL Router -- Pineapple | | PC The DSL Router has 4 ethernet ports on it. Quote Link to comment Share on other sites More sharing options...
smoothanx Posted April 26, 2012 Author Share Posted April 26, 2012 My little diagram didn't come out right but basically the PC should be directly underneitht the router. Quote Link to comment Share on other sites More sharing options...
PineDominator Posted April 26, 2012 Share Posted April 26, 2012 Thanks for your speedy reply. The problem is I don't want the pineapple directly connected to a PC. The setup I was going for was as follows; Internet -- DSL Router -- Pineapple | | PC The DSL Router has 4 ethernet ports on it. how bout not connecting to pc and then on your own network you reference the pineapple via the ip your router gave the pineapple instead of 172.16.42.1/pineapple maybe 192.168.1.105/pineapple? might work I am not 100% Quote Link to comment Share on other sites More sharing options...
velkrosmaak Posted April 27, 2012 Share Posted April 27, 2012 If your PC is on the same network as the pineapple, I believe you need to set your PC's IP to 172.16.42.42 to be able to view the pineapple's UI. This was true for the MK3 anyhow. 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.