Страница 1 из 1

Настройка PPTP

Добавлено: 2010-03-10 17:01:39
tj.anton
Доброго времени суток! Столкнулся с такой проблемой, где хранятся настройки PPTP соединения на FreeBSD.
Все ссылаются вот на эти настройки http://linux-admin.net.ru/net/pptp.htm - отсюда следует, что все настройки лежат в ppp.conf , но там ничего нет.
До меня был админ (связаться с ним не возможно, чтобы узнать), он как-то настроил это PPTP соединение.

Вопрос: как у меня настроено PPTP соединение? Может каким то другим способом можно или ?

Re: Настройка PPTP

Добавлено: 2010-03-10 17:57:46
vadim64
зачёт и +5 баллов :-D
лично я не хрена не понял. у вас включено это соединение или нет?
для начала вывод pkg_info | grep PPP, ps axwu и развёрнуто историю всю с мельчайшими подробностями.

Re: Настройка PPTP

Добавлено: 2010-03-10 18:08:46
tj.anton
Да оно включено, все работает!

Был до меня админ, который все это дело админил, все работает нормально, соединение установлено, со всем вроде как бы разобрался после того как мне отдали этот сервер, только не пойму как работает соединение pptp.

Охото просто разобраться, как это все работает, где хранятся настройки.

pkg_info

Код: Выделить всё

apache-2.2.14_5     Version 2.2.x of Apache web server with prefork MPM.
aspell-0.60.6_2     Spelling checker with better suggestion logic than ispell
autoconf-2.62       Automatically configure source code on many Un*x platforms
autoconf-wrapper-20071109 Wrapper script for GNU autoconf
automake-1.10.1     GNU Standards-compliant Makefile generator (1.10)
automake-1.5_5,1    GNU Standards-compliant Makefile generator (1.5)
automake-1.9.6_3    GNU Standards-compliant Makefile generator (1.9)
automake-wrapper-20071109 Wrapper script for GNU automake
bdftopcf-1.0.1      Convert X font from BDF to PCF
bigreqsproto-1.0.2  BigReqs extension headers
bind96-base-9.6.1.2 The BIND DNS suite with updated DNSSEC and threads
bison-2.4.1,1       A parser generator from FSF, (mostly) compatible with Yacc
bitstream-vera-1.10_4 Bitstream Vera TrueType font collection
ca_root_nss-3.12.4  The root certificate bundle from the Mozilla Project
cairo-1.8.8,1       Vector graphics library with cross-device output support
cclient-2007e,1     Mark Crispin's C-client mail access routines
curl-7.19.7_1       Non-interactive tool to get files from FTP, GOPHER, HTTP(S)
cvsup-without-gui-16.1h_4 File distribution system optimized for CVS (non-GUI version
db41-4.1.25_4       The Berkeley DB package, revision 4.1
encodings-1.0.2,1   X.Org Encoding fonts
expat-2.0.1_1       XML 1.0 parser written in C
ezm3-1.2_1          Easier, more portable Modula-3 distribution for building CV
font-bh-ttf-1.0.0   X.Org Bigelow & Holmes TTF font
font-misc-ethiopic-1.0.0 X.Org miscellaneous Ethiopic font
font-misc-meltho-1.0.0_1 X.Org miscellaneous Meltho font
font-util-1.0.1     Create an index of X font files in a directory
fontcacheproto-0.1.2 Fontcache extension headers
fontconfig-2.8.0,1  An XML-based font configuration API for X Windows
fontsproto-2.0.2    Fonts extension headers
freetds-msdblib-0.64_4,1 Sybase/Microsoft TDS protocol library
freetype2-2.3.11    A free and portable TrueType font rendering engine
fribidi-0.19.2_1    A Free Implementation of the Unicode Bidirectional Algorith
gamin-0.1.10_3      A file and directory monitoring system
gawk-3.1.6_1        The GNU version of Awk
gd-2.0.35_2,1       A graphics library for fast creation of images
gettext-0.17_1      GNU gettext package
gio-fam-backend-2.22.3 FAM backend for GLib's GIO library
glib-2.22.3         Some useful routines of C programming (current stable versi
gmake-3.81_3        GNU version of 'make' utility
gnutls-2.8.3        GNU Transport Layer Security library
gperf-3.0.3         Generates perfect hash functions for sets of keywords
gsm-1.0.13          Audio converter and library for converting u-law to gsm enc
help2man-1.36.4_3   Automatically generating simple manual pages from program o
icu-3.8.1_2         International Components for Unicode (from IBM)
iksemel-1.4_1       XML parser library mainly designed for Jabber applications
inputproto-1.5.0    Input extension headers
jpeg-7              IJG's jpeg compression utilities
kbproto-1.0.3       KB extension headers
libICE-1.0.4_1,1    Inter Client Exchange library for X11
libSM-1.1.0_1,1     Session Management library for X11
libX11-1.2.1_1,1    X11 library
libXau-1.0.4        Authentication Protocol library for X11
libXaw-1.0.5_1,1    X Athena Widgets library
libXdmcp-1.0.2_1    X Display Manager Control Protocol library
libXext-1.0.5,1     X11 Extension library
libXfont-1.3.4,1    X font libary
libXft-2.1.14       A client-sided font API for X applications
libXmu-1.0.4,1      X Miscellaneous Utilities libraries
libXp-1.0.0,1       X print library
libXpm-3.5.7        X Pixmap library
libXrender-0.9.4_1  X Render extension library
libXt-1.0.5_1       X Toolkit library
libcheck-0.9.8      A unit test framework for C
libfontenc-1.0.4    The fontenc Library
libgcrypt-1.4.4     General purpose crypto library based on code used in GnuPG
libgmp-4.3.1        A free library for arbitrary precision arithmetic
libgpg-error-1.7    Common error values for all GnuPG components
libiconv-1.13.1     A character set conversion library
libltdl-2.2.6b      System independent dlopen wrapper
libmcrypt-2.5.8     Multi-cipher cryptographic library (used in PHP)
libogg-1.1.4,4      Ogg bitstream library
libpthread-stubs-0.3_3 This library provides weak aliases for pthread functions
libshout2-2.2.2_3,1 Connect and transmit data to an Icecast media streaming ser
libslang2-2.2.2     Routines for rapid alpha-numeric terminal applications deve
libtheora-1.0_1     Theora video codec for the Ogg multimedia streaming system
libtool-2.2.6b      Generic shared library support script
libungif-4.1.4_5    Tools and library routines for working with GIF images
libvorbis-1.2.3_1,3 Audio compression codec library
libxcb-1.5          The X protocol C-language Binding (XCB) library
libxml2-2.7.6_1     XML parser library for GNOME
libxslt-1.1.26      The XSLT C library for GNOME
linuxthreads-2.2.3_24 POSIX pthreads implementation using rfork to generate kerne
m4-1.4.13,1         GNU m4
makedepend-1.0.1,1  A dependency generator for makefiles
mc-4.7.0pre4        Midnight Commander, a free Norton Commander Clone
mhash-0.9.9.9_1     An easy-to-use library for strong hashes such as MD5 and SH
ming-0.3.0_3        LGPL'ed Flash 4/5 movie output library with many languages
mkfontdir-1.0.4     Create an index of X font files in a directory
mkfontscale-1.0.6   Creates an index of scalable font files for X
mod_rpaf-ap2-0.6    Make proxied requests appear with client IP
mpg123-1.9.1        Command-line player for mpeg layer 1, 2 and 3 audio
mysql-client-5.1.41 Multithreaded SQL database (client)
mysql-server-5.1.41 Multithreaded SQL database (server)
net-snmp-5.4.2.1_6  An extendable SNMP implementation
newt-0.51.0_8       Not Erik's Windowing Toolkit:  console I/O handling library
nginx-0.7.64        Robust and small WWW server
ntp-4.2.4p7         The Network Time Protocol Distribution
openssl-0.9.8l      SSL and crypto library
p5-Authen-SASL-2.13 Perl5 module for SASL authentication
p5-BSD-Resource-1.2903 Perl module to access BSD resource limit and priority funct
p5-Compress-Raw-Zlib-2.023 Low-Level Interface to zlib compression library
p5-Compress-Zlib-2.015 Perl5 interface to zlib compression library
p5-DBD-mysql-4.012  MySQL driver for the Perl5 Database Interface (DBI)
p5-DBI-1.60.9       The perl5 Database Interface.  Required for DBD::* modules
p5-Digest-1.16      Modules that calculate message digests
p5-Digest-HMAC-1.01 Perl5 interface to HMAC Message-Digest Algorithms
p5-Digest-MD5-2.39  Perl5 interface to the MD5 algorithm
p5-Digest-SHA1-2.12 Perl interface to the SHA-1 Algorithm
p5-GSSAPI-0.26      Perl extension providing access to the GSSAPIv2 library
p5-HTML-Parser-3.64 Perl5 module for parsing HTML documents
p5-HTML-Tagset-3.20 Some useful data table in parsing HTML
p5-IO-Compress-Base-2.015 Base Class for IO::Uncompress modules
p5-IO-Compress-Zlib-2.015 Perl5 interface for reading and writing of (g)zip files
p5-MIME-Base64-3.08 Perl5 module for Base64 and Quoted-Printable encodings
p5-Net-1.22_1,1     Perl5 modules to access and use network protocols
p5-Storable-2.21    Persistency for perl data structures
p5-Test-Harness-3.17 Run perl standard test scripts with statistics
p5-Test-Simple-0.94 Basic utilities for writing tests in perl
p5-URI-1.51         Perl5 interface to Uniform Resource Identifier (URI) refere
p5-gettext-1.05_2   Message handling functions
p5-libwww-5.834     Perl5 library for WWW access
pcre-8.00           Perl Compatible Regular Expressions library
pdflib-7.0.4        A C library for dynamically generating PDF
pecl-fileinfo-1.0.4 A PECL extension to retrieve info about files
pecl-fribidi-1.0_1  A PECL extension for the unicode Bidi algorithm
pecl-pdflib-2.1.6_1 A PECL extension to create PDF on the fly
pecl-yaz-1.0.14     A PECL extension that implements a Z39.50 client
perl-threaded-5.8.9_3 Practical Extraction and Report Language
php5-5.2.11_1       PHP Scripting Language
php5-bcmath-5.2.11_1 The bcmath shared extension for php
php5-bz2-5.2.11_1   The bz2 shared extension for php
php5-calendar-5.2.11_1 The calendar shared extension for php
php5-ctype-5.2.11_1 The ctype shared extension for php
php5-curl-5.2.11_1  The curl shared extension for php
php5-dba-5.2.11_1   The dba shared extension for php
php5-dbase-5.2.11_1 The dbase shared extension for php
php5-dom-5.2.11_1   The dom shared extension for php
php5-exif-5.2.11_1  The exif shared extension for php
php5-extensions-1.3 A "meta-port" to install PHP extensions
php5-filter-5.2.11_1 The filter shared extension for php
php5-ftp-5.2.11_1   The ftp shared extension for php
php5-gd-5.2.11_2    The gd shared extension for php
php5-gettext-5.2.11_1 The gettext shared extension for php
php5-gmp-5.2.11_1   The gmp shared extension for php
php5-hash-5.2.11_1  The hash shared extension for php
php5-iconv-5.2.11_1 The iconv shared extension for php
php5-imap-5.2.11_1  The imap shared extension for php
php5-json-5.2.11_1  The json shared extension for php
php5-mbstring-5.2.11_1 The mbstring shared extension for php
php5-mcrypt-5.2.11_1 The mcrypt shared extension for php
php5-mhash-5.2.11_1 The mhash shared extension for php
php5-ming-5.2.11_1  The ming shared extension for php
php5-mysql-5.2.11_1 The mysql shared extension for php
php5-mysqli-5.2.11_1 The mysqli shared extension for php
php5-ncurses-5.2.11_1 The ncurses shared extension for php
php5-odbc-5.2.11_1  The odbc shared extension for php
php5-openssl-5.2.11_1 The openssl shared extension for php
php5-pcntl-5.2.11_1 The pcntl shared extension for php
php5-pcre-5.2.11_1  The pcre shared extension for php
php5-pdo-5.2.11_1   The pdo shared extension for php
php5-posix-5.2.11_1 The posix shared extension for php
php5-pspell-5.2.11_1 The pspell shared extension for php
php5-readline-5.2.11_1 The readline shared extension for php
php5-session-5.2.11_1 The session shared extension for php
php5-shmop-5.2.11_1 The shmop shared extension for php
php5-simplexml-5.2.11_1 The simplexml shared extension for php
php5-snmp-5.2.11_1  The snmp shared extension for php
php5-soap-5.2.11_1  The soap shared extension for php
php5-sockets-5.2.11_1 The sockets shared extension for php
php5-spl-5.2.11_1   The spl shared extension for php
php5-sqlite-5.2.11_1 The sqlite shared extension for php
php5-sybase_ct-5.2.11_1 The sybase_ct shared extension for php
php5-sysvmsg-5.2.11_1 The sysvmsg shared extension for php
php5-sysvsem-5.2.11_1 The sysvsem shared extension for php
php5-sysvshm-5.2.11_1 The sysvshm shared extension for php
php5-tidy-5.2.11_1  The tidy shared extension for php
php5-tokenizer-5.2.11_1 The tokenizer shared extension for php
php5-wddx-5.2.11_1  The wddx shared extension for php
php5-xml-5.2.11_1   The xml shared extension for php
php5-xmlreader-5.2.11_1 The xmlreader shared extension for php
php5-xmlrpc-5.2.11_1 The xmlrpc shared extension for php
php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php
php5-xsl-5.2.11_1   The xsl shared extension for php
php5-zip-5.2.11_1   The zip shared extension for php
php5-zlib-5.2.11_1  The zlib shared extension for php
pixman-0.16.0       Low-level pixel manipulation library
pkg-config-0.23_1   A utility to retrieve information about installed libraries
png-1.2.40          Library for manipulating PNG images
popt-1.14           A getopt(3) like library with a number of enhancements, fro
portupgrade-2.4.6_3,2 FreeBSD ports/packages administration and management tool s
printproto-1.0.4    Print extension headers
python-2.5,2        The "meta-port" for the default version of Python interpret
python25-2.5.4_3    An interpreted object-oriented programming language
quagga-0.99.15_3    Free RIPv1, RIPv2, OSPFv2, BGP4, IS-IS route software
radiusclient-0.5.6_1 Client library and basic utilities for RADIUS AAA
recode-3.6_7        Converts files between character sets and usages
renderproto-0.9.3   RenderProto protocol headers
ruby+nopthreads-1.8.7.160_5,1 An object-oriented interpreted scripting language
ruby18-bdb-0.6.5_1  Ruby interface to Sleepycat's Berkeley DB revision 2 or lat
slurm-0.3.3         A generic network load monitor
speex-1.2.r1_2,1    An open-source patent-free voice codec
sqlite-2.8.17_1     An SQL database engine in a C library w/ Tcl wrapper
t1lib-5.1.2_1,1     A Type 1 Rasterizer Library for UNIX/X11
tcl-8.4.19_3,1      Tool Command Language
tidy-lib-090315.c   Utility to clean up and pretty print HTML/XHTML/XML (with s
unixODBC-2.2.14_2   ODBC library suite for Unix
utm5-2.1.006        Universal Billing System for ISP
xcb-proto-1.6       The X protocol C-language Binding (XCB) protocol
xcb-util-0.3.6_1    A module with libxcb/libX11 extension/replacement libraries
xcmiscproto-1.1.2   XCMisc extension headers
xextproto-7.0.5     XExt extension headers
xf86bigfontproto-1.1.2 XFree86-Bigfont extension headers
xorg-fonts-truetype-7.4 X.Org TrueType fonts
xorg-macros-1.2.1   X.Org development aclocal macros
xproto-7.0.15       X11 protocol headers
xtrans-1.2.3        Abstract network code for X

Re: Настройка PPTP

Добавлено: 2010-03-10 20:50:48
Gerk
что-то вроде, грубо, но должно найти:

Код: Выделить всё

grep -Ri pptp /etc
grep -Ri pptp /usr/local/etc/
И дальше посмотреть что в найденных файлах

Re: Настройка PPTP

Добавлено: 2010-03-10 21:20:53
tj.anton
core# grep -Ri pptp /etc

/etc/services:pptp 1723/tcp #Point-to-point tunnelling protocol

core# grep -Ri pptp /usr/local/etc



Возможно сморожу глупость, но в rc.conf можно просто прописать белый ип, и инет будет на компе?

Re: Настройка PPTP

Добавлено: 2010-03-11 9:29:27
vadim64
в момент когда всё работает ps axwu сделайте пожалуйста

Re: Настройка PPTP

Добавлено: 2010-03-11 9:46:38
tj.anton
ps axwu

Код: Выделить всё

core# ps axwu
USER     PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED      TIME COMMAND
root      13 98.3  0.0     0     8  ??  RL   24Dec09 107647:45.53 [idle: cpu0]
root      11 98.0  0.0     0     8  ??  RL   24Dec09 107206:22.48 [idle: cpu2]
root      10 97.8  0.0     0     8  ??  RL   24Dec09 107868:00.42 [idle: cpu3]
root      12 96.9  0.0     0     8  ??  RL   24Dec09 104722:16.06 [idle: cpu1]
www     6858  0.9  0.8 40816 20752  ??  S    11:22AM   0:07.73 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
www     6860  0.9  0.6 36936 16892  ??  S    11:22AM   0:08.34 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
www     6434  0.7  0.8 40568 20660  ??  S    10:42AM   0:22.99 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
quagga   362  0.1  0.1  2868  1600  ??  Ss   24Dec09 126:42.31 /usr/local/sbin/r                                                 ipd -d
root      43  0.0  0.0     0     8  ??  DL   24Dec09 192:34.30 [syncer]
root       0  0.0  0.0     0     0  ??  WLs  24Dec09   0:00.01 [swapper]
root       1  0.0  0.0   772   152  ??  ILs  24Dec09   0:00.43 /sbin/init --
root       2  0.0  0.0     0     8  ??  DL   24Dec09   3:40.71 [g_event]
root       3  0.0  0.0     0     8  ??  DL   24Dec09  11:06.70 [g_up]
root       4  0.0  0.0     0     8  ??  DL   24Dec09  52:03.66 [g_down]
root       5  0.0  0.0     0     8  ??  DL   24Dec09   0:00.00 [thread taskq]
root       6  0.0  0.0     0     8  ??  DL   24Dec09   0:00.00 [kqueue taskq]
root       7  0.0  0.0     0     8  ??  DL   24Dec09   0:00.00 [acpi_task_0]
root       8  0.0  0.0     0     8  ??  DL   24Dec09   0:00.00 [acpi_task_1]
root       9  0.0  0.0     0     8  ??  DL   24Dec09   0:00.00 [acpi_task_2]
root      14  0.0  0.0     0     8  ??  WL   24Dec09 128:10.84 [swi4: clock sio]
root      15  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [swi3: vm]
root      16  0.0  0.0     0     8  ??  WL   24Dec09 170:53.05 [swi1: net]
root      17  0.0  0.0     0     8  ??  DL   24Dec09  16:07.19 [yarrow]
root      18  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [swi6: Giant task                                                 q]
root      19  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [swi5: +]
root      20  0.0  0.0     0     8  ??  WL   24Dec09   5:16.89 [swi2: cambio]
root      21  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [swi6: task queue                                                 ]
root      22  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [irq9: acpi0]
root      23  0.0  0.0     0     8  ??  WL   24Dec09   5:00.71 [irq16: mpt0]
root      24  0.0  0.0     0     8  ??  DL   24Dec09   0:00.00 [mpt_recovery0]
root      25  0.0  0.0     0     8  ??  WL   24Dec09  65:40.73 [irq18: em0]
root      26  0.0  0.0     0     8  ??  WL   24Dec09  24:13.59 [irq19: em1]
root      27  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [irq23: uhci0 uhc                                                 i+]
root      28  0.0  0.0     0     8  ??  DL   24Dec09   0:00.49 [usb0]
root      29  0.0  0.0     0     8  ??  DL   24Dec09   0:00.00 [usbtask]
root      30  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [irq22: uhci1 uhc                                                 i3]
root      31  0.0  0.0     0     8  ??  DL   24Dec09   0:00.45 [usb1]
root      32  0.0  0.0     0     8  ??  DL   24Dec09   0:00.48 [usb2]
root      33  0.0  0.0     0     8  ??  DL   24Dec09   0:00.50 [usb3]
root      34  0.0  0.0     0     8  ??  DL   24Dec09   0:00.49 [usb4]
root      35  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [irq14: ata0]
root      36  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [irq15: ata1]
root      37  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [irq1: atkbd0]
root      38  0.0  0.0     0     8  ??  WL   24Dec09   0:00.00 [swi0: sio]
root      39  0.0  0.0     0     8  ??  DL   24Dec09   0:19.26 [pagedaemon]
root      40  0.0  0.0     0     8  ??  DL   24Dec09   0:00.00 [vmdaemon]
root      41  0.0  0.0     0     8  ??  DL   24Dec09 137:21.71 [pagezero]
root      42  0.0  0.0     0     8  ??  DL   24Dec09   0:30.39 [bufdaemon]
root      44  0.0  0.0     0     8  ??  DL   24Dec09   0:31.13 [vnlru]
root      45  0.0  0.0     0     8  ??  DL   24Dec09   2:08.10 [softdepflush]
root      46  0.0  0.0     0     8  ??  DL   24Dec09   4:28.86 [schedcpu]
root     130  0.0  0.0  1252    28  ??  Is   24Dec09   0:00.00 adjkerntz -i
quagga   356  0.0  0.1  2940  1536  ??  Ss   24Dec09   4:29.89 /usr/local/sbin/z                                                 ebra -d
quagga   368  0.0  0.1  3040  1500  ??  Ss   24Dec09  25:52.80 /usr/local/sbin/o                                                 spfd -d
root     452  0.0  0.0   528     8  ??  Is   24Dec09   0:00.09 /sbin/devd
root     545  0.0  0.0  1376   456  ??  Ss   24Dec09  26:54.47 /usr/sbin/syslogd                                                  -l /var/run/log -l /var/named/var/run/log -ss
root     643  0.0  0.0     0     8  ??  DL   24Dec09   0:01.14 [md0]
root     709  0.0  0.0  3000   796  ??  Ss   24Dec09   2:27.21 /usr/sbin/ntpd -c                                                  /etc/ntp.conf -p /var/run/ntpd.pid
root     916  0.0  0.0  3524   532  ??  Ss   24Dec09   0:00.21 /usr/sbin/sshd
root     922  0.0  0.1  3504  1480  ??  Ss   24Dec09   1:31.50 sendmail: accepti                                                 ng connections (sendmail)
smmsp    926  0.0  0.0  3384   960  ??  Is   24Dec09   0:01.88 sendmail: Queue r                                                 unner@00:30:00 for /var/spool/clientmqueue (sendmai
root     933  0.0  0.0  1388   380  ??  Ss   24Dec09   0:11.73 /usr/sbin/cron -s
root     967  0.0  0.0  2228  1300  ??  Ss   24Dec09   0:43.05 /usr/sbin/bsnmpd
root    2048  0.0  0.1  3724  1532  ??  Ss   19Jan10  69:29.99 ./daemon
www     2791  0.0  1.2 51180 30364  ??  R    11:19PM   4:56.47 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
www     2896  0.0  0.8 40580 20960  ??  S    11:25PM   4:49.31 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
www     6424  0.0  0.8 40524 20612  ??  S    10:42AM   0:28.34 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
www     6428  0.0  0.8 40576 20652  ??  S    10:42AM   0:24.92 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
www     6431  0.0  0.9 43856 24168  ??  S    10:42AM   0:28.96 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
www     6435  0.0  0.6 36584 16876  ??  S    10:42AM   0:26.46 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
www     6792  0.0  0.8 40824 20688  ??  S    11:18AM   0:10.59 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
root    6991  0.0  0.1  6240  2584  ??  Ss   11:42AM   0:00.03 sshd: root@ttyp0                                                  (sshd)
root   71575  0.0  0.0 32272  1244  ??  Ss    6Feb10   1:01.51 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
root   71576  0.0  0.0  1708    60  ??  I     6Feb10   0:00.00 /bin/sh -c /usr/l                                                 ocal/sbin/rotatelogs /usr/log/www/errorlog.%Y-%m-%d
root   71577  0.0  0.0  1708    60  ??  I     6Feb10   0:00.00 /bin/sh -c /usr/l                                                 ocal/sbin/rotatelogs /usr/log/www/accesslog.%Y-%m-%
root   71578  0.0  0.0  3208   408  ??  I     6Feb10   0:30.45 /usr/local/sbin/r                                                 otatelogs /usr/log/www/errorlog.%Y-%m-%d-%H_%M_%S 5
www    71579  0.0  0.0 10636   180  ??  I     6Feb10   0:00.00 /usr/local/sbin/h                                                 ttpd -DNOHTTPACCEPT
root   71580  0.0  0.0  3216   388  ??  S     6Feb10   3:58.77 /usr/local/sbin/r                                                 otatelogs /usr/log/www/accesslog.%Y-%m-%d-%H_%M_%S
root   71608  0.0  0.0  6396   156  ??  Is    6Feb10   0:00.00 nginx: master pro                                                 cess /usr/local/sbin/nginx
www    71609  0.0  0.1  6684  1760  ??  S     6Feb10  29:29.05 nginx: worker pro                                                 cess (nginx)
www    71610  0.0  0.1  6912  2008  ??  S     6Feb10  30:38.60 nginx: worker pro                                                 cess (nginx)
root   71769  0.0  2.5 74988 65364  ??  Ss    6Feb10 294:28.95 named -n 4 -4
root     978  0.0  0.0  1344    28  v0  Is+  24Dec09   0:00.00 /usr/libexec/gett                                                 y Pc ttyv0
root     979  0.0  0.0  1344    28  v1  Is+  24Dec09   0:00.00 /usr/libexec/gett                                                 y Pc ttyv1
mysql    744  0.0  0.0  1728    44 con- I    24Dec09   0:00.01 /bin/sh /usr/loca                                                 l/bin/mysqld_safe --defaults-extra-file=/var/db/mys
mysql    877  0.0  2.2 111340 58356 con- S    24Dec09 809:42.07 /usr/local/libex                                                 ec/mysqld --defaults-extra-file=/var/db/mysql/my.cnf
root    6996  0.0  0.1  5016  2668  p0  Ss   11:43AM   0:00.02 -csh (csh)
root    6999  0.0  0.0  1492   816  p0  R+   11:43AM   0:00.00 ps axwu
root   23542  0.0  0.3 33288  7196  p0- I    26Dec09  14:51.90 /usr/local/bin/ph                                                 p /var/www/html/_chat/data/quiz/engine.php
root   40297  0.0  0.1  6324  2520  p0- S    31Jan10  30:03.89 bin/tclsh8.4 dima                                                 _chat.conf

Re: Настройка PPTP

Добавлено: 2010-03-11 14:39:09
FreeBSP
1) ifconfig в студию

2)

Код: Выделить всё

root    2048  0.0  0.1  3724  1532  ??  Ss   19Jan10  69:29.99 ./daemon
это хто?

3) вы уверены что у вас именно pptp?

Re: Настройка PPTP

Добавлено: 2010-03-11 14:49:42
tj.anton
1) ifconfig

core# ifconfig

Код: Выделить всё

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 10.0.0.5 netmask 0xffffff80 broadcast 10.0.0.127
        ether 00:15:17:4f:1c:64
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet xx.xxx.xxx.xxx netmask 0xffffff00 broadcast xx.xxx.xxx.xxx
        ether 00:15:17:4f:1c:65
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
2) Это демон от чата

3) Ну...интернет (мы сами провайдер), работает на PPTP (PPPoE не было...)

Re: Настройка PPTP

Добавлено: 2010-03-11 15:06:31
FreeBSP
вы, как провайдер, получаете инфернет по pptp?

sockstat покажите

Re: Настройка PPTP

Добавлено: 2010-03-11 15:12:20
tj.anton

Код: Выделить всё


core# sockstat
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
www      httpd      10493 3  tcp4   *:8080                *:*
www      httpd      10493 4  tcp4   *:443                 *:*
www      httpd      10470 3  tcp4   *:8080                *:*
www      httpd      10470 4  tcp4   *:443                 *:*
root     sshd       10256 3  tcp4   xx.xxx.xxx.xxx:22    xx.xxx.xxx.xxx:53681
www      httpd      9109  3  tcp4   *:8080                *:*
www      httpd      9109  4  tcp4   *:443                 *:*
www      httpd      7387  3  tcp4   *:8080                *:*
www      httpd      7387  4  tcp4   *:443                 *:*
www      httpd      6860  3  tcp4   *:8080                *:*
www      httpd      6860  4  tcp4   *:443                 *:*
www      httpd      6858  3  tcp4   *:8080                *:*
www      httpd      6858  4  tcp4   *:443                 *:*
www      httpd      6792  3  tcp4   *:8080                *:*
www      httpd      6792  4  tcp4   *:443                 *:*
www      httpd      6435  3  tcp4   *:8080                *:*
www      httpd      6435  4  tcp4   *:443                 *:*
www      httpd      6428  3  tcp4   *:8080                *:*
www      httpd      6428  4  tcp4   *:443                 *:*
www      httpd      6424  3  tcp4   *:8080                *:*
www      httpd      6424  4  tcp4   *:443                 *:*
root     named      71769 3  dgram  -> /var/run/logpriv
root     named      71769 20 tcp4   10.0.0.5:53           *:*
root     named      71769 21 tcp4   127.0.0.1:53          *:*
root     named      71769 22 tcp4   127.0.0.1:953         *:*
root     named      71769 512udp4   10.0.0.5:53           *:*
root     named      71769 513udp4   127.0.0.1:53          *:*
root     named      71769 514udp4   xx.xxx.xxx.xxx:58923  8.8.8.8:53
www      nginx      71610 5  tcp4   *:80                  *:*
www      nginx      71610 6  stream -> ??
www      nginx      71610 9  stream -> ??
www      nginx      71609 5  tcp4   *:80                  *:*
www      nginx      71609 6  stream -> ??
www      nginx      71609 7  stream -> ??
www      nginx      71609 9  tcp4   10.0.0.5:80           xxx.xxx.27.81:2016
www      nginx      71609 10 tcp4   xx.xxx.xxx.xxx:80     94.24.208.23:57086
www      nginx      71609 11 tcp4   10.0.0.5:80           xxx.xxx.13.71:49218
www      nginx      71609 12 tcp4   xx.xxx.xxx.xxx:80     94.24.208.23:57151
www      nginx      71609 13 tcp4   10.0.0.5:80           xxx.xxx.27.81:2020
www      nginx      71609 15 tcp4   10.0.0.5:80           xxx.xxx.26.20:3439
www      nginx      71609 16 tcp4   10.0.0.5:80           xxx.xxx.4.77:1724
www      nginx      71609 17 tcp4   xx.xxx.xxx.xxx:80     94.24.208.23:57152
www      nginx      71609 18 tcp4   xx.xxx.xxx.xxx:80     94.24.208.23:57153
www      nginx      71609 19 tcp4   10.0.0.5:80           xxx.xxx.13.71:49175
www      nginx      71609 20 tcp4   10.0.0.5:80           xxx.xxx.24.9:1056
www      nginx      71609 22 tcp4   10.0.0.5:80           xxx.xxx.26.20:3470
www      nginx      71609 23 tcp4   10.0.0.5:80           xxx.xxx.13.71:49177
www      nginx      71609 24 tcp4   10.0.0.5:80           xxx.xxx.13.71:49180
www      nginx      71609 25 tcp4   10.0.0.5:80           xxx.xxx.13.71:49181
www      nginx      71609 26 tcp4   xx.xxx.xxx.xxx:80     95.108.157.251:56787
www      nginx      71609 27 tcp4   10.0.0.5:80           xxx.xxx.3.94:1138
www      nginx      71609 28 tcp4   10.0.0.5:80           xxx.xxx.3.237:4440
www      nginx      71609 29 tcp4   10.0.0.5:80           xxx.xxx.18.30:4780
www      nginx      71609 30 tcp4   10.0.0.5:80           xxx.xxx.18.30:4766
www      nginx      71609 31 tcp4   10.0.0.5:80           xxx.xxx.4.77:1726
www      nginx      71609 32 tcp4   10.0.0.5:80           xxx.xxx.24.9:1060
www      nginx      71609 33 tcp4   10.0.0.5:80           xxx.xxx.3.94:1139
www      nginx      71609 43 tcp4   10.0.0.5:80           xxx.xxx.10.230:4209
www      nginx      71609 44 tcp4   10.0.0.5:80           xxx.xxx.10.230:4213
root     nginx      71608 5  tcp4   *:80                  *:*
root     nginx      71608 6  stream -> ??
root     nginx      71608 7  stream -> ??
root     nginx      71608 8  stream -> ??
root     nginx      71608 9  stream -> ??
www      httpd      71579 3  stream /var/run/cgisock.71575
root     httpd      71575 3  tcp4   *:8080                *:*
root     httpd      71575 4  tcp4   *:443                 *:*
root     tclsh8.4   40297 3  tcp4   10.0.0.5:9090         *:*
root     tclsh8.4   40297 4  tcp4   xx.xxx.xxx.xxx:9090   *:*
root     daemon     2048  4  tcp4   *:9015                *:*
root     daemon     2048  5  tcp4   10.0.0.5:9015         xxx.xxx.27.15:1454
root     daemon     2048  6  tcp4   10.0.0.5:9015         xxx.xxx.26.20:1796
root     daemon     2048  8  tcp4   10.0.0.5:9015         xxx.xxx.26.20:3764
root     daemon     2048  9  tcp4   10.0.0.5:9015         xxx.xxx.26.20:3766
root     daemon     2048  10 tcp4   10.0.0.5:9015         xxx.xxx.26.20:1354
root     daemon     2048  13 tcp4   10.0.0.5:9015         xxx.xxx.27.128:2348
root     php        23542 3  stream -> /tmp/mysql.sock
root     bsnmpd     967   4  udp4   *:*                   *:*
root     bsnmpd     967   5  udp4   10.0.0.5:161          *:*
root     bsnmpd     967   6  udp4   127.0.0.1:161         *:*
root     bsnmpd     967   7  stream /var/run/snmpd.sock
root     bsnmpd     967   11 dgram  -> /var/run/logpriv
smmsp    sendmail   926   3  dgram  -> /var/run/log
root     sendmail   922   3  tcp4   127.0.0.1:25          *:*
root     sendmail   922   4  dgram  -> /var/run/logpriv
root     sshd       916   3  tcp6   *:222                 *:*
root     sshd       916   4  tcp4   *:222                 *:*
mysql    mysqld     877   12 tcp4   *:3306                *:*
mysql    mysqld     877   13 stream /tmp/mysql.sock
mysql    mysqld     877   509stream /tmp/mysql.sock
root     ntpd       709   3  dgram  -> /var/run/logpriv
root     ntpd       709   4  udp4   *:123                 *:*
root     ntpd       709   5  udp6   *:123                 *:*
root     ntpd       709   6  udp4   10.0.0.5:123          *:*
root     ntpd       709   7  udp4   xx.xxx.xxx.xxx:123    *:*
root     ntpd       709   8  udp6   fe80:3::1:123         *:*
root     ntpd       709   9  udp6   ::1:123               *:*
root     ntpd       709   10 udp4   127.0.0.1:123         *:*
root     syslogd    545   4  dgram  /var/run/log
root     syslogd    545   5  dgram  /var/run/logpriv
root     syslogd    545   6  dgram  /var/run/log
root     syslogd    545   7  dgram  /var/named/var/run/log
root     devd       452   4  stream /var/run/devd.pipe
quagga   ospfd      368   5  tcp6   *:2604                *:*
quagga   ospfd      368   6  tcp4   *:2604                *:*
quagga   ospfd      368   7  stream /var/run/quagga/ospfd.vty
quagga   ospfd      368   8  stream -> /var/run/quagga/zserv.api
quagga   ripd       362   4  udp4   *:520                 *:*
quagga   ripd       362   5  tcp6   *:2602                *:*
quagga   ripd       362   6  tcp4   *:2602                *:*
quagga   ripd       362   7  stream /var/run/quagga/ripd.vty
quagga   ripd       362   8  stream -> /var/run/quagga/zserv.api
quagga   zebra      356   6  stream /var/run/quagga/zserv.api
quagga   zebra      356   7  tcp6   *:2601                *:*
quagga   zebra      356   8  tcp4   *:2601                *:*
quagga   zebra      356   9  stream /var/run/quagga/zebra.vty
quagga   zebra      356   10 stream /var/run/quagga/zserv.api
quagga   zebra      356   11 stream /var/run/quagga/zserv.api
You have new mail.

Re: Настройка PPTP

Добавлено: 2010-03-11 15:35:18
FreeBSP
по стандарту pptp открывает два соединения - одно - для передачи данных и второе - для управления соединением, на порт 1723. у вас подключений к нему нет, так о каком pptp может идти речь?
RFC 2637 писал(а):The TCP session for the
control connection is established by initiating a TCP connection to
port 1723 [6].
...
[6] Reynolds, J. and J. Postel, "Assigned Numbers", STD 2, RFC 1700,
October 1994. See also: http://www.iana.org/numbers.html

Re: Настройка PPTP

Добавлено: 2010-03-11 16:22:08
tj.anton
И как тогда создано подключение на этой машине? :cz2:

Re: Настройка PPTP

Добавлено: 2010-03-11 20:45:37
FreeBSP
а какая роль этой железки в сети?
может ей инет с роутера приходит или прямо от прова по проводу..
откуда мне знать..

Re: Настройка PPTP

Добавлено: 2010-03-11 20:48:15
tj.anton
роль - сайт, форум на нем.
мы сами провайдер...


я и писал (поста 3 назад), возможно такое, что прописать IP в rc.conf и все будет работать ?
просто там прописан белый IP....

Re: Настройка PPTP

Добавлено: 2010-03-11 21:47:59
FreeBSP
что вы провайдер я понял
em1 куда смотрит?

Re: Настройка PPTP

Добавлено: 2010-03-11 21:58:00
tj.anton
Вот мой rc.conf

em1 - белый айпишник вбит (по нему пингуется сайт в глобалке)

defaultrouter="xx.xxx.xxx.xxx"
hostname="www.site.ru"
ifconfig_em0="inet 10.0.0.5 netmask 255.255.255.128"
ifconfig_em1="inet xx.xxx.xxx.xxx netmask 255.255.255.0"
static_routes="net1 net2 net3 net4"
route_net1="10.0.0.0/16 10.0.0.90"
route_net2="172.127.127.0/24 10.0.0.90"
route_net3="xx.xxx.xxx.xx/32 10.0.0.246"
route_net4="111.0.0.0/24 10.0.0.90"
firewall_enable="YES"
firewall_type="open"
fsck_y_enable="YES"
portmap_enable="NO"
icmp_bmcastecho="NO"
apache22_enable="YES"
update_motd="NO"
syslogd_flags="-ss"
keyrate="fast"
moused_enable="NO"
moused_type="NO"
saver="blank"
scrnmap="NO"
sshd_enable="YES"
tcp_extensions="YES"
quagga_enable="YES"
quagga_daemons="zebra ripd ospfd"
quagga_flags="-d"
named_enable="YES"
named_program="/usr/sbin/named"
named_flags="-n 2 -4"
bsnmpd_enable="YES"

ntpdate_enable="YES" # Синхронизация часов при запуске машины
ntpdate_program="/usr/sbin/ntpdate" # Программа для синхронизации
ntpdate_flags="-u ntp.psn.ru" # Сервер для синхронизации

ntpd_enable="YES" # Демон синхронизации
ntpd_program="/usr/sbin/ntpd" # Полный путь к нему
ntpd_flags="-p /var/run/ntpd.pid" # .pid процесса

Re: Настройка PPTP

Добавлено: 2010-03-11 22:16:32
FreeBSP
никаких демонов или настроек для получения инфернета по pptp я не вижу, хотя и могу ошибаться
дело обстоит скорее всего так:
инфернет на комп приходит от вышележащего прова или от какой то машины в вашей же сети.
в вашу сеть провешивают белый ип, и на обсуждаемой машине этот ип и настроен

мне это видится так
откуда вообще информация про pptp?

Re: Настройка PPTP

Добавлено: 2010-03-11 22:20:14
tj.anton
pptp из соображений... не знал куда кинутся.

тогда получается, этот белый ip (em1) принимается с defaultrouter="xx.xxx.xxx.xxx" ??

и если это так, настройки только в одном месте (rc.conf) или где-то еще ?

Re: Настройка PPTP

Добавлено: 2010-03-11 22:58:45
FreeBSP
ип принимается ссебя
а именно - так
ifconfig_em1="inet xx.xxx.xxx.xxx netmask 255.255.255.0"
это раз
два - в общем случае, дефолтроутер и dhcp сервер - это разные машины

ну и три - Сори, конечно, но помоему, вам неплохо было бы почитать не только про основы маршрутизации, но и про основы FreeBSD и про dhcp с pptp вдогонку. да и про то как задавать вопросы о проблеме. где то в районе хендбука об этом писалось..

Re: Настройка PPTP

Добавлено: 2010-03-12 10:50:20
tj.anton
Да, дефолроутер и dhcp разные....
Посмотрел по базе кто такой дефол роутер, оказалась это cisco раздающая белые ип без впн.

теперь вопрос: во freebsd IP прописывается только в rc.conf или где-то еще есть какие-либо конфиги?

Re: Настройка PPTP

Добавлено: 2010-03-13 3:08:02
DeathStar
1. Установка

Для установки PPTP клиента под FreeBSD необходимо установить из портов пакет pptpclient. Скачать эти пакеты можно с официального ftp сервера FreeBSD.

Чтобы установить эти пакеты, в системе FreeBSD используется команда pkg_add(1). С правами администратора запустите следующие команды:


# pkg_add pptpclient-1.7.2_2.tbz

2. Настройка

в /etc/rc.conf должно быть это :
ifconfig_rl0="inet 0.0.0.0 netmask 255.255.0.0"
Где 0.0.0.0 – IP,привязаный к Вам

Для настройки ppp добавьте следующие строки в файл /etc/ppp/ppp.conf

#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.10.18.1 2008/11/25 02:59:29 kensmith Exp $
#################################################################

default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)

# Ensure that "device" references the correct serial port
# for your modem. (cuad0 = COM1, cuad1 = COM2)
#
set device /dev/cuad1

set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)

papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#

# set phone PHONE_NUM
# set authname USERNAME
# set authkey PASSWORD

# set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route

vpn:
set device "!pptp vpn.rybnet.ru --nolaunchpppd"
disable ipv6cp
disable acfcomp
disable protocomp
set mtu max 1492
disable lqr
disable pred1 deflate deflate24 protocomp acfcomp shortseq vj
deny pred1 deflate deflate24 protocomp acfcomp shortseq vj
disable mppe
#enable dns
set openmode passive
delete ALL
alias enable yes
nat enable yes
set authname 745-09-2008
set authkey password
set timeout 0
set ifaddr 0 0
add default HISADDR

отступы обязательны!!!!

где 745-09-2008 – имя пользователя для авторизации на VPN сервере, а password – его пароль.
3. Запуск и остановка
Решил написать скриптик для этого
пишем в консоли c правами администратора
ee /usr/local/etc/rc.d/atel

вписываем следующее

#!/bin/sh
#
#pptp for rc.d usage © DeathStar

# PROVIDE: atel
# REQUIRE: DAEMON
# KEYWORD: shutdown

. "/etc/rc.subr"

name=atel
rcvar=`set_rcvar`
load_rc_config $name

: ${atel_enable="NO"}

start_cmd=atel_start
stop_cmd=atel_stop
status_cmd=atel_status
command="/usr/local/sbin/pptp"
server="vpn.rybnet.ru"
year=$(date "+DATE: %Y" | cut -d' ' -f2)
mounth=$(date "+DATE: %m" | cut -d' ' -f2)
day=$(date "+DATE: %d" | cut -d' ' -f2)
time=$(date "+TIME: %H:%M:%S" | cut -d' ' -f2)
logfile="/var/log/${name}.txt"

atel_start() {

echo "Стартуем $name."

echo ${name} был запущен ${day}.${mounth}.${year} в ${time} >> ${logfile}
${command} ${server} vpn >> ${logfile} &
atel_status

}

atel_stop() {

echo $name был остановлен ${day}.${mounth}.${year} в ${time} >> ${logfile}
echo "Останавливаем $name."

pids=`pgrep pptp`
pkill pptp
wait_for_pids $pids
atel_status

}

atel_restart() {
if atel_checkstatus; then
atel_stop
atel_start
else
atel_start
fi

}

atel_status()
{
pids=`pgrep pptp`

if atel_checkstatus; then
echo "$name запущен с PID: ${pids}"
echo $name запущен с PID: ${pids} >> ${logfile}

else
echo "$name не запущен"
echo $name не запущен> ${logfile}
fi
}

atel_checkstatus()
{
pgrep pptp > /dev/null
}

run_rc_command "$1"
и сохраняем (
Отступы обязательны!!! )

добавляем в /etc/rc.conf следующее

atel_enable="YES"
Теперь пробуем запустить

/usr/local/etc/rc.d/atel start
При успешном подключении создастся интерфейс tunX, где X - цифра. Через этот интерфейс и пойдёт весь трафик. при вводе команды ifconfig будет примерно следующее

rl0: flags=8843 metric 0 mtu 1500
options=8
ether 00:55:d0:fb:1d:11
inet 10.0.54.153 netmask 0xffff0000 broadcast 10.0.255.255
media: Ethernet autoselect (100baseTX )
status: active
plip0: flags=8810 metric 0 mtu 1500
lo0: flags=8049 metric 0 mtu 16384
options=3
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
tun0: flags=8051 metric 0 mtu 1460
inet 83.234.110.39 --> 10.128.0.132 netmask 0xffffffff
Opened by PID 20110


Разорвать соединение можно послав команду
/usr/local/etc/rc.d/atel stop

Проверка статуса
/usr/local/etc/rc.d/atel status
Если запущен,то будет примерно следующее
atel запущен с PID: 20121
20117
20113

Настройка firewall'а

Протокол PPTP использует следующие порты и протоколы:

На сервере - порт 1723, протокол TCP.
У клиента (т.е. у Вас) - некий верхний порт (>1023), протокол TCP.
С обеих сторон - протокол GRE (для создания туннеля).
Если у Вас на машине установлен firewall, его необходимо настроить с учётом этих данных. Смотрите руководство на программное обеспечение, отвечающее за firewall в Вашей операционной системе.
Просьба строго не судить,так как опыта в написании скриптов и тп не имею из-за отсутсвия необходимости =) Если есть поправки - буду только рад.
Оригинал тут

Re: Настройка PPTP

Добавлено: 2010-03-13 8:44:35
tj.anton
с pptp уже вопрос ясен, вопрос стоит в другом:

" теперь вопрос: во freebsd IP прописывается только в rc.conf или где-то еще есть какие-либо конфиги? "

Re: Настройка PPTP

Добавлено: 2010-03-13 15:23:06
FreeBSP
ип может получаться и по dhcp, да и наверняка еще что то есть...
но основной конфиг - это rc.conf

Re: Настройка PPTP

Добавлено: 2010-03-13 20:15:27
DeathStar
Адрес задается только в /etc/rc.conf
Больше нигде