Hi
I've set up two routers R1 and R2 (ROS 7.1.1) and connected them with wireguard. Tunnel works fine, I can ping both endpoints.
I'm trying to use it as a kind of VPN, forwarding part of the traffic from R1 via R2 to the internet.
So - I've set up routes, firewall rules. Firewall counters on R2 shows that packets from R1 are arriving.
If I open packet sniffer on R2 I can see packets from R1 on both wireguard link and internet link with original IP address of R1.
Now I have to NAT the traffic - so I went to NAT chain and add MASQ rule. Tried following filters:
- rule based on source IP of R1 - Does not work, NAT counters stays at 0.
- rule based on connection mark with mangle marking packets (mangle counters shows that there is traffic) - Does not work, NAT counters stays at 0.
- catch-all rule for all traffic going out on R2 - Does not work
So - it looks like NAT chain does not catch wireguard-originated traffic.
So:
- packets are arriving
- packets are routed properly
- packets are present on internet link on R2
- NAT does not catch them
Is this a bug/feature?