LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to route certain dns through vpn? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-route-certain-dns-through-vpn-4175483990/)

qwertyjjj 11-09-2013 05:13 AM

how to route certain dns through vpn?
 
There is a new type of service called SmartDNS:
Code:

Advantages
Smart DNS is a service that unblocks regional restricted sites that do not expose their content to users from other countries. It is a simple method to access regional restricted websites from anywhere in the world using original provider’s speed, without many changes in your device. Smart DNS comes with an advantage: it offers direct access to the pre-unblocked sites with no loss of speed. So, what does Smart DNS do is: directly unblocks each site. By the way is good for you to know that we have one of the largest list of unblocked websites on the market.

Disadvantages
The disadvantage that Smart DNS has, is the fact that it doesn’t offer privacy and anonymity while surfing the internet as VPN does. With Smart DNS your IP is not hidden. Also the VPN service is used in order to get a better personal security while being connected to a public WiFi, which is another VPN advantage.
If you need a service that will allow you to watch restricted media with your original speed or, in other words will let you to unblock regional restricted websites, then Smart DNS is the right service for you.

I understand how aclient can set this up and you need a DNS server but how do you then route some website through the VPN on the server and return the request to the client but other websites are not routed?
ie you can unblock some sites like hulu but others that don;t need unblocking like google are just passed on.
In example 1, the request goes from client to dns server to VPN to webserver & the webserver sees the client as IP 88.xxx.xxx.xxx in the US
in example 2, the request goes from client to dns server to webserver & the webserver sees the client as IP 106.xxx.xxx.xxx in France

nini09 11-12-2013 02:24 PM

If KLIPS IPSec is used, IPSec tunnel has an interface, ipsecX. The interface make routing much easier. You can use firewall (iptables) rules to control particular type traffic.
Most kernel use NETKEY IPSec. KLIPS IPSec may request to rebuild something.


All times are GMT -5. The time now is 05:21 PM.