搜索""的结果
#注意本地址在墙外,安装中断可以用screen -r vpn恢复
yum -y install screen
screen -S vpn
wget -c http://nchc.dl.sourceforge.net/project/vpn3in1/vpn3in1.tar.gz
tar zxvf vpn3in1.tar.gz
./vpn3in1.sh 2>&1 | tee vpn3in1.log2014.1.20修复openvpn生成证书错误;2012.8.25更新:本地完整安装包;2012.3.19更新:添加对自定义下载安装包地址的支持;2011.8.5更新:添加对centos 6.0支持;2011.7.2更新:添加验证已安装mysql的root用户密码是否正确;添加Daloradius,RadiusManager,apache。详细安装可以看图示;2011.5.8更新:添加可选使用本机freeradius服务或者使用远程freeradius服务器,如果使用远程则不会在本机安装freeradius及mysql服务;提高Mysql是否安装识别,去除Nginx,phpMyAdmin,daloradius安装,这些功能建议单独安装,还原OPENVPN端口为1194。已知问题: L2TP不能记录callingstationid,OPENVPN使用UDP端口不能记录acctstoptime根据palfans修改而成,http://www.palfans.net/3-in-1-vpn-package/开启mysql远程帐号脚本mysql -u root -proot;
grant all on *.* to username@'%' identified by 'password';
flush privileges;其中 all 指定...
ESXI5.5 本地磁盘分区丢失的解决方法,1、通过ssh进入ESXI shell,使用fdisk -l命令查看当前系统的各个分区情况2、使用esxcli storage vmfs extent list命令,查看卷名,设备名3、使用esxcli storage filesystem list命令,查看各分区的挂载情况,对于丢失的分区会提示相应错误4、使用partedUtil getptbl /vmfs/devices/disks/device_name 查看相应磁盘的分区表如:~#partedUtil getptbl /vmfs/devices/disks/naa.5000c5000d8b4e0d 得到以下信息gpt121601 255 63 19535251681 2048 1953523711 AA31E02A400F11DB9590000C2911D1B8 vmfs 05、再设置分区表,~#partedUtil setptbl "/vmfs/devices/disks/naa.5000c5000d8b4e0d" gpt "1 2048 1953523711 AA31E02A400F11DB9590000C2911D1B8 0"6、执行完以上命令后到主机存储配置界面即可看到丢失的存储器,此方法适用于磁盘意外脱机且无法自动挂载分区的情况,也适用于意外删除存储器,无损恢复。7、可根据实际问题灵活使用,可参考VMware KB http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1036609;http://kb.vmware.com/selfservice/micro...
在 ESXi/ESX 上使用 partedUtil 命令行实用程序 (2076191) Symptoms 免责声明:本文为 Using the partedUtil command line utility on ESXi and ESX (1036609) 的翻译版本。尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。有关最新内容,请参见英文版本。 如果您使用 partedUtil 命令指定了一个错误的 GUID 大小,则可能看到如下类似错误:error: "Invalid guid (0xfb).Contains non-hexadecimal digits Invalid guid (fb).Length should be 32 Invalid guid (251).Length should be 32 Purpose 本文提供了有关在 ESXi 和 ESX 上使用 partedUtil 命令行磁盘分区实用程序的信息。注意:可以使用连接到 ESXi/ESX 主机或 vCenter Server 的 vSphere Client 创建和删除 VMFS 数据存储。不必使用命令行实用程序手动创建分区。有关详细信息,请参见适用于您的 ESXi/ESX 版本的《配置指南》(Configuration Guide) 中的管理存储 (Managing Storage) 部分。 Resolution 您可以使用 partedUtil 命令行实用程序在 ESXi 和 ESX 上直接操作本地和远程 SAN 磁盘的分区表。只有 ESXi 5.x 上的磁盘分区才支持使用 partedUtil 命令行。命令行实用程序...
Win2008 IIS7 IIS7.5 进程池经常死最终解决方案 作为一个服务器维护人员,经常遇到不可解决的问题,这问题一直存在,一直困扰我多时,经常凌晨1-2点起床,就为了重启一下进程池错误应用程序名称: w3wp.exe,版本: 7.5.7600.16385,时间戳: 0x4a5bd0eb错误模块名称: ntdll.dll,版本: 6.1.7600.16385,时间戳: 0x4a5be02b异常代码: 0xc0000374错误偏移量: 0x00000000000c6cd2错误进程 ID: 0xb54c错误应用程序启动时间: 0x01d0c0d94f91529a错误应用程序路径: c:\windows\system32\inetsrv\w3wp.exe错误模块路径: C:\Windows\SYSTEM32\ntdll.dll报告 ID: 8e9b8672-2ccc-11e5-9d45-90b11c3fe265// string method_Recycle = "Recycle"; //Start开启 Recycle回收 Stop 停止 string method_Start = "Start"; DirectoryEntry appPool = new DirectoryEntry("IIS://localhost/W3SVC/AppPools"); try { foreach (DirectoryEntry item in appPool.Children) { string AppPoolCommand = item.Properties["Ma...
FreeRadius记录登陆的错误信息到数据库 在modules里面添加attr_rewrite,内容为attr_rewrite sanereplymessage {attribute = Reply-Messagesearchin = replysearchfor = "\n|\r"replacewith = ""ignore_case = nonew_attribute = nomax_matches = 10append = no}12345678910attr_rewrite sanereplymessage { attribute = Reply-Message searchin = reply searchfor = "\n|\r" replacewith = "" ignore_case = no new_attribute = no max_matches = 10 append = no}然后修改default,在sql前面增加sanereplymessagePost-Auth-Type REJECT {..sanereplymessagesql..}123456Post-Auth-Type REJECT { .. sanereplymessage sql .. }最后按照FreeRADIUS 2.x 记录认证者信息 修改usr/local/etc/raddb/sql/mysql/dialup.confpostauth_query = "INSERT INTO ${postauth_table} \ (username, pass, reply, authdate, calledstationid, nasipaddress, replymessage) \ VALUES ( \ '%{User-Name}', \ '%{%{User-Password}:...
FreeRADIUS 2.x默认在数据库只记录用户名,密码,认证时间等信息,但没有访问IP和连接VPN的IP,为了更好的监控,所以添加记录验证者的ip和连接vpn的IP。首先给FreeRADIUS数据库的radpostauth表添加2个字段 calledstationid和nasipaddress。然后修改 /usr/local/etc/raddb/sql/mysql/dialup.conf ,将最后的认证信息修改为: postauth_query = "INSERT INTO ${postauth_table} \ (username, pass, reply, authdate, calledstationid, nasipaddress) \ VALUES ( \ '%{User-Name}', \ '%{%{User-Password}:-%{Chap-Password}}', \ '%{reply:Packet-Type}', '%S', '%{Calling-Station-Id}', '%{NAS-IP-Address}')"123456 postauth_query = "INSERT INTO ${postauth_table} \ (username, pass, reply, authdate, calledstationid, nasipaddress) \ &nb...
VM virt-install 安装各个系统配置Debian 8virt-install \--accelerate \--name debian8 \--ram 1024 \--controller type=scsi,model=virtio-scsi \--disk path=/home/date/debian8.qcow2,size=10,sparse=true,cache=none,bus=scsi \--vcpus 1 \--os-type linux \--os-variant generic \--network bridge=br0 \--graphics none \--console pty,target_type=serial \--location 'http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/' \--extra-args 'console=ttyS0,115200n8 serial'1234567891011121314virt-install \--accelerate \--name debian8 \--ram 1024 \--controller type=scsi,model=virtio-scsi \--disk path=/home/date/debian8.qcow2,size=10,sparse=true,cache=none,bus=scsi \--vcpus 1 \--os-type linux \--os-variant generic \--network bridge=br0 \--graphics none \--console pty,target_type=serial \--location 'http://ftp.nl.debian.org/debian/dists/jessie/main/installer-amd64/' \--extra-args 'console=ttyS0,115200n8 serial'Debian 7virt-install \--accelerate \--name debian7 \--ram 1024 \--controller type=scsi,model...
安装freeradius 2.x和freeradius 3.x,测试连接都无法通过,错误如下 freeradius 2.x 提示的错误radclient:: Failed to find IP address for Excaliburradclient: Nothing to send.12radclient:: Failed to find IP address for Excaliburradclient: Nothing to send. freeradius 3.x 提示的错误(0) Error parsing "-": ip_hton: Name or service not known1(0) Error parsing "-": ip_hton: Name or service not known 解决方法很简单给/etc/hosts添加主机名解析就可以vi /etc/hosts添加:127.0.0.1 servername或者运行以下语句cat >>/etc/hosts<<EOF127.0.0.1 `hostname`EOF123cat >>/etc/hosts<<EOF127.0.0.1 `hostname`EOF
Installation Before installing TCAdmin make sure you have installed the System Requirements Installation (Windows) Make sure you have installed the System Requirements. Download the TCAdmin installer http://www.tcadmin.com/installer/tcadmin2setup.exe Execute and install. Change the installation directory as needed. Follow the Initial Configuration guide to configure TCAdmin. Installation (Linux) Make sure you have installed the System Requirements. Download and install the TCAdmin package for your Linux distro. CentOS / Fedora / Redhatwget http://www.tcadmin.com/installer/tcadmin-2-bi.noarch.rpm;yum -y install tcadmin-2-bi.noarch.rpm --nogpgcheck Debian / Ubuntuwget http://www.tcadmin.com/installer/tcadmin-2-bi.noarch.deb;dpkg -i tcadmin-2-bi.noarch.deb Follow the Initial Configuration guide to configure TCAdmin.Initial Configuration Contents [hide] 1 Access your Control Panel2 License Information3 Database Configurat...
最新评论