воскресенье, 17 декабря 2017 г.

openvpn

Начальная установка по этому манулу

И правила для iptables
# Generated by iptables-save v1.4.21 on Sun Dec 17 14:16:49 2017
*nat
:PREROUTING ACCEPT [1195:90375]
:INPUT ACCEPT [138:8561]
:OUTPUT ACCEPT [193:10888]
:POSTROUTING ACCEPT [195:10948]
-A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
COMMIT
# Completed on Sun Dec 17 14:16:49 2017
# Generated by iptables-save v1.4.21 on Sun Dec 17 14:16:49 2017
*filter
:INPUT ACCEPT [141:7959]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [44692:85212805]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i tun+ -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 1194 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -i tun+ -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -m state --state NEW -j ACCEPT
COMMIT
# Completed on Sun Dec 17 14:16:49 2017

Комментариев нет:

Отправить комментарий