Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local LOCALADDRESS
- dev tun
- proto udp #Some people prefer to use tcp. Don't change it if you don't know.
- port PORT
- ca /etc/openvpn/easy-rsa/keys/ca.crt
- cert /etc/openvpn/easy-rsa/keys/casa-jundiai.crt # SWAP WITH YOUR CRT NAME
- key /etc/openvpn/easy-rsa/keys/casa-jundiai.key # SWAP WITH YOUR KEY NAME
- dh /etc/openvpn/easy-rsa/keys/dh1024.pem # If you changed to 2048, change that here!
- server ADRESS NETMASK
- # server and remote endpoints
- ifconfig IP1 IP2
- # Add route to Client routing table for the OpenVPN Server
- push "route IP1 MASK"
- # Add route to Client routing table for the OpenVPN Subnet
- #push "route IP MASK"
- # your local subnet
- #push "route IP MASK" # SWAP THE IP NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
- # Set primary domain name server address to the SOHO Router
- # If your router does not do DNS, you can use Google DNS 8.8.8.8
- push "dhcp-option DNS IP" # This should already match your router address and not need to be changed.
- # Override the Client default gateway by using 0.0.0.0/1 and
- # 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
- # overriding but not wiping out the original default gateway.
- #push "redirect-gateway def1"
- client-to-client
- duplicate-cn
- keepalive 10 120
- #tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
- #cipher AES-128-CBC
- #cipher CAST5-CBC
- cipher DES-EDE3-CBC
- comp-lzo
- user nobody
- group nogroup
- persist-key
- persist-tun
- status /var/log/openvpn-status.log 20
- log /var/log/openvpn.log
- verb 1
- # Client config directory
- #ifconfig-pool IP MASK
- client-config-dir ccd
- #ifconfig-pool-persist /etc/openvpn/ipp.txt
- sndbuf 393216
- rcvbuf 393216
- push "sndbuf 393216"
- push "rcvbuf 393216"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement