steven-seagull 0 Posted ... I have selective routing configured on my network using wireguard in opnsense and have the following setup: Host A is routed through AirVPN wireguard interface Host A is listening to port 56310 which is forwarded on AirVPN The port test is working on AirVPN's website Host B is not routed through AirVPN, traffic goes through WAN interface I can connect to Host A from an external network to {airvpnIP}:port. But I can't connect to Host A from Host B (on the same LAN) using {airvpnIP}:port. Am i missing a rule to allow this connection? Any help would be appreciated. Quote Share this post Link to post
go558a83nk 379 Posted ... This is typical for VPN networking. Just connect to Host A at its LAN IP address. Quote Share this post Link to post
steven-seagull 0 Posted ... Right that works perfectly fine if i use the internal ip address. But i need to connect to the external/airvpn ip. Is this possible? Quote Share this post Link to post
steven-seagull 0 Posted ... Got it working with the help of deepseek ai: Create NAT Port Forward rule Go to Firewall > NAT > Port Forward Click "Add" to create a new rule Configure with these settings: Interface: LAN Protocol: TCP/UDP (or your specific protocol) Destination: VPN provider's public IP (the one assigned to your WireGuard tunnel) I created an alias for the airdns url, ie: xyz.airdns.org and used that instead of the public IP Destination port range: The port forwarded by your VPN provider Redirect target IP: Your host's LAN IP Redirect target port: The local port on your host Description: e.g., "Hairpin NAT for VPN host access" Filter rule association: "Add associated filter rule" Verify Firewall Rule Go to Firewall > Rules > LAN Look for a rule that allows traffic to your host's LAN IP on the specified port Add Outbound NAT Rule Go to Firewall > NAT > Outbound Enable "Hybrid outbound NAT rule generation" Add a manual rule: Interface: LAN Source: LAN net Destination: Your host's LAN IP NAT Address: Your OPNsense LAN IP Static Port: Checked Quote Share this post Link to post