Mr-Protocol Posted January 16, 2010 Posted January 16, 2010 Is there any special settings that need to be done to the jasager like setting a gateway or DNS server? It doesn't seem that traffic is flowing from the victim laptop to the Fon and then to the laptop. Traffic seems to stop before it hits the laptop with ISC/IPTable forwarding. My Setup: |||Wireless Vic (192.168.169.101)||| ---> |||Fon (192.168.169.169)||| ---> |||Laptop eth0 Wired (192.168.169.16)||| --->|||IP Forward Wireless wlan0 (possibly wmaster0 ?) Internet Source (192.168.0.105)||| Should i be setting my DNS and Gateway to 192.168.169.169 in this example? Or should I make the Fon on the same network as my actual WiFi Internet source? Quote
Netshroud Posted January 16, 2010 Posted January 16, 2010 Set the Fon's DNS server (DNSmasq) to give out the gateway and DNS IPs. In /etc/config/dhcp, under the section config dhcp lan, add: list 'dhcp_option' '3,192.168.169.16' list 'dhcp_option' '6,192.168.0.105' (assuming the internet source acts as a DNS server. Otherwise, substitute 192.168.0.105 for another DNS server, such as OpenDNS or Google's DNS service. Quote
Mr-Protocol Posted January 17, 2010 Author Posted January 17, 2010 Set the Fon's DNS server (DNSmasq) to give out the gateway and DNS IPs. In /etc/config/dhcp, under the section config dhcp lan, add: list 'dhcp_option' '3,192.168.169.16' list 'dhcp_option' '6,192.168.0.105' (assuming the internet source acts as a DNS server. Otherwise, substitute 192.168.0.105 for another DNS server, such as OpenDNS or Google's DNS service. I should have clerified, the "Internet source" is a wireless router I have on my network. I'll give it a shot and see what I can come up with thanks. And does it matter if my wireless router I'm connecting to for internet has WPA2 on it? Quote
Mr-Protocol Posted January 17, 2010 Author Posted January 17, 2010 Tried setting the DNS and Gateway as specified. Client still have no internet access... Any ideas? Quote
Netshroud Posted January 17, 2010 Posted January 17, 2010 what settings are the client getting? (ifconfig/ipconfig) Can clients ping the fon? Can clients ping the laptop? Can clients ping an address on the other side of the laptop? (Gateway/internet) Quote
Mr-Protocol Posted January 17, 2010 Author Posted January 17, 2010 what settings are the client getting? (ifconfig/ipconfig) Can clients ping the fon? Can clients ping the laptop? Can clients ping an address on the other side of the laptop? (Gateway/internet) Client: IP add: 192.168.169.115 Subnet: 255.255.255.0 Gateway: 192.168.169.169 Client Ping Fon - OK Client Ping Laptop - OK Client Ping other: ping google.com Ping request could not find host google.com. Please check the name and try again. ping 8.8.8.8 Pinging 8.8.8.8 with 32 bytes of data: Reply from 192.168.169.169: Destination port unreachable. Reply from 192.168.169.169: Destination port unreachable. Reply from 192.168.169.169: Destination port unreachable. Reply from 192.168.169.169: Destination port unreachable. Ping statistics for 8.8.8.8: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss) Those results are with a Fon, Backtrack 4 Final laptop, Windows 7 Pro x64 client. Quote
Netshroud Posted January 17, 2010 Posted January 17, 2010 client gateway should be the laptop. Check dhcp_option 3 in the dnsmasq config. Quote
Mr-Protocol Posted January 17, 2010 Author Posted January 17, 2010 Woot, Thanks for your help. For some reason the DNS wasnt working, I was able to ping everything. Changed the DNS address to google's DNS (8.8.8.8) and things started working. Thanks again for your help. Quote
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.