Install pptp and radius on lenny

1,install all packages
#apt-get install pptpd freeradius radiusclient1

2,configure pptp
#vim /etc/pptpd.conf

localip 192.168.42.122
remoteip 192.168.42.123-200

#vim /etc/ppp/pptpd-options

ms-dns 8.8.4.4
ms-dns 208.67.222.222
plugin /usr/lib/pppd/2.4.4/radius.so
radius-config-file /etc/radiusclient/radiusclient.conf

3,configure radius
#vim /etc/freeradius/client.conf

client 127.0.0.1 {
 secret  = mysecret
 nastype     = other
}

#vim /etc/freeradius/users

myusername Cleartext-Password := “mypassword”
 Service-Type = Framed-User,
 Framed-Protocol = PPP,
 Framed-IP-Address = 192.168.42.123,
 Framed-IP-Netmask = 255.255.255.0,
 Framed-Routing = Broadcast-Listen,
 Framed-Filter-Id = “std.ppp”,
 Framed-MTU = 1500,
 Framed-Compression = Van-Jacobsen-TCP-IP
 
 
4,configure radclient
#vim /etc/radiusclient

127.0.0.1           mysecret
 
#vim /etc/radiusclient/dictionary.microsoft

add content from http://wiki.freeradius.org/PopTop

#vim /etc/radiusclient/dictionary

INCLUDE /etc/radiusclient/dictionary.microsoft
INCLUDE /etc/radiusclient/dictionary.merit
5,test radius
#radtest myusername mypassword 127.0.0.1 0 mysecret

6,if OS not exist /dev/ppp device,creat it
#mknod /dev/ppp c 108 0

2009-10-11 tips

1,项目上线了,版本为2009.0 beta

2,试用了好几个开源OA,最满意的是Group-Office,不过还没法用它,它的在线编辑文档功能是付费才有的

3,实施是一门艺术

4,OpenVPN比PPTP好用的地方在于,同一局域网里可以多个客户端同时拔号

5,WPF看起来不错,界面跟逻辑分开,很清楚,虽然JAVA也可以,但JAVA的开发效率实在不怎么样

6,国庆花了几个下午,把天下2的角色升到了45级

7,体重降了一点点,71.5KG

8,月底休假

Vyatta使用手记:启用PPTP Service

得益于Vyatta的高条理性,无需列出步骤,仅帖出相关配置:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  .
  .
  .
 
  vpn {
      pptp {
          remote-access {
              authentication {
                  local-users {
                      username ****** {
                          password **********
                      }
                  }
                  mode local
              }
              client-ip-pool {
                  start 192.168.0.126
                  stop 192.168.0.129
              }
          }
      }
  }
 
  .
  .
  .