redir
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
redir [2018/12/20 13:46] – créée simon | redir [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Redir ====== | ||
- | ===== Utilisation de base ===== | ||
- | <code bash> | ||
- | $ sudo redir :9875 192.168.1.101: | ||
- | </ | ||
- | ===== Dans un service systemd ===== | ||
- | <code bash> | ||
- | $ sudo vim / | ||
- | [Unit] | ||
- | Description=Service redir pour la redirection de ports vers l' | ||
- | After=network-online.target | ||
- | Wants=network-online.target | ||
- | |||
- | [Service] | ||
- | ExecStart=/ | ||
- | |||
- | [Install] | ||
- | WantedBy=multi-user.target | ||
- | </ | ||
- | |||
- | On active le service et on vérifie : | ||
- | <code bash> | ||
- | $ sudo systemctl enable redir.service | ||
- | Created symlink / | ||
- | |||
- | $ netstat -nat | ||
- | Connexions Internet actives (serveurs et établies) | ||
- | Proto Recv-Q Send-Q Adresse locale | ||
- | (...) | ||
- | tcp 0 0 0.0.0.0: | ||
- | (...) | ||
- | |||
- | $ sudo systemctl status redir-odroid.service | ||
- | ● redir-odroid.service - Service redir pour la redirection de ports vers l' | ||
- | | ||
- | | ||
- | Main PID: 1846 (redir) | ||
- | | ||
- | | ||
- | |||
- | déc 20 14:38:12 raspberrypi systemd[1]: Started Service redir pour la redirection de ports | ||
- | </ |
redir.1545313587.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)