Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client
- dev tun
- proto udp
- remote 192.168.8.18 2000
- resolv-retry infinite
- nobind
- persist-key
- persist-tun
- verb 3
- ca "C:\Users\USERNAME\OpenVPN\config\ca.crt"
- cert "C:\Users\USERNAME\OpenVPN\config\client.crt"
- key "C:\Users\USERNAME\OpenVPN\config\client.key"
- remote-cert-tls server
- cipher AES-256-CBC
- route-method exe
- route-delay 2
- port 1194
- proto udp
- dev tun
- ca /etc/openvpn/easy-rsa/keys/ca.crt
- cert /etc/openvpn/easy-rsa/keys/server.crt
- key /etc/openvpn/easy-rsa/keys/server.key
- dh /etc/openvpn/dh2048.pem
- server 10.8.0.0 255.255.255.0
- ifconfig-pool-persist ipp.txt
- push "redirect-gateway def1"
- push "dhcp-option DNS 8.8.8.8"
- client-to-client
- keepalive 10 120
- cipher AES-256-CBC
- user nobody
- group nobody
- persist-key
- persist-tun
- status openvpn-status.log
- verb 3
- explicit-exit-notify 1
- udp server -s -l 0.0.0.0:6666 -r 127.0.0.1:1194
- udp client -c -l 0.0.0.0:2000 -r myvpsip:6666
- iptables -t nat -A POSTROUTING -s 192.168.8.0/24 -o eth0 -j MASQUERADE
- iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
- iptables -t nat -A POSTROUTING -s 192.168.8.0/24 -j MASQUERADE
- iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j MASQUERADE
Add Comment
Please, Sign In to add comment