OPNsense Forum

English Forums => General Discussion => Topic started by: bumann on May 12, 2019, 09:04:53 AM

Title: Port Forward over VPN
Post by: bumann on May 12, 2019, 09:04:53 AM
Hi,
i use site2site opnsense setup with wireguard. It works fine, the ips from the two subnets can talk to each other over thte wireguard vpn. Now i want to forward for excample port 8443 on wan from site A to a ip on site B.
I use NAT port forward from site A wan to site A LAN with success. I test to use the same rule to forward to site B LAN Adress but it did not work. How to do that? Thanks
Title: Re: Port Forward over VPN
Post by: bartjsmit on May 12, 2019, 02:53:58 PM
Does the host in site B have its default gateway set to the tunnel? You may have to source NAT the traffic from site A at site B for the host at site B to be able to send reply packets back to the source.

Bart...
Title: Re: Port Forward over VPN
Post by: Simon on May 12, 2019, 07:06:30 PM
You dont need to, The VPN puts you onto the remote network
Just put in the IP and port the device is listening on

ie   10.2.30.2:80      for web etc