Hello OpenWrt community, I would like how to do a NAT redirection or similar which I want to access an IP that my router has that is on the wan and send it through a VPN that is with the OpenWrt system in Ubiquiti LiteBeam AC Gen2.
The Tunnel VPN is zerotier.
#### Firewall - Traffic Rules - RED
Name RED
Protocol TCP UDP
Source zone vpn (empty)
Source address -- add IP --
Source port 8291
Destination zone wan wwan:
Destination address 192.168.10.1
Destination port 8291
Action Accept
A normal Port Forward should work.
Forward the WAN traffic in question to the IP on in the VPN's zone.
ok it is not done by Firewall - Traffic Rules but by Firewall - Port Forwards
1 Like
Correct. Since you need to alter the destination IP (DNAT) - that is a Port Forward.
I though the SRC was WAN - and DST the VPN?
Also, do your WAN clients have a public SRC IPs?
EDIT:
(I ask because you may need to SNAT traffic destined there as well.)
Could you give me an example? and about the IP it is a mikrotik and everything has private IPs.
1 Like