You are not logged in.
Hello,
I have just set up a strongswan VPN on Linux for my Blackberry device. Then I downloaded https://github.com/StevenBlack/hosts and figured out that this will not actually work as I expected. Seems that strongswan is not using /etc/hosts at all.
So I have a VPN and now I need to tell my Linux to block certain sites. I read that using iptables is not generally a good idea for this. Any other recommendations?
Offline
strongswan is the VPN application -- I'm not sure what exactly you're expecting it to use /etc/hosts for? To be clear, you want to block sites on your Blackberry, via the VPN?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Seems that strongswan is not using /etc/hosts at all.
I expect you're wanting to "push" DNS, so that your BlackBerry uses your VPN server as a DNS server also.
I need to tell my Linux to block certain sites.
Too vague. This can be related to both DNS lookups, and iptables firewalling.
Offline
My main objective is to block adverts. Since I can't do it on my Blackberry and the only way to use "proxy" there is actually using VPN with IKEv2, I set up a VPN with this (after 3 days of fighting). So now I have all my traffic from Blackberry on Linux and the only thing I need is some filtering mechanism.
Offline
Populating /etc/hosts will only take effect on the BlackBerry, if both:
* The Blackberry is using the Linux VPN server as its DNS server
* The Linux VPN server is configured as a DNS server, to answer DNS requests from the Blackberry
Offline
Thanks a lot. That will be the easiest way I guess?
Offline