1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
process stdout {
encoder json;
run "./flow-change.py";
}
neighbor IP {
description "router";
router-id 127.0.0.0;
local-address 127.0.0.1;
local-as 65533;
peer-as 65534;
hold-time 9;
# graceful-restart 1200;
# host-name my.localhost;
# domain-name mangin.com;
family {
ipv4 unicast;
ipv4 flow;
ipv4 flow-vpn;
}
api {
processes [stdout ];
receive {
parsed;
operational;
}
}
flow {
# route first-vpn-route {
# rd 65535:65536;
# match {
# source 10.0.0.1/32;
# }
# then {
# discard;
# }
# }
route block_traffic_to_proxy {
match {
source 10.0.0.1/32;
destination 10.0.0.2/32;
destination-port >=80&<=90;
protocol tcp;
}
then {
discard;
}
}
}
}
|