-
Notifications
You must be signed in to change notification settings - Fork 1
/
SAP Landing Zone: Plan and Deploy the SAP Network
180 lines (138 loc) · 5.74 KB
/
SAP Landing Zone: Plan and Deploy the SAP Network
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
export Your_Project_Id="Insert your GCP Id here"
gcloud compute networks create xall-vpc--vpc-01 \
--description=XYZ-all VPC network = Standard VPC network - 01" \
\
--project=$Your_Project_Id \
\
--subnet-mode=custom \
--bgp-routing-mode=global \
--mtu=1460
gcloud compute networks subnets create xgl-subnet--cerps-bau-nonprd--be1-01 \
--description="XYZ-Global subnet = CERPS-BaU-NonProd - Belgium 1 (GCP) - 01" \
\
--project=$Your_Project_Id \
--network=xall-vpc--vpc-01 \
--region=us-central1 \
\
--range=10.1.1.0/24 \
--enable-private-ip-google-access \
--enable-flow-logs
gcloud compute firewall-rules create xall-vpc--vpc-01--xall-fw--user--a--linux--v01 \
--description="xall-vpc--vpc-01 - XYZ-all firewall rule = User access - ALLOW standard linux access - version 01" \
\
--project=$Your_Project_Id \
--network=xall-vpc--vpc-01 \
\
--priority=1000 \
--direction=ingress \
--action=allow \
--target-tags=xall-vpc--vpc-01--xall-fw--user--a--linux--v01 \
--source-ranges=0.0.0.0/0 \
--rules=tcp:22,icmp
gcloud compute firewall-rules create xall-vpc--vpc-01--xall-fw--user--a--windows--v01 \
--description="xall-vpc--vpc-01 - XYZ-all firewall rule = User access - ALLOW standard windows access - version 01" \
\
--project=$Your_Project_Id \
--network=xall-vpc--vpc-01 \
\
--priority=1000 \
--direction=ingress \
--action=allow \
--target-tags=xall-vpc--vpc-01--xall-fw--user--a--windows--v01 \
--source-ranges=0.0.0.0/0 \
--rules=tcp:3389,icmp
gcloud compute firewall-rules create xall-vpc--vpc-01--xall-fw--user--a--sapgui--v01 \
--description="xall-vpc--vpc-01 - XYZ-all firewall rule = User access - ALLOW SAPGUI access - version 01" \
\
--project=$Your_Project_Id \
--network=xall-vpc--vpc-01 \
\
--priority=1000 \
--direction=ingress \
--action=allow \
--target-tags=xall-vpc--vpc-01--xall-fw--user--a--sapgui--v01 \
--source-ranges=0.0.0.0/0 \
--rules=tcp:3200-3299,tcp:3600-3699
gcloud compute firewall-rules create xall-vpc--vpc-01--xall-fw--user--a--sap-fiori--v01 \
--description="xall-vpc--vpc-01 - XYZ-all firewall rule = User access - ALLOW SAP Fiori access - version 01" \
\
--project=$Your_Project_Id \
--network=xall-vpc--vpc-01 \
\
--priority=1000 \
--direction=ingress \
--action=allow \
--target-tags=xall-vpc--vpc-01--xall-fw--user--a--sap-fiori--v01 \
--source-ranges=0.0.0.0/0 \
--rules=tcp:80,tcp:8000-8099,tcp:443,tcp:4300-44300
gcloud compute firewall-rules create xall-vpc--vpc-01--xgl-fw--cerps-bau-dev--a-env--v01 \
--description="xall-vpc--vpc-01 - XYZ-Global firewall rule = CERPS-BaU-Dev - ALLOW environment wide access - version 01" \
\
--project=$Your_Project_Id \
--network=xall-vpc--vpc-01 \
\
--priority=1000 \
--direction=ingress \
--action=allow \
--target-tags=xall-vpc--vpc-01--xgl-fw--cerps-bau-dev--a-env--v01 \
--source-tags=xall-vpc--vpc-01--xgl-fw--cerps-bau-dev--a-env--v01 \
--rules=tcp:3200-3299,tcp:3300-3399,tcp:4800-4899,tcp:80,tcp:8000-8099,tcp:443,tcp:44300-44399,tcp:3600-3699,tcp:8100-8199,tcp:44400-44499,tcp:50000-59999,tcp:30000-39999,tcp:4300-4399,tcp:40000-49999,tcp:1128-1129,tcp:5050,tcp:8000-8499,tcp:515,icmp
gcloud compute firewall-rules create xall-vpc--vpc-01--xgl-fw--cerps-bau-dev--a-ds4--v01 \
--description="xall-vpc--vpc-01 - XYZ-Global firewall rule = CERPS-BaU-Dev - ALLOW SAP S4 (DS4) system wide access - version 01" \
\
--project=$Your_Project_Id \
--network=xall-vpc--vpc-01 \
\
--priority=1000 \
--direction=ingress \
--action=allow \
--target-tags=xall-vpc--vpc-01--xgl-fw--cerps-bau-dev--a-ds4--v01 \
--source-tags=xall-vpc--vpc-01--xgl-fw--cerps-bau-dev--a-ds4--v01 \
--rules=tcp,udp,icmp
gcloud compute addresses create xgl-ip-address--cerps-bau-dev--dh1--d-cerpshana1 \
--description="XYZ-Global reserved IP address = CERPS-BaU-Dev - SAP HANA 1 (DH1) - d-cerpshana1" \
\
--project=$Your_Project_Id \
--region=us-central1 \
--subnet=xgl-subnet--cerps-bau-nonprd--be1-01 \
\
--addresses=10.1.1.100
gcloud compute addresses create xgl-ip-address--cerps-bau-dev--ds4--d-cerpss4db \
--description="XYZ-Global reserved IP address = CERPS-BaU-Dev - SAP S4 (DS4) - d-cerpss4db" \
\
--project=$Your_Project_Id \
--region=us-central1 \
--subnet=xgl-subnet--cerps-bau-nonprd--be1-01 \
\
--addresses=10.1.1.101
gcloud compute addresses create xgl-ip-address--cerps-bau-dev--ds4--d-cerpss4scs \
--description="XYZ-Global reserved IP address = CERPS-BaU-Dev - SAP S4 (DS4) - d-cerpss4scs" \
\
--project=$Your_Project_Id \
--region=us-central1 \
--subnet=xgl-subnet--cerps-bau-nonprd--be1-01 \
\
--addresses=10.1.1.102
gcloud compute addresses create xgl-ip-address--cerps-bau-dev--ds4--d-cerpss4app1 \
--description="XYZ-Global reserved IP address = CERPS-BaU-Dev - SAP S4 (DS4) - d-cerpss4app1" \
\
--project=$Your_Project_Id \
--region=us-central1 \
--subnet=xgl-subnet--cerps-bau-nonprd--be1-01 \
\
--addresses=10.1.1.103
gcloud compute routers create xall-vpc--vpc-01--xall-router--shared-nat--de1-01 \
--description="xall-vpc--vpc-01 - XYZ-Global router = Shared NAT - Germany 1 (GCP) - 01" \
\
--project=$Your_Project_Id \
--region=us-central1 \
--network=xall-vpc--vpc-01
gcloud compute routers nats create xall-vpc--vpc-01--xall-nat-gw--shared-nat--de1-01 \
\
--project=$Your_Project_Id \
--region=us-central1 \
--router=xall-vpc--vpc-01--xall-router--shared-nat--de1-01 \
\
--auto-allocate-nat-external-ips \
--nat-all-subnet-ip-ranges \
--enable-logging