![]() |
◊ |
www.udomlya.ru | Медиа-Центр | Удомля КТВ | Старый форум |
![]() |
#21 | |
Местный
|
![]() Цитата:
Цель этой статьи - описать установку VPN сервера на шлюзе работающем под OS FreeBSD. Круг задач, выполняемых VPN сервером достаточно широк - от подсчёта траффика, до контроля за работой пользователей в локальной сети. Описанная система успешно работает в нескольких домашних сетях. Я постараюсь подробно описать шаги необходимые для построения VPN шлюза. Основная идея Пользователи локальной сети могут свободно работать в пределах сети, в случае необходимости получения доступа к внешнему трафику, пользователь подключается к VPN серверу и авторизируется использую свой логин/пароль. Все необходимы средства для этого процесса имеются в наличии в ОС Window 98 и старше. Авторизация пользователей производится через CHAP, что обеспечивает должную безопастнось в локальных сетях. Необходимы компоненты на шлюзовой машине Для запуска VPN сервера необходимы следующие компоненты: SQL сервер - PostgreSQL - хранение информации о пользователях Radius сервер - GNU-Radius - авторизация и аккаунтинг пользователей VPN демон - poptop - обеспечение подключения через VPN туннель ppp - модифицированая версия ppp, с поддержкой спецефичный средств Установка PostgreSQL Все операции проводим от пользователя root. noc# cd /usr/ports/databases/postgresql7 noc# make install =========== BACKUP YOUR DATA! ============= As always, backup your data before upgrading. If the upgrade leads to a higher minor revision (e.g. 7.2.x -> 7.3), a dump and restore of all databases is required. This is *NOT* done by the port! Press ctrl-C *now* if you need to pg_dump. postgresql has several tunables that can be used to configure PostgreSQL: WITHOUT_GNUGETOPT Don't install GNU getopt (will still be used if already installed) WITHOUT_GETTEXT Skips building with support for internationalized error messages WITHOUT_SERVER Installs the headers and libraries for PostgreSQL clients WITHOUT_SSL Builds without OpenSSL support WITH_MIT_KRB5 Builds with MIT's kerberos support WITH_HEIMDAL_KRB5 Builds with Heimdal's kerberos support WITH_OPTIMIZED_CFLAGS Builds with compiler optimizations (-O3) WITH_DEBUG Builds with debugging symbols WITH_TESTS Allows the use of a "check" target building the module WITH_LIBC_R Link the binaries with libc_r. Needed to run plpython ===> Extracting for postgresql-7.3.3_1 В случае если Вы собираетесь использовать этот SQL сервер только локально можно использовать опцию WITHOUT_SSL.Это несколько облегчит размер SQL сервера. noc# make -DWITHOUT_SSL install В случае успешной сборки Вы должны в результате увидеть что-то подобное: ===> Registering installation for postgresql-7.3.3_1 ===> SECURITY REPORT: This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system. /usr/local/bin/postgres This port has installed the following startup scripts which may cause these network services to be started at boot time. /usr/local/etc/rc.d/010.pgsql.sh If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.postgresql.org/ Очищаем порт командой: noc# make clean
__________________
mv / /dev/null
|
|
![]() |
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1) | |
|
|