Compare commits
	
		
			No commits in common. "master" and "lint-all" have entirely different histories.
		
	
	
		
	
		
					 4 changed files with 7 additions and 44 deletions
				
			
		| 
						 | 
					@ -8,7 +8,6 @@ deploy_commands_alias:
 | 
				
			||||||
  - echo "deploy $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_DIR or $${DEPLOY_DIR}"
 | 
					  - echo "deploy $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_DIR or $${DEPLOY_DIR}"
 | 
				
			||||||
  - echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key
 | 
					  - echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key
 | 
				
			||||||
  - chmod 0600 deploy_key
 | 
					  - chmod 0600 deploy_key
 | 
				
			||||||
  - echo "echo something otherwise the next line unterminated quote"
 | 
					 | 
				
			||||||
  - ssh -i deploy_key -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST rm -Rf $${DEPLOY_DIR}/output/
 | 
					  - ssh -i deploy_key -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST rm -Rf $${DEPLOY_DIR}/output/
 | 
				
			||||||
  - scp -r -i deploy_key -o StrictHostKeyChecking=no output $DEPLOY_USER@$DEPLOY_HOST:$${DEPLOY_DIR}
 | 
					  - scp -r -i deploy_key -o StrictHostKeyChecking=no output $DEPLOY_USER@$DEPLOY_HOST:$${DEPLOY_DIR}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,7 +31,7 @@ steps:
 | 
				
			||||||
      from_secret: deploy_host
 | 
					      from_secret: deploy_host
 | 
				
			||||||
    DEPLOY_KEY:
 | 
					    DEPLOY_KEY:
 | 
				
			||||||
      from_secret: deploy_key
 | 
					      from_secret: deploy_key
 | 
				
			||||||
    DEPLOY_DIR: /srv/http/blog-dev
 | 
					    DEPLOY_DIR: /srv/http/blog-lan
 | 
				
			||||||
  <<: *deploy_commands
 | 
					  <<: *deploy_commands
 | 
				
			||||||
  when:
 | 
					  when:
 | 
				
			||||||
    branch:
 | 
					    branch:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,36 +0,0 @@
 | 
				
			||||||
Title: Tuto element
 | 
					 | 
				
			||||||
Author: kleph
 | 
					 | 
				
			||||||
Email: kleph@kleph.eu
 | 
					 | 
				
			||||||
Category: Blog
 | 
					 | 
				
			||||||
Date: 2021/01/13
 | 
					 | 
				
			||||||
Tags: Tuto
 | 
					 | 
				
			||||||
Lang: fr
 | 
					 | 
				
			||||||
Summary: Tutoriel pour element
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[TOC]
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# TL;DR
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Pour les gens pressés.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Téléphone
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- Installer cette [app](https://element.io/get-started), [la lancer !], choisir la troisième case, "autre serveur" et mettre `https://kleph.eu` comme adresse
 | 
					 | 
				
			||||||
- Créer un compte.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## navigateur
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- Aller là : [https://kleph.eu/riot-web](https://kleph.eu/riot-web/)
 | 
					 | 
				
			||||||
- Créer un compte.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Plus de détails
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Forme des adresses
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
En gros, les adresses sont de la forme : `@kleph:kleph.eu`
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
`@kleph`, c'est mon pseudo/nick/handle, `:kleph.eu` c'est le homeserveur de mon compte.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Si sur l'interface tu crées un compte `Toto`, tu auras une adresse de la forme `@Toto:kleph.eu`
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# TODO: expliquer la recherche
 | 
					 | 
				
			||||||
| 
						 | 
					@ -30,7 +30,7 @@ TODO: config kernel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
On va tout d'abord isoler et marquer les paquets que l'on souhaite rediriger. Je l'ai fait avec iptables qui a une cible spécialement prévu à cet effet, [MARK][1].
 | 
					On va tout d'abord isoler et marquer les paquets que l'on souhaite rediriger. Je l'ai fait avec iptables qui a une cible spécialement prévu à cet effet, [MARK][1].
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```console
 | 
				
			||||||
iptables -t mangle -A OUTPUT -p udp --dport 1935 -j MARK --set-mark 0x9
 | 
					iptables -t mangle -A OUTPUT -p udp --dport 1935 -j MARK --set-mark 0x9
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -45,19 +45,19 @@ Sachez juste qu'il est possible de rajouter des tables, en plus de la table "mai
 | 
				
			||||||
 | 
					
 | 
				
			||||||
J'ai donc rajouté une ligne à ce fichier :
 | 
					J'ai donc rajouté une ligne à ce fichier :
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```console
 | 
				
			||||||
2       vpn
 | 
					2       vpn
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Et ensuite, je vais affecter une passerelle par défaut à cette table différente de celle de la table principale :
 | 
					Et ensuite, je vais affecter une passerelle par défaut à cette table différente de celle de la table principale :
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```console
 | 
				
			||||||
ip route add default via 192.168.1.1 table vpn
 | 
					ip route add default via 192.168.1.1 table vpn
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Il reste ensuite à définir la règle pour associer les paquets marqués par iptables à cette table de routage :
 | 
					Il reste ensuite à définir la règle pour associer les paquets marqués par iptables à cette table de routage :
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```console
 | 
				
			||||||
ip rule add fwmark 9 pref 10 lookup vpn
 | 
					ip rule add fwmark 9 pref 10 lookup vpn
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,7 +13,7 @@
 | 
				
			||||||
.highlight .gr { color: #FF0000 } /* Generic.Error */
 | 
					.highlight .gr { color: #FF0000 } /* Generic.Error */
 | 
				
			||||||
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
 | 
					.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
 | 
				
			||||||
.highlight .gi { color: #00A000 } /* Generic.Inserted */
 | 
					.highlight .gi { color: #00A000 } /* Generic.Inserted */
 | 
				
			||||||
.highlight .go { color: #707070 } /* Generic.Output */
 | 
					.highlight .go { color: #303030 } /* Generic.Output */
 | 
				
			||||||
.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
 | 
					.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
 | 
				
			||||||
.highlight .gs { font-weight: bold } /* Generic.Strong */
 | 
					.highlight .gs { font-weight: bold } /* Generic.Strong */
 | 
				
			||||||
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
 | 
					.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue