OPNsense Forum

English Forums => Virtual private networks => Topic started by: DentalDan on March 24, 2023, 04:19:36 PM

Title: CGNat Bypass with 2nd IP on VPS
Post by: DentalDan on March 24, 2023, 04:19:36 PM
Hi All,

I'm trying to get a static ip at my home on a residential internet connection that does not allow for static IPs (also potentially would not allow for direct connection, but I found a way to bypass their provided router).

To accomplish this, I am attempting to use Wireguard to route this to an endpoint. I wish to do this without NAT, as some of the services I wish to run  do not work well with NAT. I feel that I am close to success, but I have a blocker that has me a bit stumped.

Here is what I've done so far:


At this point:


I suspect there is some kind of restriction for routing packets from the WAN interface to internal interfaces, but any suggestions would be appreciated.

Thanks!
Title: Re: CGNat Bypass with 2nd IP on VPS
Post by: seilenbe79 on April 11, 2023, 07:05:02 PM
I've use this for me. It works.

https://www.busche.org/index.php/2021/03/21/ipv4-ueber-wireguard-von-opnsense-zu-opnsense-routen-cgnat-umgehen/