Hi
I am using version 1.4-rolling-202204140217
.
I have a VPN tunnel setup using the VyOS’ 2 VRRP IP addresses (one as host, the other as peer), which requires I SNAT the traffic from the internal subnets behind the VyOS as one of the VRRP IPs.
Unfortunately I am unable to successfully SNAT, and traffic from the internal subnets cannot board the tunnel. I would appreciate some assistance in figuring out what I am doing wrong.
I need to SNAT traffic from 10.100.0.0/16
to 81.B.B.B
in order to reach VPN host subnet at the other side 172.24.96.0/20
, while 81.A.A.A
forms the tunnel.
My configuration is like this:
#run show interfaces
Interface IP Address S/L Description
--------- ---------- --- -----------
eth0 81.C.C.C/27 u/u WAN
81.A.A.A/27
81B.B.B/27
# show nat source
rule 5 {
destination {
address 172.24.96.0/20
}
exclude
outbound-interface eth0
}
rule 10 {
outbound-interface eth0
source {
address 10.100.0.0/16
}
translation {
address 81.B.B.B
}
}
No traffic on the VPN
peer_196-X-X-X_tunnel_0 up 39m7s 0B/0B 0B/0B 196.X.X.X 196.X.X.X AES_CBC_256/HMAC_SHA1_96
peer_196-X-X-X_tunnel_1 up 40m19s 0B/0B 0B/0B 196.X.X.X 196.X.X.X AES_CBC_256/HMAC_SHA1_96
peer_196-X-X-X_tunnel_2 up 39m42s 0B/0B 0B/0B 196.X.X.X 196.X.X.X AES_CBC_256/HMAC_SHA1_96
peer_196-X-X-X_tunnel_3 up 39m6s 0B/0B 0B/0B 196.X.X.X 196.X.X.X AES_CBC_256/HMAC_SHA1_96
peer_196-X-X-X_tunnel_4 up 38m51s 0B/0B 0B/0B 196.X.X.X 196.X.X.X AES_CBC_256/HMAC_SHA1_96
peer_196-X-X-X_tunnel_5 up 40m11s 0B/0B 0B/0B 196.X.X.X 196.X.X.X AES_CBC_256/HMAC_SHA1_96