Last active
June 17, 2016 08:46
-
-
Save kenci/b76ca4db1c4ebdd84f61502b0c35c3a5 to your computer and use it in GitHub Desktop.
DD-WRT OPENVPN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| comp-lzo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment