Jump to content
Not connected, Your IP: 3.145.83.149
Stan464

AirVPN & OpenVPN DD-WRT CLient

Recommended Posts

i AirVPN Forums,

Love The Service!.


Ok, Well this is my Enquiry,

is there a way to Exclude an IP Address on the router, & put it outside the VPN Connection.

for example, My laptop is 192.168.1.8 & Thats happily running within VPN.

BUT i want 192.168.1.200 To be Outside of this zone & be able to access the internet with 0 VPN Connection..

So it will show the ISP's Provided IP Address..

Sorry if this question is somewhat vague & Badly Formatted.



Thanks.



Stan464.



More INFO



Router: Netgear WNR834B

DD/FW: DD-WRT OpenVPN Build.

GWIP: 192.168.1.1

ISPGW:192.168.0.1

Share this post


Link to post

You want to use policy based routing. It should be under OpenVPN client options as 'Policy Based Routing' and you want to put the IP or IP range you wish to NOT route through VPN

Would it be possible to explain this in more detail. I tried what you suggested but it does not seem to work. I have the following setup and would like to exclude my entire DHCP range from the VPN.

 

Static IP's are 10.0.0.30-10.0.0.39 ---> Want these IP's to use my VPN connection.

DHCP Range is 10.0.0.40-10.0.0.49 - Want any of these IP's to use my ISP's connection.

 

Router IP is 10.0.0.1 / 255.255.255.0

 

Any help would be greatly appreciated.

 

Regards,

Bubbba

 

Update:

I got it to work but it was not just a matter of using the "Policy Based Routing". I also needed to modify my iTables firewall entries.

 

Added 10.0.0.37 to the "Policy Based Routing" in the Open VPN client. This is one of the IP's I want to ALWAYS use the VPN.

 

Added the following to my firewall :

 

iptables -I FORWARD ! -o tun1 -s 10.0.0.37 -j DROP

 

Not sure why this worked but it did. This was information found in multiple messages.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...