Created
August 28, 2015 14:03
-
-
Save rendoaw/f4cc633ba8a9f8f50bd6 to your computer and use it in GitHub Desktop.
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
# Option to add static routes with netmask | |
# RFC3442 routes: overrides routers option | |
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; | |
# MS routes: adds extras to supplement routers option | |
option ms-classless-static-routes code 249 = array of unsigned integer 8; | |
# Local subnet | |
subnet 172.16.0.0 netmask 255.255.255.0 { | |
range 172.16.0.151 172.16.0.199; | |
option routers 172.16.0.1; | |
option broadcast-address 172.16.0.255; | |
# Static route for OpenVPN | |
# Classless static routes overrides default route (option routers) | |
# Default route needs to be added to the classless static routes | |
option rfc3442-classless-static-routes 24, 10,8,0, 172,16,0,10, 0, 172,16,0,1; | |
option ms-classless-static-routes 24, 10,8,0, 172,16,0,10, 0, 172,16,0,1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment