SmallNetBuilder Forums
Go Back   SmallNetBuilder Forums > Wireless Networking > ASUS Wireless > Asuswrt-Merlin

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-24-2013, 03:32 PM
phantomc phantomc is offline
New Member
 
Join Date: Jan 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
phantomc is just starting out
Confused OpenVPN Client - for a specific host IP

Hello,

I own a AC66U router with the RT-AC66U_3.0.0.4_266.23b merlin build flashed.

I was experimenting with OpenVPN client, and got it working perfectly.

My only problem is that once I setup OpenVPN client, all my devices connect to the internet through OpenVPN's server, however I want only some IP hosts to use OpenVPN client 1 whereas others use the default pppoe wan connection.

as an example: I would like 192.168.1.3 to use the default pppoe connection whereas 192.168.1.4 will connect according to the openvpn client 1 settings.

I tried to disable "Create NAT on tunnel" and "Redirect Internet traffic" however I could not advance as I had not created a static routing before.

Would this be possible, and how?

Thanks in advance
Reply With Quote
  #2  
Old 02-09-2013, 04:42 PM
jobongo jobongo is offline
Member
 
Join Date: Jan 2013
Posts: 62
Thanks: 2
Thanked 23 Times in 12 Posts
jobongo is just starting out
Default Suggestions

There are several ways that you can do this. Usually when you connect to the openvpn server for the commercially provided services the router automatically pulls the route and dns configuration from the server. You can use the

route-nopull

option in the openvpn configuration to prevent this. Then you would have to setup manual routes and routing rules to direct the addresses that you want to go over the vpn. For instance:

Code:
ip route default dev tun0 table 10
ip rule add from 192.168.1.3 table 10
This means that for device that uses the ip of 192.168.1.3 to lookup routing table 10 in order to get its routing information. It would then see that the default route is through the openvpn tunnel and get routed that way. There are a few more steps that need to be done but this is the general idea. Let me know if you need more help.

Last edited by jobongo; 02-09-2013 at 04:54 PM.
Reply With Quote
  #3  
Old 02-10-2013, 11:13 PM
janosek janosek is offline
Senior Member
 
Join Date: Jan 2013
Posts: 132
Thanks: 18
Thanked 8 Times in 7 Posts
janosek is just starting out
Default Selective routing script

Hello,

Take a look at this:
http://forums.smallnetbuilder.com/sh...39&postcount=5
Reply With Quote
Reply

Tags
openvpn specific host

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off


All times are GMT -4. The time now is 07:39 AM.


Top 10 Stats
Top Posters* Top Thanked
RMerlin  363
stevech  156
KGB7  119
Kel-L  102
sfx2000  98
azazel1024  93
sinshiva  83
john9527  81
fistv  70
F5ing  69
RMerlin  5601
stevech  329
ryzhov_al  266
TeHashX  217
L&LD  192
RogerSC  190
sinshiva  143
joegreat  127
jlake  122
sfx2000  121
Most Viewed Threads* Hottest Threads*
Old Asuswrt-Merli...  78277
Old Asuswrt-Merli...  47382
Old [Fork]...  20382
Old Asus locking...  10391
Old ASUS...  8410
Old Incoming...  8056
Old Asuswrt-Merli...  3423
Old Asuswrt-Merli...  3053
Old Thinking of...  2211
Old 376.44 -...  1804
Old Asuswrt-Merli...  393
Old Asuswrt-Merli...  215
Old [Fork]...  136
Old Asus locking...  125
Old Connection...  55
Old ASUS...  50
Old [HOW TO]...  50
Old Incoming...  44
Old 376.44 -...  40
Old Use the same...  35


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2006-2014 Pudai LLC All Rights Reserved.