OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: ohara on March 19, 2023, 04:07:36 pm

Title: Changing IP on a public network with OpenVPN?
Post by: ohara on March 19, 2023, 04:07:36 pm
Hello everyone.
Gentlemen, I have this question:
I would like to change the IP address on the network using OPNsense.
I read that you need to buy a VPS server to change your IP on a public network. It is true that in OPNsense there is OpenVPN, which allows you to connect with your family through an encrypted tunnel, but is it possible to browse the web animatedly, with a changed IP.
Is there a way to do this?
Title: Re: Changing IP on a public network with OpenVPN?
Post by: TheAutomationGuy on March 20, 2023, 09:07:53 pm
Your family will just need to know the public IP address so they can access the OpenVPN.  If your public IP address will change over time (many internet providers will change their "residential" client's public IP addresses from time to time to prevent them from hosting servers that are really meant for business customers), then you will need to use a "Dynamic DNS" service (free or paid).  This service will issue you a domain name (perhaps "ohara.dyndns.com")and you give that domain name to your family instead of your actual public address.  Even if your public IP address changes, the DDND service will automatically forward anything from "ohara.dyndns.com" to whatever you current public IP address happens to be.  This ensures people can access your VPN connection - even if your public IP address changes periodically.
Title: Re: Changing IP on a public network with OpenVPN?
Post by: ohara on March 21, 2023, 12:58:26 am
Hello again.

I don't really care about that.
So I will ask differently, is it possible to change my public IP with OpenVPN?

For example, my IP from the ISP is: 77.88.562.520 (fixed IP).
Is it possible to make my public IP on the network visible as, for example, 88.77.120.120? I'm wondering if you can mask your real IP with Open VPN.

I read from some article on the internet that such (sorcery) can be done with a VPS.

My computer = 77.88.562.520 connects via LAN to OpenVPN.
OpenVPN through the tunnel connects to the VPS in the cloud, its IP is = 99.99.10.20, and the VPS as an intermediary connects to the Internet.
So on the internet I am seen with IP 99.99.10.20.

My question is, is it possible to change the IP (without VPS) using only OpenVPN.
Title: Re: Changing IP on a public network with OpenVPN?
Post by: Greelan on March 21, 2023, 08:27:10 am
You can do it without a VPS, but you still need another endpoint with a different public IP to tunnel through. That's what commercial VPN providers like Mullvad are commonly used for, if you don't want to roll your own solution with a VPS
Title: Re: Changing IP on a public network with OpenVPN?
Post by: ohara on March 21, 2023, 11:31:54 am
I understand, topic closed (unless there are other suggestions).  :)