Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
UNIX command line
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ghislain Durif
UNIX command line
Commits
37c4c9ad
Unverified
Commit
37c4c9ad
authored
4 years ago
by
Laurent Modolo
Browse files
Options
Downloads
Patches
Plain Diff
split config script to match ifb requirements
parent
4c85c23c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deploy.sh
+8
-0
8 additions, 0 deletions
deploy.sh
install.sh
+1
-9
1 addition, 9 deletions
install.sh
with
9 additions
and
9 deletions
deploy.sh
0 → 100644
+
8
−
0
View file @
37c4c9ad
USER_PASSWORD
=
$(
openssl rand
-hex
12
)
sudo
passwd etudiant
<<
EOF
${
USER_PASSWORD
}
${
USER_PASSWORD
}
EOF
HTTP_ENDP
=
"https://
$HOST_NAME
"
ss-set url.service
"
${
HTTP_ENDP
}
"
ss-set ss:url.service
"[HTTPS]
$HTTP_ENDP
,[LOGIN]
$etudiant
,[PASSWORD]
$USER_PASSWORD
"
This diff is collapsed.
Click to expand it.
server_init
.sh
→
install
.sh
+
1
−
9
View file @
37c4c9ad
...
...
@@ -5,16 +5,8 @@ sudo iptables -t filter -A INPUT -p tcp --dport 443 -j ACCEPT
sudo
iptables
-t
filter
-A
OUTPUT
-p
tcp
--dport
443
-j
ACCEPT
sudo
iptables-save
sudo
systemctl restart shellinabox
sudo
useradd
-m
-s
/bin/bash
-g
users
-G
adm,dialout,cdrom,floppy,
sudo,
audio,dip,video,plugdev,netdev etudiant
sudo
useradd
-m
-s
/bin/bash
-g
users
-G
adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev etudiant
sudo cp
/etc/skel/.
*
/home/etudiant/
USER_PASSWORD
=
$(
openssl rand
-hex
12
)
sudo
passwd etudiant
<<
EOF
${
USER_PASSWORD
}
${
USER_PASSWORD
}
EOF
HTTP_ENDP
=
"https://
$HOST_NAME
"
ss-set url.service
"
${
HTTP_ENDP
}
"
ss-set ss:url.service
"[HTTPS]
$HTTP_ENDP
,[LOGIN]
$etudiant
,[PASSWORD]
$USER_PASSWORD
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment