Pihole problem - Raspberry Pi General

Hello there!I ve just installed pihole to my raspi to block ads on my lan.The thing is that I want to block ads only on some devices (mobile,smart tv,tablet).So I don't want to use it on my modem-router as default DNS.In a tutorial I saw that you can modify the connection through every device you want.So eg my wifi2.4 connection,modify the DNS from my tablet.If I understood correctly it says to use raspi's iner ip as DNS.so lets say 192.168.1.300.
The thing is that when I do this,I get no internet access on my tablet.Should I somehow add the modem DNS to the raspi?should I do something else?Any help will be so much appreciated..
EDIT:when on pc I change my DNS settings (lets say to the wifi connection) I get no difference..I still have Internet,but no Ad is filtered..I may doing something wrong..but i have no idea what is that..

Related

PocketPC program to update dynamic DNS name at DynDNS.org?

Yet another way that your device can be protected is whenever it's able to hit the internet. It would update a dynamic DNS entry on your account at DynDNS.org with hopefully a public IP address it gets and from there, if you have a program like SOTI Pocket Controller Professional, you can instantly gain remote access to the device. That's just one program of many that could benefit from this.
Is there any program for the Pocket PC that updates a dynamic DNS name there?
Any news on programs like this?
Would be very much appreciated!
If you look up posts by OdeeanRDeathshead you will find a discussion somewhere (sorry, don't remember the exact link) that you can't get a public IP over GPRS connection, so unless the phone it self initiates a connection you can not reach it.
This means that unless you device is connected via WIFI a program like this would be useless.
Sorry to be the bearer of bad news.
OK, I understand that.
I found an IP using www.whatsmyip.org. For example 123.123.123.123
I'm using my phone to connect to an Exchange Server. But I only want my phone to reach te server, so I have set up my firewall to forward (NAT) certain ports from source 123.123.123.123 to the Exchange Server. The rest of the IP's are going somewhere else.
But the IP changes of course, guess T-Mobile has more gateways in use. Maybe to another everytime you connect.
Is there a program that sends a query to whatsmyip.org (or another site like this) and then updates the IP address in a DNS record (like dyndns.org). Any help would be appreciated.

Pornography blocking proxy

I know this may sound weird to some of you but I have been looking for a way to block pornography in windows mobile. The easiest way I could think to do this was to simply add a content filtering proxy to the data connection but I am having problems finding a proxy that will let me do that (without installation).
So I guess my questions are:
1. does anyone know of a content filtering proxy that will allow me to sign up and pay for an account to block pornography or do it for free?
OR
2. Does anyone have a program to install that will allow me to do this some other way?
Thanks for your help
How about Cilice?
You will find some information here....
http://en.wikipedia.org/wiki/Cilice
Cheers
Aidan
aidanbree said:
How about Cilice?
You will find some information here....
http://en.wikipedia.org/wiki/Cilice
Cheers
Aidan
Click to expand...
Click to collapse
hahahahahaha
not sure if its compatible with the cell phone, but have you tried to set your dns to opendns.com. I use them as my DNS provider at home (they are free) and you can control what is available...
What are you doing that makes you need a content filter?
rothgar said:
I know this may sound weird to some of you but I have been looking for a way to block pornography in windows mobile. The easiest way I could think to do this was to simply add a content filtering proxy to the data connection but I am having problems finding a proxy that will let me do that (without installation)....
Click to expand...
Click to collapse
I like the cilice idea - very humorous. But seriously, as blancmik points out I would recommend using opendns. It's free to setup. Usage depends on how you browse the Internet. If you're browsing via WiFi from home, then you can configure your router to use OpenDNS, and manage your settings from there. Most likely your IP won't change too frequently so you may get away without bothering over your dynamic IP address. But I'd also recommend using the OpenDNS Updater software on your home PC, along with the free service DNS-O-Matic. That way as your WAN IP changes from your service provider, you can still browse using your OpenDNS filtering.
But if you're using your device on your carriers data plan, then your IP could change more frequently. It's a little trickier because I'm not sure if a dynamic DNS updater application exists for Windows Mobile. So when your IP changes you'd have to either manually update your free OpenDNS account. Or update your DNS-O-Matic account. Doable, but it would be annoying.
If you are on T-mobile you can activate the WebGuard and that will filter all adult themed content. It is done server side before the data reaches your phone so that could be an option for you.

Modifying host file -> blocking pornography

Hi everyone,
Simple question ... I've installed Ad free to download (I guess) a host file containing ad sources so browsing is less frustrating and probably faster.
Is there a similar way to add a list of porn websites to the host file? If it's not similar, how difficult could it be? I know a bit of Java and linux, but doing this on a phone might be out of my reach at this point.
Some direction would be welcome. Thanks!
If you know the sites you'd like to block, you could pull the hosts file yourself, edit it with notepad, and then repush it.
Just want to make sure I'm reading this right.... 3shirtlessmen wants to modify his hosts file to block pornography.
Sounds like a great setup for a joke.
timmins said:
Just want to make sure I'm reading this right.... 3shirtlessmen wants to modify his hosts file to block pornography.
Sounds like a great setup for a joke.
Click to expand...
Click to collapse
Look at the nick...
on wifi you can set the DNS server to openDNS I've never used it but from what i understand you can configure it to block sites, also i believe there was a script that could be run on rooted phones to change the 3g DNS server as well but i don't know if it works on the nexus or where to find it other than on the g1 board.
godsfilth said:
on wifi you can set the DNS server to openDNS I've never used it but from what i understand you can configure it to block sites, also i believe there was a script that could be run on rooted phones to change the 3g DNS server as well but i don't know if it works on the nexus or where to find it other than on the g1 board.
Click to expand...
Click to collapse
I use opendns on my router to block filesharing and proxies - it works well (though someone fairly technical will always find a way around it). The issue I have is that it does not play nice with vpn's (even when I have configured the opendns account for the vpn) and I can't change the dns settings on my nexus to use google dns (even with the settings in the dns field), as it still seems to pick up the settings from the router. If you don't use vpn, and are happy for all devices to be subject to the same restrictions, then opendns may be the answer (or at least it will block that content on your internet connection).
OpenDNS is used on my home network, and it does block pornography. This is meaningless on a phone when you can disable wireless though. Thanks for the tip.
How do I push and pull the host file from the phone?
Nesousx said:
Look at the nick...
Click to expand...
Click to collapse
I literally mention the nick in my post.
Haha, yeah. No joke here. Though it is kinda ironic . . .

[HOWTO] Use VPN with your Android & Home Router

This is a simple tutorial to allow you to connect to the internet using VPN through your home router.
:NOTE: At present, the steps here are sparse. They assume some technical capability to set things up yourself, this is just kindof a guide as to WHAT you'll need to setup.
Why, you ask? Security. Using a VPN will essentially encrypt your communications though a tunnel back to your home computer. Not going into all that here, basically a simple guide. I assume we're all smart here, so the basics.
Prerequisites
1. DD-WRT V24 Capable router. If you don't have this, then you will need to instead use a different method involving installing software on your PC that I won't cover here. The advantage of the DD-WRT router is ease of setup on the router, and not having to have your computer turned on.
2) Capable Android Phone & Provider. I can't troubleshoot your ROM or provider. Some Android Roms don't support VPN, and it's broken in some. Some providers apparently block it. If your Rom is good and your provider doesn't block it, you're golden. In some cases (such as on the G2X) custom kernels (such as Faux123's) will add the necessary TUN support. Or you may need to add a TUN.KO file if it doesn't... again, device specific, refer to appropriate device forums.
3) If you don't have a static IP (I assume you don't) you'll need a dynamic DNS provider compatible with DD-WRT. I prefer freedns.afraid.org, but you can use any o these: dyndns.org, zoneedit.com, No-Ip.com, 3322.org, easydns.com tzo.com or dynsip.org.
Got all that? Great!
Okay, here's the fun bit.
STEP 1
First, you need to hack your router. It's a LOT like rooting your Android phone. How to do it is BEYOND the scope of what I can write here, but what you need to do is visit http://www.dd-wrt.com and have a look around. Or, you can actually purchase routers with DD-WRT pre-installed. Basically you have to flash a custom ROM onto your router. It needs to support VPN, and be at least version "v24 SP1". Older versions may have a DIFFERENT VPN setup that's not as easy. Don't say I didn't warn you. I flashed the full-featured VOIP version to my router, a Buffalo WHR-G54S.
Unlocking (if necessary) and flashing your router with DD-WRT is a topic as broad as rooting/flashing Android - so I can't help you here. But once it is done, you are ready for....
STEP 2
Setup your dynamic DNS provider. I used http://freedns.afraid.org/ to do this. Basically you go to the site and sign up for the free "subdomain" services. You can pick a name that will be on a number of different domains, such as "us.to", where you could maybe pick something like "kick.us.to" if it isn't taken yet. All that matters is you remember the name.
Next, in DD-WRT, go to the Setup->DDNS tab and select the proper DDNS service and enter the information it asks for -- your service used, username, password and hostname usually. You can usually leave update interval at the default, and normally you don't need to use external IP check.
NOTE: You need to make sure you are not "Double NAT-ed".. this means two routers stacked is a nono. If you have a router connected to a cable/dsl router (instead of a cable/dsl modem), then it needs to be set to BRIDGE mode. Again.. complicated and really a topic best dealt with on its own.
Once you've setup your Dynamic DNS, you're well on your way. You can actually use that hostname for all sorts of things, such as always being able to get Audiogalaxy to connect to the right host without having to know a numeric IP that could change.
STEP 3
You're on a roll... Now, time to setup the VPN in the router. This is done under the Services->VPN tab. If that tab doesn't exist, then you got the wrong version of DD-WRT and need to go back to Step 1.
Enable PPTP Server, Broadcast Support, MPPE Encryption. Under Server IP enter your ROUTER's IP address (usually 192.168.1.1, or whatever you use to connect to your router). Under Client IP's, enter the range of clients on your local network in the format: 192.168.1.100-149 (where 100-149 represents possible IP addresses I've set in DD-WRT for my LAN)... this doesn't seem as important since we'll be connecting from outside.. Just do it.
Under CHAP-Secrets enter in your preferred username and password in the format:
username * password *
that is, the username, a space, *, a space, the password, a space and then *
Save and apply settings. (You need to click both SAVE and APPLY, DD-WRT is weird like this)
STEP 4
Back to Android! Yay! This part of the procedure may vary by phone, but this is how it is on my Gingerbread T-Mobile G2X with faux123's kernel.
Goto Settings->Wireless & Networks->VPN Settings->Add VPN->Add PPTP VPN
VPN Name=whatever you want
VPN server= your dynamic IP name you selected in Step 2
Enable encryption = Yes
now, hit Menu->Save
You should now see your VPN listed under VPNs. Click on it, and select CONNECT. Type in your username and password you selected at the end of Step 3.
It should connect. CONGRATULATIONS!
You should also have a notification in your taskbar that will now let you disconnect from the VPN.
STEP 5
Enjoy! .. wait, what? It didn't work? It did for me!!!
I guess.... ask questions here, or if it appears to be a phone issue, ask in your device's appropriate forum (and link to this thread so people know what guide you're following)
And, if anybody reading this is a better expert in setting this stuff up than I am, feel free to critique/laugh/criticize/constructively comment on this little howto and I'll correct anything I Rick Perry'd.
Nice tutorial! Would have been better if you also included more details in hacking our router
DroidVPN said:
Nice tutorial! Would have been better if you also included more details in hacking our router
Click to expand...
Click to collapse
I would have, but like I said, that's a topic as big as phone hacking itself. Every model of router is going to be different! There may be models that support VPN in the router as well without DD-WRT, but I'm not familiar with that setup.
DD-WRT's website has a pretty huge forum on what routers are compatible and how to set it all up.
The optimal speed can be achieved by the compression of traffic and by minimizing server loads. Web acceleration will enable you bring about a drastic improvement in the web page response time. This kind of acceleration usually come in lesser costs and offers the best web application performance.
So Wat does this do? Keeps u secured from the eyes of the ISP?.. harder for others to hack u?...
Sent from my HTC Desire using xda premium
evilgenius00 said:
So Wat does this do? Keeps u secured from the eyes of the ISP?.. harder for others to hack u?...
Sent from my HTC Desire using xda premium
Click to expand...
Click to collapse
lotherius said:
Security. Using a VPN will essentially encrypt your communications though a tunnel back to your home computer.
Click to expand...
Click to collapse
Yeah, that.
...
10char.
Nice TUT, VPN working
Thanks. I mostly appreciated the idea of using afraid.org.
For some reason, Dyndns and no-ip wouldn't work with ICS as client.
thanks for this tut, keep it up
nice.. thanks for sharing
The cool thing is, once you start hacking your router, you open up all sorts of fun. Like using a virtual wireless network to bridge the open wifi network that gets 1 bar of signal in one little corner of your apartment to be a full strength WPA protected network with your own SSID and subnet that all of your devices can use ... not like I would do such a thing. Now, I *am* a bit afraid to try to set up a VPN on the bridged virtual network..... that could get complicated.
Will this also work with OpenDNS?
Already running DDWRT v24 on WRT600N, and trying to figure this VPN stuff to connect my Atrix running CM10. Thanks for any help
katinatez said:
Will this also work with OpenDNS?
Already running DDWRT v24 on WRT600N, and trying to figure this VPN stuff to connect my Atrix running CM10. Thanks for any help
Click to expand...
Click to collapse
Any service which gives you a stable hostname to the outside network should work.
If you have a higher end router that supports the mega builds (8MB flash), then you can opt for OpenVPN which is more secure than PPTP. Setup is more complicated though.
australix said:
If you have a higher end router that supports the mega builds (8MB flash), then you can opt for OpenVPN which is more secure than PPTP. Setup is more complicated though.
Click to expand...
Click to collapse
Still using a (now antiquated) Buffalo WHR-G54S which has 4MB flash and 16MB Ram... so while it has a lot of features, OpenVPN is lacking... so I can't test that method personally.
This Buffalo is the best router I've ever owned, though. I still can do without gigabit or N networking, so I'm not upgrading. I went through 5 or 6 bad routers (even a Linksys WRT-54G that crashed constantly) before I got this one.
Thanks for all the info here. I've deleted the post because I think my issue is with something else.
Thanks..
p
very...helpfull..!!!
Very easy guide! Thanks!
455
nice cool...
bumpin this because i have a question regarding this, i just set this up and it works great
there are mainly two types of auth vpn servers use, certificate authentication and username/password
i tried to set up password one, and you still need the server public certificate along with username/password, but you don't need client public and private keys unlike with cert auth.
now, i placed the server key, ca.crt, on my internal storage and together with username/password, works great, my concern is security of this file. this file needs to be accessible right, so you can't put it in /etc or /system, having it in internal storage, any app with storage permission can read it... isn't this a security risk? how is this solved? where do i put the file?
thanks
edit: also, how do i *prevent* network traffic without vpn? i know there is always on option and start on boot, but i did, and when the boot finnishes there is a brief moment when the phone connects on mobile network just before initializing vpn and in that brief moment android probably sends all sorts of passwords and data through the network ... how do i delay this until vpn is initialized?

Internet usage, block it except local LAN

Hi
I'm wondering if it possible to block the NSTV from using the internet if I not want it to. It looks like it uses much data I background that I can't find.
Is it a way to block it, but still have access to my LAN?
And a simple way to turn it on or off?
I use cable, no WiFi to my router.
Petter
Can't you either;-
Block access by device on your router
Or
Give the Shield a static IP address with no gateway / the wrong gateway
That can be an option. But it's not an easy way to manage.
Is there an way to code or an app that can change these network settings?
(So it's get a little bit easier to change it)
Asks again.
Is there an app for this now?
Tried an app for this that's made for phone, but that app was not usable for NSTV.
Don't remember the app name, but found in xda.

Categories

Resources