I would like to build a public wifi hotspot on a openwrt router which interrupts user-surfing after about 15 minutes by showing a commercial. I think I need a transparent proxy to achieve this but dont know which one could do that. Could someone help me with that and give me a hint of the configuration?
Thank you in advance
Mike
Look at nodogsplash package - it will get you started. Please note though, that this trick will not work with https sites - user will get security warnings instead of ads.
Related
I've searched in general, and looked at suggested responses here, so I hope this isn't immediately marked as a duplicate. So here goes.
I'm building a simple web app with an Angular server using port 3000 on my desktop. I've been testing it with the standard "localhost:3000" URL. I then wanted to make it accessible to others outside my home for testing and review. So I did the expected port forwarding in my router of port 3000 to my local machine at 10.0.0.90. I then constructed a link using my external IP (router's "WAN IP") like "[wan ip]:3000". And this has worked as expected, enabling external access as well as internal access. The only thing funny at the time was having to add "--host 0.0.0.0" to the server invocation.
But here's the problem. My original setup, where everything worked, was a Comcast modem with my router (TP-Link) hanging off of it. Recently, I switched to their Xfinity Gateway combo modem/router (Arris TG1682G). Now, I can't get to the server using the [wan ip]:3000 URL. I can't even ping that URL, they all time out. So, while on the phone with Comcast tech support, and not being able to determine why I had this problem (even after upgrading router firmware and rebooting it), I asked him to try [wan ip]:3000, and it worked! It also doesn't work from any other machines on my local network. But, when I changed my laptop wireless connection from my house Xfinity router to an external one (one of the many "xfinitywifi"s seen in a list of networks, besides numerous neighbors), it again worked! Poking around in Xfinity router admin pages, I didn't see anything that sounded like it was involved with this.
So, any idea what's going on, and how to fix? Thanks for any ideas or guidance.
OK, I think I see what's going on. A colleague mentioned that for this to work, the router needs to support "NAT reflection/loopback". Looking at every setup page on this router, I don't see anything that sounds like that. Further searching shows a page where they state that this router does not support it. Oh well.
I'm new to networking so please tell me if this isn't allowed, I'm also not to sure how to even ask this question, or if I'm even asking the right question.
Ok, I want to create a .mobileconfig file that will connect on demand to my server, and block a few ad DNS names so all the traffic on my iPhones will be processed through a "DNS blocker" on a linux Ubuntu server, yet I can't find any information on how to do this. I don't know how to search for it as everything I search fails to be what I'm looking for. I have the mobile configuration file ready to go, but I can not figure out how to make the phone send it's traffic through a file that says block "apple.com" for example.
I hope this makes sense, sorry for the noob post, I'm just trying to learn and I can't find help.
Edit: need help on the software side of routing all traffic through DNS blocker Ubuntu Linux vps, have ssh root access
I need to find the Wi-Fi's router address from my iOS app. I searched the web for a solution but nothing seems to do it. I need something that is not using private APIs an is not against Apple policies.
I have tried solutions found in the following articles and none of them actually give me the router IP address.
How can I determine the default gateway on iPhone?
Fetching IP address of router to which iPhone is connected
Objective-C : How to fetch the router address?
How to get the WIFI gateway address on the iPhone?
There also could be a way to "calculate" the IP from the mask and device IP (or maybe my TCP/IP course is waaaaay to far back in time)...
Thanks!
I have found a solution and tested it successfully. It was taken from this repo https://github.com/SiteView/GenieForiOS, I extracted only the code I needed for my getRouterIPAddress function.
Disclaimer: I'm not an Objective-C developer so the following code might have a ton of issues. Please feel free to correct me.
I have also made it into a Cordova plugin and included a demo project in the repo. It does what I need. I have also added an Android version, which is only 3 lines long. :)
https://github.com/vallieres/cordova-plugin-get-router-ip-address
Is there a easy way to detect in which country app is running?
I know that I can check IP of client, but I would like to know if there is a easier way to get that info. No location necessary, only country.
Thank you
I would think you would use the GPS to determine that. You can't trust IP addresses because it could be routed through a proxy or something giving you false information.
Rob
How to get the best possible http connection in an blackberry application? I use the Network Diagnostic tool provided by RIM but most of the time it fails to find any connection while other applications are connected to the internet without a problem.
Is there any other way to find out how to connect to internet?
Try
http://www.versatilemonkey.com/HttpConnectionFactory.java
Hi I had created something to help myself out for the same purpose.. I hope it would be useful for you too.. Check it out at http://www.sameernafdey.com/2009/08/httpconnection-over-bis-wap-10-11-wap.html
Similar to #imMobile I have a library you can try as well here. It is very simple to use.
The HttpRequest should handle all the service book and coverage/transport stuff for you.