LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-25-2013, 02:50 PM   #1
gnap
LQ Newbie
 
Registered: Sep 2013
Location: Luxembourg
Posts: 1

Rep: Reputation: Disabled
Redirect specific URL to VPN


Hi,

i'm trying to find a way to redirect outbound traffic based on destination URL to a specific interface.

Example :
www.google.com -> eth0
www.google.fr -> tap0 (OpenVPN interface)

Thanks in advance
 
Old 09-25-2013, 03:35 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,893

Rep: Reputation: 163Reputation: 163
You can use iptable to do it.
 
Old 09-27-2013, 05:53 PM   #3
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Rep: Reputation: 32
we do it

http://www.linuxhorizon.ro/iproute2.html

way!

Needs some ajustment but yes, with iptables you can mangle packages.

If you need more help just write. Otherwise just google..
 
Old 09-28-2013, 05:59 AM   #4
cospengle
Member
 
Registered: Feb 2008
Location: Armidale, NSW, Australia
Distribution: Fedora 8
Posts: 32

Rep: Reputation: 6
Since you are asking about URLs (as distinct from IP addresses), I'm going to assume you're talking about web browsing.

In that case, a .pacfile or similar might be a better choice.

IP based routing might work, but can easily be broken if/when a URL changes its IP address.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Redirect URL to another URL when the link is down with Squid marx_long Linux - Newbie 1 06-13-2010 09:59 PM
how can redirect specific ip to specific web page Barq Linux - Server 0 07-01-2009 07:58 PM
URL redirect in apache maniannam Linux - Server 2 01-05-2009 02:03 AM
redirect url munna_dude Linux - Software 2 02-15-2007 01:18 AM
url redirect Present Linux - Networking 4 01-26-2007 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration