ajout tp3 mail
This commit is contained in:
139
tp3-files/global.json
Normal file
139
tp3-files/global.json
Normal file
@ -0,0 +1,139 @@
|
||||
{
|
||||
"prefix-containers":"mi-",
|
||||
"prefix-bridges":"mi-",
|
||||
"nat-bridge":"lxcbr0",
|
||||
"comment":"An interconnected network of different AS with internet services",
|
||||
"masters": [
|
||||
{
|
||||
"backend":"lxc",
|
||||
"template":"download",
|
||||
"parameters":{"dist": "debian", "release": "bullseye", "arch": "amd64", "no-validate": "true"},
|
||||
"family":"debian",
|
||||
"name":"bullseye"
|
||||
},
|
||||
{
|
||||
"backend":"lxc",
|
||||
"template":"download",
|
||||
"parameters":{"dist": "debian", "release": "buster", "arch": "amd64", "no-validate": "true"},
|
||||
"family":"debian",
|
||||
"name":"buster",
|
||||
"status":"disabled"
|
||||
},
|
||||
{
|
||||
"backend":"lxc",
|
||||
"template":"download",
|
||||
"parameters":{"dist": "debian", "release": "stretch", "arch": "amd64", "no-validate": "true"},
|
||||
"name":"stretch",
|
||||
"family":"debian",
|
||||
"status":"disabled"
|
||||
},
|
||||
{
|
||||
"backend":"lxc",
|
||||
"template":"download",
|
||||
"parameters":{"dist": "alpine", "release": "3.14", "arch": "amd64", "no-validate": "true"},
|
||||
"name":"alpine",
|
||||
"family":"alpine",
|
||||
"status":"enabled"
|
||||
},
|
||||
{
|
||||
"backend":"dynamips",
|
||||
"rom":"templates/groups/as-bgp-dynamips/bgprouter/bins/c3640-js-m.124-3g.bin",
|
||||
"name":"cisco-3640",
|
||||
"family":"c3640",
|
||||
"status":"disabled"
|
||||
}],
|
||||
"groups": {
|
||||
"transit-a": {
|
||||
"templates":[{"template":"as-bgp", "asn":"30", "neighbors4":"100.64.0.10 as 10;100.64.0.30 as 7;100.64.0.40 as 8; 100.64.0.2 as 31; 100.64.0.20 as 6; 100.64.0.50 as 13; 100.64.0.90 as 56",
|
||||
"neighbors6":"2001:db8:b000::10 as 10; 2001:db8:b000::30 as 7;2001:db8:b000::40 as 8; 2001:db8:b000::2 as 31; 2001:db8:b000::20 as 6; 2001:db8:b000::50 as 13; 2001:db8:b000::90 as 56",
|
||||
"interfaces":[
|
||||
{"bridge":"nat-bridge", "ipv4":"dhcp"},
|
||||
{"bridge":"transit-a", "ipv4":"100.64.0.1/24", "ipv6":"2001:db8:b000::1/48"}
|
||||
]
|
||||
}]},
|
||||
"transit-b": {
|
||||
"templates":[{"template":"as-bgp", "asn":"31", "neighbors4":"100.64.0.1 as 30;100.64.1.20 as 5;100.64.1.10 as 20;100.64.1.30 as 7;100.64.1.40 as 12;100.64.1.50 as 11",
|
||||
"neighbors6":"2001:db8:b000::1 as 30;2001:db8:b001::20 as 5;2001:db8:b001::10 as 20;2001:db8:b001::30 as 7;2001:db8:b001::40 as 12;2001:db8:b001::50 as 11",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-b", "ipv4":"100.64.1.1/24", "ipv6":"2001:db8:b001::1/48"},
|
||||
{"bridge":"transit-a", "ipv4":"100.64.0.2/24", "ipv6":"2001:db8:b000::2/48"}
|
||||
]
|
||||
}]},
|
||||
"target": {
|
||||
"templates":[{"template":"as-bgp-debian", "asn":"10", "asdev":"eth1", "neighbors4":"100.64.0.1 as 30", "neighbors6":"2001:db8:b000::1 as 30",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-a", "ipv4":"100.64.0.10/24", "ipv6":"2001:db8:b000::10/48"},
|
||||
{"bridge":"target-lan", "ipv4":"100.80.0.1/16", "ipv6":"2001:db8:80::0:1/48"}
|
||||
]
|
||||
}]},
|
||||
"mica": {
|
||||
"templates":[{"template":"as-bgp", "asn":"12", "asdev":"eth1", "neighbors4":"100.64.1.1 as 31", "neighbors6":"2001:db8:b001::1 as 31",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-b", "ipv4":"100.64.1.40/24", "ipv6":"2001:db8:b001::40/48"},
|
||||
{"bridge":"mica-lan", "ipv4":"100.82.0.1/16", "ipv6":"2001:db8:82::1/48"}
|
||||
]
|
||||
}]},
|
||||
"ecorp": {
|
||||
"templates":[{"template":"as-bgp", "asn":"11", "asdev":"eth1", "neighbors4":"100.64.1.1 as 31","neighbors6":"2001:db8:b001::1 as 31",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-b", "ipv4":"100.64.1.50/24", "ipv6":"2001:db8:b001::50/48"},
|
||||
{"bridge":"ecorp-lan", "ipv4":"100.81.0.1/16", "ipv6":"2001:db8:81::1/48"}
|
||||
]
|
||||
}]},
|
||||
"gozilla": {
|
||||
"templates":[{"template":"as-bgp", "asn":"13", "asdev":"eth1", "neighbors4":"100.64.0.1 as 30","neighbors6":"2001:db8:b000::1 as 30",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-a", "ipv4":"100.64.0.50/24", "ipv6":"2001:db8:b000::50/48"},
|
||||
{"bridge":"gozilla-lan", "ipv4":"100.83.0.1/16", "ipv6":"2001:db8:83::1/48"}
|
||||
]
|
||||
}]},
|
||||
"isp-a": {
|
||||
"templates":[{"template":"as-bgp", "asn":"20", "asdev":"eth1;eth2", "neighbors4":"100.64.1.1 as 31","neighbors6":"2001:db8:b001::1 as 31",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-b", "ipv4":"100.64.1.10/24", "ipv6":"2001:db8:b001::10/48"},
|
||||
{"bridge":"isp-a-cust", "ipv4":"100.120.0.1/24"},
|
||||
{"bridge":"isp-a-infra", "ipv4":"100.120.1.1/24", "ipv6":"2001:db8:120:1::1/64"}
|
||||
]
|
||||
}]},
|
||||
"root-o": {
|
||||
"templates":[{"template":"as-bgp", "asn":"5", "asdev":"eth1", "neighbors4":"100.64.1.1 as 31", "neighbors6":"2001:db8:b001::1 as 31",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-b", "ipv4":"100.64.1.20/24", "ipv6":"2001:db8:b001::20/48"},
|
||||
{"bridge":"root-o-lan", "ipv4":"100.100.0.1/24", "ipv6":"2001:db8:a000::1/48"}
|
||||
]
|
||||
},
|
||||
{"template":"dns-root", "ipv4":"100.100.0.10/24", "gatewayv4":"100.100.0.1", "ipv6":"2001:db8:a000::10/48", "gatewayv6":"2001:db8:a000::1", "domain":"ns-root-o.milxc"}
|
||||
]},
|
||||
"root-p": {
|
||||
"templates":[{"template":"as-bgp", "asn":"6", "asdev":"eth1", "neighbors4":"100.64.0.1 as 30", "neighbors6":"2001:db8:b000::1 as 30",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-a", "ipv4":"100.64.0.20/24", "ipv6":"2001:db8:b000::20/48"},
|
||||
{"bridge":"root-p-lan", "ipv4":"100.100.1.1/24", "ipv6":"2001:db8:a001::1/48"}
|
||||
]
|
||||
},
|
||||
{"template":"dns-root", "ipv4":"100.100.1.10/24", "gatewayv4":"100.100.1.1", "ipv6":"2001:db8:a001::10/48", "gatewayv6":"2001:db8:a001::1", "domain":"ns-root-p.milxc"}
|
||||
]},
|
||||
"opendns": {
|
||||
"templates":[{"template":"as-bgp", "asn":"7", "asdev":"eth2", "neighbors4":"100.64.0.1 as 30;100.64.1.1 as 31","neighbors6":"2001:db8:b000::1 as 30;2001:db8:b001::1 as 31",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-a", "ipv4":"100.64.0.30/24", "ipv6":"2001:db8:b000::30/48"},
|
||||
{"bridge":"transit-b", "ipv4":"100.64.1.30/24", "ipv6":"2001:db8:b001::30/48"},
|
||||
{"bridge":"opendns-lan", "ipv4":"100.100.100.1/24", "ipv6":"2001:db8:a100::1/48"}
|
||||
]
|
||||
}]},
|
||||
"milxc": {
|
||||
"templates":[{"template":"as-bgp", "asn":"8", "asdev":"eth1", "neighbors4":"100.64.0.1 as 30","neighbors6":"2001:db8:b000::1 as 30",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-a", "ipv4":"100.64.0.40/24", "ipv6":"2001:db8:b000::40/48"},
|
||||
{"bridge":"milxc-lan", "ipv4":"100.100.20.1/24", "ipv6":"2001:db8:a020::1/48"}
|
||||
]
|
||||
}]},
|
||||
"iutva": {
|
||||
"templates":[{"template":"as-bgp", "asn":"56", "asdev":"eth1", "neighbors4":"100.64.0.1 as 30","neighbors6":"2001:db8:b000::1 as 30",
|
||||
"interfaces":[
|
||||
{"bridge":"transit-a", "ipv4":"100.64.0.90/24", "ipv6":"2001:db8:b000::90/48"},
|
||||
{"bridge":"iutva-lan", "ipv4":"100.90.0.1/16", "ipv6":"2001:db8:90::1/48"}
|
||||
]
|
||||
}]}
|
||||
}
|
||||
}
|
13
tp3-files/iutva.milxc.zone
Normal file
13
tp3-files/iutva.milxc.zone
Normal file
@ -0,0 +1,13 @@
|
||||
$TTL 86400
|
||||
$ORIGIN iutva.milxc.
|
||||
@ 1D IN SOA ns.iutva.milxc. hostmaster.iutva.milxc. (
|
||||
2002022401 ; serial
|
||||
3H ; refresh
|
||||
15 ; retry
|
||||
1w ; expire
|
||||
3h ; nxdomain ttl
|
||||
)
|
||||
IN NS ns.iutva.milxc.
|
||||
ns IN A 100.90.0.2
|
||||
infra IN A 100.90.0.2
|
||||
www IN CNAME infra
|
38
tp3-files/local.json
Normal file
38
tp3-files/local.json
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
"comment": "IUTVA AS",
|
||||
"containers": {
|
||||
"infra": {
|
||||
"container": "infra",
|
||||
"interfaces": [
|
||||
{"bridge": "lan", "ipv4": "100.90.0.2/16", "ipv6": "2001:db8:90::2/48"}
|
||||
],
|
||||
"gatewayv4": "100.90.0.1",
|
||||
"gatewayv6": "2001:db8:90::1",
|
||||
"templates": [
|
||||
{"template": "nodhcp", "domain": "iutva.milxc", "ns": "100.100.100.100"}
|
||||
]
|
||||
},
|
||||
"mail": {
|
||||
"container": "mail",
|
||||
"interfaces": [
|
||||
{"bridge": "lan", "ipv4": "100.90.0.3/16", "ipv6": "2001:db8:90::3/48"}
|
||||
],
|
||||
"gatewayv4": "100.90.0.1",
|
||||
"gatewayv6": "2001:db8:90::1",
|
||||
"templates": [
|
||||
{"template": "nodhcp", "domain": "iutva.milxc", "ns": "100.100.100.100"}
|
||||
]
|
||||
},
|
||||
"poste": {
|
||||
"container": "poste",
|
||||
"interfaces": [
|
||||
{"bridge": "lan", "ipv4": "100.90.0.4/16", "ipv6": "2001:db8:90::4/48"}
|
||||
],
|
||||
"gatewayv4": "100.90.0.1",
|
||||
"gatewayv6": "2001:db8:90::1",
|
||||
"templates": [
|
||||
{"template": "nodhcp", "domain": "iutva.milxc", "ns": "100.100.100.100"}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
29
tp3-files/milxc.zone
Normal file
29
tp3-files/milxc.zone
Normal file
@ -0,0 +1,29 @@
|
||||
$TTL 86400
|
||||
$ORIGIN milxc.
|
||||
@ 1D IN SOA ns.milxc. hostmaster.milxc. (
|
||||
2002022401 ; serial
|
||||
3H ; refresh
|
||||
15 ; retry
|
||||
1w ; expire
|
||||
3h ; nxdomain ttl
|
||||
)
|
||||
IN NS ns.milxc.
|
||||
ns IN A 100.100.20.10 ;name server definition
|
||||
ns IN AAAA 2001:db8:a020::10
|
||||
target.milxc. IN NS ns.target.milxc.
|
||||
ns.target.milxc. IN A 100.80.1.2
|
||||
ns.target.milxc. IN AAAA 2001:db8:80::1:2
|
||||
isp-a.milxc. IN NS ns.isp-a.milxc.
|
||||
ns.isp-a.milxc. IN A 100.120.1.2
|
||||
ns.isp-a.milxc. IN AAAA 2001:db8:120:1::2
|
||||
mica.milxc. IN NS ns.mica.milxc.
|
||||
ns.mica.milxc. IN A 100.82.0.2
|
||||
ns.mica.milxc. IN AAAA 2001:db8:82::2
|
||||
ecorp.milxc. IN NS ns.ecorp.milxc.
|
||||
ns.ecorp.milxc. IN A 100.81.0.2
|
||||
ns.ecorp.milxc. IN AAAA 2001:db8:81::2
|
||||
gozilla.milxc. IN NS ns.gozilla.milxc.
|
||||
ns.gozilla.milxc. IN A 100.83.0.2
|
||||
ns.gozilla.milxc. IN AAAA 2001:db8:83::2
|
||||
iutva.milxc. IN NS ns.iutva.milxc.
|
||||
ns.iutva.milxc. IN A 100.90.0.2
|
3
tp3-files/server.conf
Normal file
3
tp3-files/server.conf
Normal file
@ -0,0 +1,3 @@
|
||||
zone:
|
||||
name: "iutva.milxc."
|
||||
zonefile: "/etc/nsd/iutva.milxc.zone"
|
Reference in New Issue
Block a user