1 /* 2 VTun - Virtual Tunnel over TCP/IP network. 3 4 Copyright (C) 1998-2016 Maxim Krasnyansky <max_mk@yahoo.com> 5 6 VTun has been derived from VPPP package by Maxim Krasnyansky. 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 2 of the License, or 11 (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 */ 18 19 /* 20 * $Id: cfg_kwords.h,v 1.6.2.5 2016/10/01 21:27:51 mtbishop Exp $ 21 */ 22 23 extern int lineno; 24 25 struct kword { 26 char *str; 27 int type; 28 }; 29 30 struct kword cfg_keyword[] = { 31 { "options", K_OPTIONS }, 32 { "default", K_DEFAULT }, 33 { "up", K_UP }, 34 { "down", K_DOWN }, 35 { "port", K_PORT }, 36 { "srcaddr", K_SRCADDR }, 37 { "addr", K_ADDR }, 38 { "iface", K_IFACE }, 39 { "bindaddr", K_BINDADDR }, 40 { "persist", K_PERSIST }, 41 { "multi", K_MULTI }, 42 { "iface", K_IFACE }, 43 { "timeout", K_TIMEOUT }, 44 { "passwd", K_PASSWD }, 45 { "password", K_PASSWD }, 46 { "program", K_PROG }, 47 { "speed", K_SPEED }, 48 { "compress", K_COMPRESS }, 49 { "encrypt", K_ENCRYPT }, 50 { "type", K_TYPE }, 51 { "proto", K_PROT }, 52 { "nat_hack", K_NAT_HACK }, 53 { "delay_udp",K_NAT_HACK }, 54 { "device", K_DEVICE }, 55 { "ppp", K_PPP }, 56 { "ifconfig", K_IFCFG }, 57 { "ifcfg", K_IFCFG }, 58 { "firewall", K_FWALL }, 59 { "route", K_ROUTE }, 60 { "ip", K_IPROUTE }, 61 { "keepalive",K_KALIVE }, 62 { "stat", K_STAT }, 63 { "syslog", K_SYSLOG }, 64 { NULL , 0 } 65 }; 66 67 struct kword cfg_param[] = { 68 { "yes", 1 }, 69 { "no", 0 }, 70 { "allow", 1 }, 71 { "deny", 0 }, 72 { "enable", 1 }, 73 { "disable", 0 }, 74 { "tty", VTUN_TTY }, 75 { "pipe", VTUN_PIPE }, 76 { "ether", VTUN_ETHER }, 77 { "tun", VTUN_TUN }, 78 { "tcp", VTUN_TCP }, 79 { "udp", VTUN_UDP }, 80 { "client", VTUN_NAT_HACK_CLIENT }, 81 { "server", VTUN_NAT_HACK_SERVER }, 82 { "lzo", VTUN_LZO }, 83 { "zlib", VTUN_ZLIB }, 84 { "wait", 1 }, 85 { "killold", VTUN_MULTI_KILL }, 86 { "inetd", VTUN_INETD }, 87 { "stand", VTUN_STAND_ALONE }, 88 { "keep", VTUN_PERSIST_KEEPIF }, 89 { "oldblowfish128ecb", VTUN_LEGACY_ENCRYPT }, 90 { "blowfish128ecb", VTUN_ENC_BF128ECB }, 91 { "blowfish128cbc", VTUN_ENC_BF128CBC }, 92 { "blowfish128cfb", VTUN_ENC_BF128CFB }, 93 { "blowfish128ofb", VTUN_ENC_BF128OFB }, 94 { "blowfish256ecb", VTUN_ENC_BF256ECB }, 95 { "blowfish256cbc", VTUN_ENC_BF256CBC }, 96 { "blowfish256cfb", VTUN_ENC_BF256CFB }, 97 { "blowfish256ofb", VTUN_ENC_BF256OFB }, 98 { "aes128ecb", VTUN_ENC_AES128ECB }, 99 { "aes128cbc", VTUN_ENC_AES128CBC }, 100 { "aes128cfb", VTUN_ENC_AES128CFB }, 101 { "aes128ofb", VTUN_ENC_AES128OFB }, 102 { "aes256ecb", VTUN_ENC_AES256ECB }, 103 { "aes256cbc", VTUN_ENC_AES256CBC }, 104 { "aes256cfb", VTUN_ENC_AES256CFB }, 105 { "aes256ofb", VTUN_ENC_AES256OFB }, 106 { NULL , 0 } 107 }; 108