免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 744 | 回复: 0
打印 上一主题 下一主题

freeswan 文档摘录 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-02-20 15:27 |只看该作者 |倒序浏览

1)Building and installing the software
2)Testing to see if install succeeded
Building and installing the software
There are several ways to build and install the software. All require that
you have kernel source, correctly configured for your machine, as a starting
point. If you don't have that yet, see the previous
section
Whatever method you choose, it will do all of the following:

  • add FreeS/WAN code to the kernel
    • insert patches into standard kernel code to provide an interface
    • add additional files which use that interface

  • re-configure and re-compile the kernel to activate that code
  • install the new kernel
  • build the non-kernel FreeS/WAN programs and install them

    • ipsec(8)
      in /usr/local/sbin
    • others in /usr/local/lib/ipsec

  • install FreeS/WAN
    man pages
    under
    /usr/local/man
  • create the configuration file
    ipsec.conf(5)
    . Editing this file to
    configure your IPSEC gateway is described in the next
    section.
  • create an RSA public/private key pair for your system and place it in
    ipsec.secrets(5)

  • install the initialisation script /etc/rc.d/init.d/ipsec
  • create links to that script from the /etc/rc.d/rc[0-6].d
    directories so that each run level starts or stops IPSEC. (If the previous
    sentence makes no sense to you, try the From
    Power-up to Bash Prompt HowTo).

Testing to see if install succeeded
To check that you have a sucessful install, you can reboot and check (by
watching messages during boot or by looking at them later with dmesg(8))
that:

  • the kernel reports the right version. If not, you are likely still running
    your old kernel. Check your lilo.conf(5) file and the installation directory
    (defined in the kernel make file, often /boot but the default is /), then rerun
    lilo(8).
  • KLIPS initialisation messages appear
  • Pluto reports that it is starting

You can also try the commands:

  • ipsec --version, to test whether /usr/local/bin is in your path
    so you can use IPSEC administration commands
  • ipsec whack --status, using
    ipsec_whack(8)
    to ask Pluto for status
    information

Of course any status information at this point should be uninteresting since
you have not yet configured connections.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4329/showart_12671.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP