Skip to content

Instantly share code, notes, and snippets.

@steos
Created November 9, 2011 18:26
Show Gist options
  • Save steos/1352369 to your computer and use it in GitHub Desktop.
Save steos/1352369 to your computer and use it in GitHub Desktop.
openvpn config with lan gaming support
client
# specify server ip address here
remote <SERVER-IP>
dev tap
# name of the windows network connection
dev-node openVPN
tls-client
proto udp
ca ca.crt
key client.key
cert client.crt
nobind
persist-key
persist-tun
ns-cert-type server
comp-lzo
mode server
port 1194
proto udp
dev tap0
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
ifconfig-pool-persist /etc/openvpn/ipp.txt
# the "real" ip of the vpn server
ifconfig 192.168.1.109 255.255.255.0
# specifies the server ip and address range for the clients within the vpn
server-bridge 172.13.23.1 255.255.255.0 172.13.23.100 172.13.23.200
persist-key
persist-tun
verb 3
tls-server
user nobody
#group nobody
client-to-client
tun-mtu 1500
tun-mtu-extra 32
mssfix 1400
comp-lzo
keepalive 10 120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment