Ticket #10512: openvpn.txt

File openvpn.txt, 1.1 KB (added by anonymous, 6 years ago)
Line 
1root@OpenWrt config# uci export openvpn
2package 'openvpn'
3
4config 'openvpn' 'lan'
5        option 'enable' '1'
6        option 'port' '1194'
7        option 'proto' 'udp'
8        option 'dev' 'tun'
9        option 'ca' '/etc/openvpn/ca.crt'
10        option 'cert' '/etc/openvpn/server.crt'
11        option 'key' '/etc/openvpn/server.key'
12        option 'dh' '/etc/openvpn/dh1024.pem'
13        option 'script_security' '2'
14        option 'ifconfig_pool_persist' '/tmp/ipp.txt'
15        option 'keepalive' '10 60'
16        option 'comp_lzo' '1'
17        option 'persist_key' '1'
18        option 'persist_tun' '1'
19        option 'status' '/tmp/openvpn-status.log'
20        option 'log' '/tmp/openvpn.log'
21        option 'verb' '3'
22        option 'user' 'nobody'
23        option 'group' 'nogroup'
24        option 'client_connect' '/etc/openvpn/client_connect.sh'
25        option 'client_to_client' '1'
26        option 'server' '10.8.0.0 255.255.255.0'
27        option 'client_config_dir' '/etc/openvpn/clients'
28        list 'push' 'dhcp-option DNS 10.8.0.1'
29        list 'push' 'route 192.168.3.0 255.255.255.0'
30        list 'route' '192.168.0.0 255.255.255.0'