[GTER] PBR EM VYOS

Francisco V Brasileiro francisco at brasileiro.adm.br
Wed Aug 22 07:33:12 -03 2018


Basicamente é o seguinte:

set interfaces ethernet eth0 policy route 'SOURCE-NET'

set policy route SOURCE-NET rule 10 description 'Saida Via Link1'
set policy route SOURCE-NET rule 10 destination address '0.0.0.0/0'
set policy route SOURCE-NET rule 10 set table '1'
set policy route SOURCE-NET rule 10 source address '192.168.1.0/24'
set policy route SOURCE-NET rule 20 description 'Saida Via Link1'
set policy route SOURCE-NET rule 20 destination address '0.0.0.0/0'
set policy route SOURCE-NET rule 20 set table '1'
set policy route SOURCE-NET rule 20 source address '192.168.2.0/24'
set policy route SOURCE-NET rule 30 description 'Saida Via Link2'
set policy route SOURCE-NET rule 30 destination address '0.0.0.0/0'
set policy route SOURCE-NET rule 30 set table '2'
set policy route SOURCE-NET rule 30 source address '192.168.3.0/24'

set protocols static table 1 route 0.0.0.0/0 next-hop '100.100.100.1'
set protocols static table 2 route 0.0.0.0/0 next-hop '200.200.200.1'


"A meta de uma discussão ou debate não deveria ser a vitória, mas o
progresso."
--Joseph Joubert, Pensées, 1842

______________________________________________________________________
Francisco Vasconcelos Brasileiro             francisco at brasileiro.adm.br
UIN: 6826562                                          Linux User: #101368


Em sex, 17 de ago de 2018 às 20:49, ROBSON MENDES <robsonzmendes at gmail.com>
escreveu:

> Você tem algum exemplo disso?
>
> Em sex, 17 de ago de 2018 16:53, Francisco V Brasileiro <
> francisco at brasileiro.adm.br> escreveu:
>
> > Sim, funciona bem, é só criar as tables e a policy.
> >
> > https://wiki.vyos.net/wiki/User_Guide#Policy_Routing
> >
> >
> > Em Sex, 17 de ago de 2018 16:02, ROBSON MENDES <robsonzmendes at gmail.com>
> > escreveu:
> >
> > > Boa tarde, alguém já PBR com Vyos?
> > > --
> > > gter list    https://eng.registro.br/mailman/listinfo/gter
> > >
> > --
> > gter list    https://eng.registro.br/mailman/listinfo/gter
> >
> --
> gter list    https://eng.registro.br/mailman/listinfo/gter
>



More information about the gter mailing list