I have 2 WAN(One is adsl, another one has static ip)
ADSL for default routing
Static IP Wan that i want an ip ranges as a firwall group (like google ip ranges) to set routing via static IP)
I’d try PBR but i failed , Anyone who know it, please contact.
EdgeOS has command:
set firewall modify M rule 20 destination group network-group CMNET
set firewall modify M rule 20 action modify
set firewall modify M rule 20 modify table 2
The difference is EdgeOS puts this configuration on the firewall, and VyOS (more sanely in my opinion), puts this information its own section
This is my config that accomplishes two things:
Makes it so I can still access the hosts from my local network.
Routes all traffic from those hosts to my VPN
# show policy route
route PIA {
rule 9 {
destination {
group {
network-group PRIVATE-NETWORKS
}
}
set {
table main
}
source {
group {
address-group PIA
}
}
}
rule 10 {
set {
table 22
}
source {
group {
address-group PIA
}
}
}
}