├── LICENSE.md ├── README.md ├── demo.png └── rfc3442.htm /LICENSE.md: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # rfc3442 2 | Calculator to build RFC3442 DHCP Option 121 strings for PfSense and other software that uses the same format 3 | 4 | This code was hacked together in the space of 3-4 hours, rather than spending the 10 minutes it would have taken to simply hand calculate the value I needed for my use case. The calculator did generate the correct values for my scenario, but no warranty or guarantee that it will work for your use case is given or implied. 5 | 6 | ![Demo](./demo.png) 7 | -------------------------------------------------------------------------------- /demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FrayedString/rfc3442/0f7ca06f225ce3fd9adda3e81afab7c425e2119d/demo.png -------------------------------------------------------------------------------- /rfc3442.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | PfSense RFC 3442 Builder 4 | 5 | 6 |
7 |
8 |

RFC 3442 Builder for PfSense

9 |
10 |
11 |
12 |
Network:
13 |
14 | 15 | 16 | 17 | / 18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 |
26 |
27 |
Gateway:
28 |
29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
40 |
41 |
42 |
43 |
44 |
45 | 47 |
48 |
49 | 50 |
51 |
52 | 53 |
54 |
55 |
56 | 57 |
58 |
59 |
60 | 61 | 62 | 63 | 64 | 65 | 66 |
67 |
68 |
69 | RFC 3442 70 |
71 |
72 | 73 | 74 | 409 | --------------------------------------------------------------------------------