Skip to content

Commit b334907

Browse files
author
root
committed
curls
1 parent 66e540a commit b334907

File tree

7 files changed

+41
-7
lines changed

7 files changed

+41
-7
lines changed

grupo5/bgpospf/client/curls

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Crear usuario
2+
curl --header "Content-Type: application/json" --request POST --data '{"identifier":"grupo6","password":"ubuntu"}' http://[2001:a:2::2]:8080/auth/local
3+
4+
#Autenticarse
5+
curl --header "Content-Type: application/json" --request POST --data '{"identifier":"grupo6","password":"ubuntu"}' http://[2001:a:2::2]:8080/auth/local
6+
7+
#Agregar servidor
8+
curl --header "Content-Type: application/json" --header "Authorization: Bearer " --request POST --data '{"Nombre":"Servidor3"}' http://[2001:a:2::2]:443/servidores
9+
10+
#Con ssl
11+
--cacert /cliente/ssl_g5/nginx.crt -k
12+
13+
#Peticiones
14+
https://strapi.io/documentation/getting-started/quick-start.html

grupo5/bgpospf/dgw.sh

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ docker exec -it bgpospf_r3_1 ip -6 r del default
66
docker exec -it bgpospf_r5_1 ip -6 r del default
77
docker exec -it bgpospf_r7_1 ip -6 r del default
88
docker exec -it bgpospf_h11_1 ip -6 r del default
9+
docker exec -it bgpospf_h11_1 apt-get -qy install nano
910
docker exec -it bgpospf_h13_1 ip -6 r del default
1011

1112
docker exec -it bgpospf_r3_1 ip -6 r add default via 2001:a:3::3

grupo5/squid/docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ services:
88
# - "3128:3128"
99
volumes:
1010
- ./squid/cache:/var/spool/squid3
11+
- ../bgpospf/resolv.conf:/etc/resolv.conf
12+
- ./squid.conf:/etc/squid3/squid.conf
1113
restart: always
1214
networks:
1315
red3:

grupo5/squid/squid.conf

+9-7
Original file line numberDiff line numberDiff line change
@@ -923,10 +923,12 @@ acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
923923
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
924924
acl localnet src fc00::/7 # RFC 4193 local private network range
925925
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
926-
acl localnet src 2001:a:3::/64
926+
acl localnet src 2001:b:3::/64
927+
927928

928929
acl SSL_ports port 443
929-
acl Safe_ports port 8080
930+
acl Safe_ports port 80 # http
931+
acl Safe_ports port 8080 # http
930932
acl Safe_ports port 21 # ftp
931933
acl Safe_ports port 443 # https
932934
acl Safe_ports port 70 # gopher
@@ -1053,15 +1055,14 @@ acl CONNECT method CONNECT
10531055
# Recommended minimum Access Permission configuration:
10541056
#
10551057
# Deny requests to certain unsafe ports
1056-
#http_access deny !Safe_ports
1058+
http_access deny !Safe_ports
10571059

10581060
# Deny CONNECT to other than secure SSL ports
10591061
#http_access deny CONNECT !SSL_ports
10601062

10611063
# Only allow cachemgr access from localhost
1062-
#http_access allow localhost manager
1063-
http_access allow manager
1064-
#http_access deny manager
1064+
http_access allow localhost manager
1065+
http_access deny manager
10651066

10661067
# We strongly recommend the following be uncommented to protect innocent
10671068
# web applications running on the proxy server who think the only
@@ -1077,9 +1078,10 @@ http_access deny to_localhost
10771078
# from where browsing should be allowed
10781079
http_access allow localnet
10791080
http_access allow localhost
1081+
http_access allow all
10801082

10811083
# And finally deny all other access to this proxy
1082-
http_access deny all
1084+
#http_access deny all
10831085

10841086
# TAG: adapted_http_access
10851087
# Allowing or Denying access based on defined access lists

grupo5/squid/squid/cache/swap.state

-72 Bytes
Binary file not shown.

grupo5/strapidockermaster/docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ services:
1616
#ports:
1717
# - 1337:1337
1818
#volumes:
19+
# - ./strapi2.sh:/strapi.sh
1920
# - ./strapi-app:/usr/src/api/strapi-app
2021
# - /usr/src/api/strapi-app/node_modules
2122
depends_on:

grupo6/bgpospf/client/curls

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#Crear usuario
2+
curl --header "Content-Type: application/json" --request POST --data '{"identifier":"grupo6","password":"ubuntu"}' http://[2001:a:2::2]:8080/auth/local
3+
4+
#Autenticarse
5+
curl --header "Content-Type: application/json" --request POST --data '{"identifier":"grupo6","password":"ubuntu"}' http://[2001:a:2::2]:8080/auth/local
6+
7+
#Agregar servidor
8+
curl --header "Content-Type: application/json" --header "Authorization: Bearer " --request POST --data '{"Nombre":"Servidor3"}' http://[2001:a:2::2]:443/servidores
9+
10+
#Con ssl
11+
--cacert /cliente/ssl_g5/nginx.crt -k
12+
13+
#Peticiones
14+
https://strapi.io/documentation/getting-started/quick-start.html

0 commit comments

Comments
 (0)