-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from DennoN-RUS/v3.6.0-test
v3.6.0
- Loading branch information
Showing
13 changed files
with
288 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
lists/ | ||
scripts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
protocol bgp antifilter { | ||
table route_vpn1; | ||
import all; | ||
export none; | ||
local as 64999; | ||
neighbor BPGIPINPUT as BGPASINPUT; | ||
multihop; | ||
hold time 240; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,65 @@ | ||
log syslog all; | ||
log stderr all; | ||
|
||
router id 123.123.123.123; # current external ip | ||
|
||
protocol direct { | ||
interface "VPN1INPUT", "VPN2INPUT"; | ||
} | ||
router id IDINPUT; | ||
|
||
table route_force; | ||
table route_vpn1; | ||
table route_vpn2; | ||
|
||
protocol device { | ||
scan time 15; | ||
} | ||
|
||
protocol kernel { | ||
table route_force; | ||
persist; | ||
protocol direct { interface "VPN1INPUT", "VPN2INPUT"; } | ||
protocol device { scan time 15; } | ||
template kernel KERNEL_BASE { | ||
learn; | ||
scan time 900; | ||
scan time 60; | ||
import none; | ||
export all; | ||
kernel table 1000; # kernel routing table number | ||
} | ||
filter pref_50_force { | ||
preference = 50; | ||
accept; | ||
} | ||
filter pref_100_vpn1 { | ||
ifname = "VPN1INPUT"; #MARK_VPN1 | ||
preference = 100; | ||
accept; | ||
} | ||
filter pref_150_vpn2 { | ||
ifname = "VPN2INPUT"; #MARK_VPN2 | ||
preference = 150; | ||
accept; | ||
} | ||
|
||
protocol kernel { | ||
protocol kernel kernel_force from KERNEL_BASE { | ||
export filter pref_50_force; | ||
table route_force; | ||
kernel table 1000; | ||
} | ||
protocol kernel kernel_vpn1 from KERNEL_BASE { | ||
export filter pref_100_vpn1; | ||
table route_vpn1; | ||
persist; | ||
learn; | ||
scan time 900; | ||
import none; | ||
export all; | ||
kernel table 1001; # kernel routing table number | ||
kernel table 1001; | ||
} | ||
|
||
protocol kernel { | ||
protocol kernel kernel_vpn2 from KERNEL_BASE { | ||
export filter pref_150_vpn2; | ||
table route_vpn2; | ||
persist; | ||
learn; | ||
scan time 900; | ||
import none; | ||
export all; | ||
kernel table 1002; # kernel routing table number | ||
kernel table 1002; | ||
} | ||
|
||
protocol static { | ||
protocol static static_force { | ||
table route_force; | ||
include "SYSTEMFOLDERINPUT/etc/bird4-force-isp.list"; | ||
include "SYSTEMFOLDERINPUT/etc/bird4-force-vpn1.list"; | ||
include "SYSTEMFOLDERINPUT/etc/bird4-force-vpn2.list"; | ||
check link on; | ||
preference 50; | ||
include "bird4-force-isp.list"; | ||
include "bird4-force-vpn1.list"; | ||
include "bird4-force-vpn2.list"; | ||
} | ||
|
||
protocol static { | ||
protocol static static_vpn { | ||
table route_vpn1; | ||
include "SYSTEMFOLDERINPUT/etc/bird4-base-vpn1.list"; | ||
include "SYSTEMFOLDERINPUT/etc/bird4-user-vpn1.list"; | ||
check link on; | ||
preference 250; | ||
} | ||
include "bird4-base-vpn.list"; | ||
include "bird4-user-vpn.list"; | ||
} | ||
|
||
protocol static { | ||
table route_vpn2; | ||
include "SYSTEMFOLDERINPUT/etc/bird4-base-vpn2.list"; | ||
include "SYSTEMFOLDERINPUT/etc/bird4-user-vpn2.list"; | ||
check link on; | ||
preference 500; | ||
} | ||
protocol pipe pipe_vpn1_to_vpn2 { | ||
table route_vpn1; | ||
peer table route_vpn2; | ||
export all; | ||
import none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.