Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
| Порівняння попередніх версій Попередня ревізія | |||
|
software:os:linux:wireguard [2026/09/11 17:28] 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 | ||