4G-Router with NAS一, 30/08/2021 - 13:01 的修訂版本

修訂版本可以讓你追蹤文章的多個版本的不同之處。

 

 

 


 

 

/etc/openvpn/nas.conf

tls-server
port 1194
proto udp
dev tun0
ifconfig 10.3.0.1 10.3.0.2

cipher AES-256-CBC

persist-key
persist-tun

comp-lzo

ping 5

#tls-auth /etc/openvpn/ssl/ta.key 0
dh   /etc/openvpn/ssl/dh2048.pem
ca   /etc/openvpn/ssl/ca.crt
cert /etc/openvpn/ssl/server.crt
key  /etc/openvpn/ssl/server.key

mute 10
verb 4
log /var/log/openvpn/openvpn.log
status /var/log/openvpn/status

firewall-cmd --add-port=1194/udp --permanent
firewall-cmd --zone=internal --add-interface=tun0 --permanent
firewall-cmd --reload