OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: Silver77 on October 08, 2021, 12:34:27 am

Title: Configure the virtual ip for a pc
Post by: Silver77 on October 08, 2021, 12:34:27 am
How do i force a pc to go out with a virtual ip?
obviously the ip is part of the range at my disposal.
thanks
Title: Re: Configure the virtual ip for a pc
Post by: juere on October 08, 2021, 01:02:32 am
Let's assume you are using IPv4 and your desired virtual WAN IP is 42.1.2.3/32 and your PC is 192.168.1.1/24.
To get a more readable configuration I would first set up Aliases under Firewall->Aliases for 42.1.2.3/32 and 192.168.1.1/32 and use them in the NAT rule instead of IP adresses :)
Title: Re: Configure the virtual ip for a pc
Post by: Silver77 on October 08, 2021, 07:58:39 am
thanks a lot GoodOm.  I understood that I had to use the outbond, but your description is accurate.
Admin can close the 3D
Thanks
Title: Re: Configure the virtual ip for a pc
Post by: Silver77 on October 12, 2021, 05:01:57 pm
I use this type of configuration  for a published PBX. I have a problem now, the calls arrive correctly and if I check my public ip matches the one assigned, but when I make a phone call I see that the connection is established with the previous ip and not with the new ip. I do not understand why