Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
| Порівняння попередніх версій Попередня ревізія Наступна ревізія | Попередня ревізія | ||
|
software:os:linux:wireguard [2026/09/11 17:26] charon |
software:os:linux:wireguard [2026/09/11 19:28] (поточний) charon [Настройка мережевих сервісів] |
||
|---|---|---|---|
| Рядок 22: | Рядок 22: | ||
| І налаштувати фаєрвол. Для iptables: | І налаштувати фаєрвол. Для iptables: | ||
| iptables -A INPUT -p udp --dport 51821 -m comment --comment " | iptables -A INPUT -p udp --dport 51821 -m comment --comment " | ||
| + | iptables -A INPUT -i wg0 -m comment --comment "pass from VPN to this server" | ||
| + | | ||
| iptables -A FORWARD -m state --state RELATED, | iptables -A FORWARD -m state --state RELATED, | ||
| iptables -A FORWARD -i wg0 -o wg0 -m comment --comment "VPN clients can talk" -j ACCEPT | iptables -A FORWARD -i wg0 -o wg0 -m comment --comment "VPN clients can talk" -j ACCEPT | ||
| Рядок 38: | Рядок 40: | ||
| </ | </ | ||
| Секцію //Peer// можна спочатку прибрати, | Секцію //Peer// можна спочатку прибрати, | ||
| + | |||
| + | ==== Запустити VPN-сервер ==== | ||
| + | sudo systemctl enable --now wg-quick@wg0 | ||
| + | sudo systemctl status wg-quick@wg0 | ||
| + | sudo wg show | ||
| + | | ||
| + | ==== TODO ==== | ||
| + | додати preshared key | ||