Routing specific website through VPN - IPTables

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
cumu2003
DD-WRT Novice


Joined: 29 Aug 2017
Posts: 2

PostPosted: Mon Oct 02, 2017 20:32    Post subject: Routing specific website through VPN - IPTables Reply with quote
Hi guys...

So, I've got openvpn working fine in my router. Specified it, so that it only works on certain local ip addresses. All seems to be working fine.

But, there are certain website address that I would like it, if these went out directly, rather than through the VPN, as the site blocks VPN connections...

Is there any way to do this at all?

Many thanks Smile
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Tue Oct 03, 2017 9:36    Post subject: Reply with quote
I think you mean OpenVPN client based on destination IP?

If so yes this is possible with @Eibgrad's script: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308267

I understand that you are using PBR, if you are using @Eibgrad's script then this also has to be done through the script otherwise it interferes, so do not use PBR in that case.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
weech
DD-WRT Novice


Joined: 11 May 2017
Posts: 20

PostPosted: Fri Oct 20, 2017 21:32    Post subject: Reply with quote
i deleted my post. after reading it in context with what was asked and what was replied by egc, i felt like i may be muddying the waters more than offering up any help.
Confused
spuriousoffspring
DD-WRT Guru


Joined: 05 Apr 2017
Posts: 981
Location: Louisiana, USA

PostPosted: Fri Oct 20, 2017 23:10    Post subject: Reply with quote
You can try changing servers. Some VPN Provider's server get blacklisted which certain sites will block.

To see if current IP is blacklisted:
https://tenta.com/test/

Also, swiching OpenVPN Client settings to TCP on Port 443 will mask use of a VPN to some sites.

_________________
DD-WRT Installation & Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311117

WRT32X DD-WRT Installation Procedure
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=315569

IPVanish OpenVPN Client Setup TUTORIAL
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=308565

FIRMWARE: OpenWrt SNAPSHOT r8217-2cc821e / LuCI Master (git-18.276.41146-280dd33)
MODEM: ARRIS SURFBoard SB8200
ROUTER: Linksys WRT32X
USB NAS: Western Digital BLACK 1 TB Hardrive + Startech USB 3.0 External SATA III Enclosure
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum