Skip to content

Instantly share code, notes, and snippets.

@kenci
Last active June 17, 2016 08:46
Show Gist options
  • Select an option

  • Save kenci/b76ca4db1c4ebdd84f61502b0c35c3a5 to your computer and use it in GitHub Desktop.

Select an option

Save kenci/b76ca4db1c4ebdd84f61502b0c35c3a5 to your computer and use it in GitHub Desktop.
DD-WRT OPENVPN
push "route 192.168.1.0 255.255.255.0"
server 192.168.66.0 255.255.255.0
dev tun0
proto udp
port 1194
keepalive 15 60
daemon
verb 3
comp-lzo
client-to-client
duplicate-cn
tls-server
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
iptables -t nat -I PREROUTING -p udp --dport 1194 -j ACCEPT
iptables -I INPUT -p udp --dport 1194 -j ACCEPT
iptables -I INPUT -i tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -j ACCEPT
iptables -I FORWARD -o tun0 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment