I have two subnet
192.168.100.0/24 - ETH0
192.168.200.0/24 - ETH1
WAN - ETH5
My traffic from 192.168.200.0/24 to/from 192.168.100.0/24 is going via NAT (confirmed via traceroute)
Not sure what i’m missing.
vyos# show nat
source {
rule 10 {
destination {
address 192.168.100.0/24
}
exclude
source {
address 192.168.200.0/24
}
translation {
address masquerade
}
}
rule 20 {
destination {
address 192.168.200.0/24
}
exclude
source {
address 192.168.100.0/24
}
translation {
address masquerade
}
}
rule 100 {
destination {
address 0.0.0.0/0
}
source {
address 192.168.100.0/24
}
translation {
address masquerade
}
}
rule 200 {
destination {
address 0.0.0.0/0
}
source {
address 192.168.200.0/24
}
translation {
address masquerade
}
}
rule 300 {
destination {
address 0.0.0.0/0
}
source {
address 10.0.0.0/24
}
translation {
address masquerade
}
}
}
[edit]
routes
vyos:~$ show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
f - OpenFabric,
> - selected route, * - FIB route, q - queued, r - rejected, b - backup
t - trapped, o - offload failure
S>* 0.0.0.0/0 [210/0] via xx.xx.112.1, eth4, weight 1, 02w3d23h
* via xx.xx.3.1, eth5, weight 1, 02w3d23h
C>* 10.0.0.0/24 is directly connected, eth4.100, 02w3d23h
C>* xx.xx.112.0/20 is directly connected, eth4, 02w3d23h
C>* xx.xx.3.0/24 is directly connected, eth5, 02w3d23h
S 192.168.100.0/24 [1/0] is directly connected, eth0, weight 1, 02w3d23h
C>* 192.168.100.0/24 is directly connected, eth0, 02w3d23h
S 192.168.200.0/24 [1/0] is directly connected, eth1, weight 1, 02w3d23h
C>* 192.168.200.0/24 is directly connected, eth1, 02w3d23h