OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • IP cloaking for OpenVPN and/or IPsec
« previous next »
  • Print
Pages: [1]

Author Topic: IP cloaking for OpenVPN and/or IPsec  (Read 4443 times)

MatFuz

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
IP cloaking for OpenVPN and/or IPsec
« on: March 31, 2017, 11:02:50 am »
Hi all,
I've had a look, but can't seem to find specifically the answer in the other discussions, so I'm sorry if this has been covered before...

I need a VPN tunnel to keep my home IP when travelling in order to access Netflix etc, so I guess I simply need to know what variations are required from the standard documented OpenVPN and IPsec setups are required to ensure all internet traffic passes through the VPN interface through to the remote client.

Thanks for any help!
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: IP cloaking for OpenVPN and/or IPsec
« Reply #1 on: March 31, 2017, 12:12:21 pm »
In the OpenVPN server configuration, enable 'Redirect Gateway' to ensure all client IPv4 traffic goes through the tunnel. For IPv6, add this to 'Advanced' to get the same result:

push "route-ipv6 2000::/3"

Bart...
Logged

MatFuz

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: IP cloaking for OpenVPN and/or IPsec
« Reply #2 on: April 05, 2017, 07:16:18 pm »
Hi Bart,
Thanks for the reply - I've tried this a couple of times with Redirect Gateway, and I get a connection and can still access my home network, but now cannot access the internet. Is this a DNS setting issue, or do I need additional firewall rules?

Thanks for any help.

Matt
Logged

MatFuz

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: IP cloaking for OpenVPN and/or IPsec
« Reply #3 on: April 05, 2017, 07:18:05 pm »
By the way, I am using the directions given in the SSL VPN road warrior set-up without OTP settings, and simply clicking the Redirect Gateway box.
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: IP cloaking for OpenVPN and/or IPsec
« Reply #4 on: April 05, 2017, 08:14:15 pm »
To exclude DNS, do a traceroute to 8.8.8.8. What are your DNS settings in the OpenVPN server?

Bart...
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: IP cloaking for OpenVPN and/or IPsec
« Reply #5 on: April 05, 2017, 10:10:26 pm »
I would use "cat /etc/resolv.conf" on the host to find out, which DNS servers are used. I would prefer in general to use tcpdump / wireshark for debugging reasons to see what is going on.
Logged

MatFuz

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: IP cloaking for OpenVPN and/or IPsec
« Reply #6 on: April 12, 2017, 02:30:09 pm »
Hi All, just wanted to say thanks for everything, but I have solved the issue: it's the DNS settings. Specifically that Windows clients needed to be forced to refresh the DNS servers. Once that was checked the system works perfectly. Thanks for the help!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • IP cloaking for OpenVPN and/or IPsec
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2