Решил поэкпериментировать
Дано:
Код: Выделить всё
22:55 root@router [~]#uname -a
FreeBSD router.integral.lan 7.0-STABLE FreeBSD 7.0-STABLE
интерфейсы:
Код: Выделить всё
22:56 root@router [~]#ifconfig
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
ether 00:1c:f0:cb:57:d0
inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255
inet 192.168.0.7 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vr1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
ether 00:1c:f0:cb:5e:18
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
на vr1 делал так:
Код: Выделить всё
vr1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
ether 00:1c:f0:cb:5e:18
inet 195.206.40.2 netmask 0xfffffffc broadcast 195.206.40.3
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
на mpd5 делаю так:
(выдержка ,касающаяся конфига сервера PPTP)
Код: Выделить всё
pptp_server:
# Define dynamic IP address pool.
# set ippool add pool1 192.168.2.50 192.168.2.99
set ippool add pool1 10.2.7.225 10.2.7.254
# Create clonable bundle template named B
create bundle template B
set iface enable proxy-arp
set iface idle 1800
set iface enable tcpmssfix
set ipcp yes vjcomp
# Specify IP address pool for dynamic assigment.
# set ipcp ranges 192.168.2.1/32 ippool pool1
set ipcp ranges 195.206.45.219/32 ippool pool1
# set ipcp dns 192.168.1.7
set ipcp dns 195.206.40.177
# set ipcp nbns 192.168.1.4
# The five lines below enable Microsoft Point-to-Point encryption
# (MPPE) using the ng_mppc(8) netgraph node type.
set bundle enable compression
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set mppc yes stateless
# Create clonable link template named L
create link template L pptp
# Set bundle template to use
set link action bundle B
# Multilink adds some overhead, but gives full 1500 MTU.
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
# We reducing link mtu to avoid GRE packet fragmentation.
set link mtu 1460
# Configure PPTP - это мой внешний IP адрес, на котором будет слушать MPD, приём пациентов.
# set pptp self 192.168.1.7
set pptp self 195.206.40.2
mpd.secret имеет такой вид :
Код: Выделить всё
23:12 root@router [mpd5]#cat mpd.secret
admin admin
admin admin
andrei "0" 192.168.2.31
ania "1" 192.168.2.32
test test 192.168.2.33
test1 test1
login password 195.206.45.219
Дано:
машинка с виндой, делаю на ней vpn-соединение и благополучно цепляюсь к PPTP-серверу, конфиг которого привел выше:
Код: Выделить всё
C:\Documents and Settings\Администратор>ipconfig
Настройка протокола IP для Windows
Подключение по локальной сети - Ethernet адаптер:
DNS-суффикс этого подключения . . :
IP-адрес . . . . . . . . . . . . : 192.168.1.27
Маска подсети . . . . . . . . . . : 255.255.255.0
Основной шлюз . . . . . . . . . . : 192.168.1.7
dsi - PPP адаптер:
DNS-суффикс этого подключения . . :
IP-адрес . . . . . . . . . . . . : 195.206.45.219
Маска подсети . . . . . . . . . . : 255.255.255.255
Основной шлюз . . . . . . . . . . : 195.206.45.219
ФАКТ налицо - PPTP-сервер работает и позволяет к нему цепляться !!!
вот лог соединения:
Код: Выделить всё
Aug 2 22:46:46 router mpd: process 935 started, version 5.1 (root@router.integral.lan 18:13 14-Jul-2008)
Aug 2 22:46:46 router mpd: CONSOLE: listening on 127.0.0.1 5005
Aug 2 22:46:46 router mpd: web: listening on 192.168.0.7 5006
Aug 2 22:46:46 router mpd: bind: Can't assign requested address
Aug 2 22:46:46 router mpd: PPTP: waiting for connection on 195.206.40.2 1723
Aug 2 22:46:56 router mpd: bind: Can't assign requested address
Aug 2 23:09:45 router mpd: last message repeated 64 times
Aug 2 23:09:45 router mpd: [L-1] Accepting PPTP connection
Aug 2 23:09:45 router mpd: [L-1] Link: OPEN event
Aug 2 23:09:45 router mpd: [L-1] LCP: Open event
Aug 2 23:09:45 router mpd: [L-1] LCP: state change Initial --> Starting
Aug 2 23:09:45 router mpd: [L-1] LCP: LayerStart
Aug 2 23:09:45 router mpd: [L-1] PPTP: attaching to peer's outgoing call
Aug 2 23:09:45 router mpd: [L-1] Link: UP event
Aug 2 23:09:45 router mpd: [L-1] Link: origination is remote
Aug 2 23:09:45 router mpd: [L-1] LCP: Up event
Aug 2 23:09:45 router mpd: [L-1] LCP: state change Starting --> Req-Sent
Aug 2 23:09:45 router mpd: [L-1] LCP: SendConfigReq #1
Aug 2 23:09:45 router mpd: [L-1] ACFCOMP
Aug 2 23:09:45 router mpd: [L-1] PROTOCOMP
Aug 2 23:09:45 router mpd: [L-1] MRU 1500
Aug 2 23:09:45 router mpd: [L-1] MAGICNUM 48067b22
Aug 2 23:09:45 router mpd: [L-1] AUTHPROTO CHAP MSOFTv2
Aug 2 23:09:45 router mpd: [L-1] MP MRRU 2048
Aug 2 23:09:45 router mpd: [L-1] MP SHORTSEQ
Aug 2 23:09:45 router mpd: [L-1] ENDPOINTDISC [802.1] 00 1c f0 cb 57 d0
Aug 2 23:09:45 router mpd: [L-1] LCP: rec'd Configure Request #0 (Req-Sent)
Aug 2 23:09:45 router mpd: [L-1] MRU 1400
Aug 2 23:09:45 router mpd: [L-1] MAGICNUM 784c75bb
Aug 2 23:09:45 router mpd: [L-1] PROTOCOMP
Aug 2 23:09:45 router mpd: [L-1] ACFCOMP
Aug 2 23:09:45 router mpd: [L-1] CALLBACK 6
Aug 2 23:09:45 router mpd: [L-1] LCP: SendConfigRej #0
Aug 2 23:09:45 router mpd: [L-1] CALLBACK 6
Aug 2 23:09:45 router mpd: [L-1] LCP: rec'd Configure Request #1 (Req-Sent)
Aug 2 23:09:45 router mpd: [L-1] MRU 1400
Aug 2 23:09:45 router mpd: [L-1] MAGICNUM 784c75bb
Aug 2 23:09:45 router mpd: [L-1] PROTOCOMP
Aug 2 23:09:45 router mpd: [L-1] ACFCOMP
Aug 2 23:09:45 router mpd: [L-1] LCP: SendConfigAck #1
Aug 2 23:09:45 router mpd: [L-1] MRU 1400
Aug 2 23:09:45 router mpd: [L-1] MAGICNUM 784c75bb
Aug 2 23:09:45 router mpd: [L-1] PROTOCOMP
Aug 2 23:09:45 router mpd: [L-1] ACFCOMP
Aug 2 23:09:45 router mpd: [L-1] LCP: state change Req-Sent --> Ack-Sent
Aug 2 23:09:47 router mpd: [L-1] LCP: SendConfigReq #2
Aug 2 23:09:47 router mpd: [L-1] ACFCOMP
Aug 2 23:09:47 router mpd: [L-1] PROTOCOMP
Aug 2 23:09:47 router mpd: [L-1] MRU 1500
Aug 2 23:09:47 router mpd: [L-1] MAGICNUM 48067b22
Aug 2 23:09:47 router mpd: [L-1] AUTHPROTO CHAP MSOFTv2
Aug 2 23:09:47 router mpd: [L-1] MP MRRU 2048
Aug 2 23:09:47 router mpd: [L-1] MP SHORTSEQ
Aug 2 23:09:47 router mpd: [L-1] ENDPOINTDISC [802.1] 00 1c f0 cb 57 d0
Aug 2 23:09:47 router mpd: [L-1] LCP: rec'd Configure Reject #2 (Ack-Sent)
Aug 2 23:09:47 router mpd: [L-1] MP MRRU 2048
Aug 2 23:09:47 router mpd: [L-1] MP SHORTSEQ
Aug 2 23:09:47 router mpd: [L-1] ENDPOINTDISC [802.1] 00 1c f0 cb 57 d0
Aug 2 23:09:47 router mpd: [L-1] LCP: SendConfigReq #3
Aug 2 23:09:47 router mpd: [L-1] ACFCOMP
Aug 2 23:09:47 router mpd: [L-1] PROTOCOMP
Aug 2 23:09:47 router mpd: [L-1] MRU 1500
Aug 2 23:09:47 router mpd: [L-1] MAGICNUM 48067b22
Aug 2 23:09:47 router mpd: [L-1] AUTHPROTO CHAP MSOFTv2
Aug 2 23:09:47 router mpd: [L-1] LCP: rec'd Configure Ack #3 (Ack-Sent)
Aug 2 23:09:47 router mpd: [L-1] ACFCOMP
Aug 2 23:09:47 router mpd: [L-1] PROTOCOMP
Aug 2 23:09:47 router mpd: [L-1] MRU 1500
Aug 2 23:09:47 router mpd: [L-1] MAGICNUM 48067b22
Aug 2 23:09:47 router mpd: [L-1] AUTHPROTO CHAP MSOFTv2
Aug 2 23:09:47 router mpd: [L-1] LCP: state change Ack-Sent --> Opened
Aug 2 23:09:47 router mpd: [L-1] LCP: auth: peer wants nothing, I want CHAP
Aug 2 23:09:47 router mpd: [L-1] CHAP: sending CHALLENGE #1 len: 21
Aug 2 23:09:47 router mpd: [L-1] LCP: LayerUp
Aug 2 23:09:47 router mpd: [L-1] LCP: rec'd Ident #2 (Opened)
Aug 2 23:09:47 router mpd: [L-1] MESG: MSRASV5.10
Aug 2 23:09:47 router mpd: [L-1] LCP: rec'd Ident #3 (Opened)
Aug 2 23:09:47 router mpd: [L-1] MESG: MSRAS-0-HOM
Aug 2 23:09:47 router mpd: [L-1] CHAP: rec'd RESPONSE #1 len: 63
Aug 2 23:09:47 router mpd: [L-1] Name: "ppmrdoors"
Aug 2 23:09:47 router mpd: [L-1] AUTH: Trying INTERNAL
Aug 2 23:09:47 router mpd: [L-1] AUTH: INTERNAL returned: undefined
Aug 2 23:09:47 router mpd: [L-1] CHAP: Auth return status: undefined
Aug 2 23:09:47 router mpd: [L-1] CHAP: Response is valid
Aug 2 23:09:47 router mpd: [L-1] CHAP: Reply message: S=9A0EC05DA7DE798BD8357FECD29607834FE55A5F
Aug 2 23:09:47 router mpd: [L-1] CHAP: sending SUCCESS #1 len: 46
Aug 2 23:09:47 router mpd: [L-1] LCP: authorization successful
Aug 2 23:09:47 router mpd: [L-1] Link: Matched action 'bundle "B" ""'
Aug 2 23:09:47 router mpd: [L-1] Creating new bundle using template "B".
Aug 2 23:09:47 router mpd: [B-1] Bundle: Interface ng0 created
Aug 2 23:09:47 router mpd: [L-1] Link: Join bundle "B-1"
Aug 2 23:09:47 router mpd: [B-1] Bundle: Status update: up 1 link, total bandwidth 64000 bps
Aug 2 23:09:47 router mpd: [B-1] IPCP: Open event
Aug 2 23:09:47 router mpd: [B-1] IPCP: state change Initial --> Starting
Aug 2 23:09:47 router mpd: [B-1] IPCP: LayerStart
Aug 2 23:09:47 router mpd: [B-1] CCP: Open event
Aug 2 23:09:47 router mpd: [B-1] CCP: state change Initial --> Starting
Aug 2 23:09:47 router mpd: [B-1] CCP: LayerStart
Aug 2 23:09:47 router mpd: [B-1] IPCP: Up event
Aug 2 23:09:47 router mpd: [B-1] IPCP: state change Starting --> Req-Sent
Aug 2 23:09:47 router mpd: [B-1] IPCP: SendConfigReq #1
Aug 2 23:09:47 router mpd: [B-1] IPADDR 195.206.45.219
Aug 2 23:09:47 router mpd: [B-1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Aug 2 23:09:47 router mpd: [B-1] CCP: Up event
Aug 2 23:09:47 router mpd: [B-1] CCP: state change Starting --> Req-Sent
Aug 2 23:09:47 router mpd: [B-1] CCP: SendConfigReq #1
Aug 2 23:09:47 router mpd: [B-1] MPPC
Aug 2 23:09:47 router mpd: [B-1] 0x01000060:MPPE(40, 128 bits), stateless
Aug 2 23:09:47 router mpd: [B-1] IPCP: rec'd Configure Reject #1 (Req-Sent)
Aug 2 23:09:47 router mpd: [B-1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
Aug 2 23:09:47 router mpd: [B-1] IPCP: SendConfigReq #2
Aug 2 23:09:47 router mpd: [B-1] IPADDR 195.206.45.219
Aug 2 23:09:47 router mpd: [B-1] CCP: rec'd Configure Nak #1 (Req-Sent)
Aug 2 23:09:47 router mpd: [B-1] MPPC
Aug 2 23:09:47 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
Aug 2 23:09:47 router mpd: [B-1] CCP: SendConfigReq #2
Aug 2 23:09:47 router mpd: [B-1] MPPC
Aug 2 23:09:47 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
Aug 2 23:09:47 router mpd: [B-1] IPCP: rec'd Configure Ack #2 (Req-Sent)
Aug 2 23:09:47 router mpd: [B-1] IPADDR 195.206.45.219
Aug 2 23:09:47 router mpd: [B-1] IPCP: state change Req-Sent --> Ack-Rcvd
Aug 2 23:09:47 router mpd: [B-1] CCP: rec'd Configure Ack #2 (Req-Sent)
Aug 2 23:09:47 router mpd: [B-1] MPPC
Aug 2 23:09:47 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
Aug 2 23:09:47 router mpd: [B-1] CCP: state change Req-Sent --> Ack-Rcvd
Aug 2 23:09:49 router mpd: [B-1] IPCP: rec'd Configure Request #6 (Ack-Rcvd)
Aug 2 23:09:49 router mpd: [B-1] IPADDR 0.0.0.0
Aug 2 23:09:49 router mpd: [B-1] NAKing with 195.206.45.219
Aug 2 23:09:49 router mpd: [B-1] PRIDNS 0.0.0.0
Aug 2 23:09:49 router mpd: [B-1] NAKing with 195.206.40.177
Aug 2 23:09:49 router mpd: [B-1] PRINBNS 0.0.0.0
Aug 2 23:09:49 router mpd: [B-1] SECDNS 0.0.0.0
Aug 2 23:09:49 router mpd: [B-1] SECNBNS 0.0.0.0
Aug 2 23:09:49 router mpd: [B-1] IPCP: SendConfigRej #6
Aug 2 23:09:49 router mpd: [B-1] PRINBNS 0.0.0.0
Aug 2 23:09:49 router mpd: [B-1] SECDNS 0.0.0.0
Aug 2 23:09:49 router mpd: [B-1] SECNBNS 0.0.0.0
Aug 2 23:09:49 router mpd: [B-1] CCP: rec'd Configure Request #7 (Ack-Rcvd)
Aug 2 23:09:49 router mpd: [B-1] MPPC
Aug 2 23:09:49 router mpd: [B-1] 0x010000e1:MPPC, MPPE(40, 56, 128 bits), stateless
Aug 2 23:09:49 router mpd: [B-1] CCP: SendConfigNak #7
Aug 2 23:09:49 router mpd: [B-1] MPPC
Aug 2 23:09:49 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
Aug 2 23:09:49 router mpd: [B-1] IPCP: rec'd Configure Request #8 (Ack-Rcvd)
Aug 2 23:09:49 router mpd: [B-1] IPADDR 0.0.0.0
Aug 2 23:09:49 router mpd: [B-1] NAKing with 195.206.45.219
Aug 2 23:09:49 router mpd: [B-1] PRIDNS 0.0.0.0
Aug 2 23:09:49 router mpd: [B-1] NAKing with 195.206.40.177
Aug 2 23:09:49 router mpd: [B-1] IPCP: SendConfigNak #8
Aug 2 23:09:49 router mpd: [B-1] IPADDR 195.206.45.219
Aug 2 23:09:49 router mpd: [B-1] PRIDNS 195.206.40.177
Aug 2 23:09:49 router mpd: [B-1] CCP: rec'd Configure Request #9 (Ack-Rcvd)
Aug 2 23:09:49 router mpd: [B-1] MPPC
Aug 2 23:09:49 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
Aug 2 23:09:49 router mpd: [B-1] CCP: SendConfigAck #9
Aug 2 23:09:49 router mpd: [B-1] MPPC
Aug 2 23:09:49 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
Aug 2 23:09:49 router mpd: [B-1] CCP: state change Ack-Rcvd --> Opened
Aug 2 23:09:49 router mpd: [B-1] CCP: LayerUp
Aug 2 23:09:49 router mpd: [B-1] CCP: Compress using: mppc (MPPE(128 bits), stateless)
Aug 2 23:09:49 router mpd: [B-1] CCP: Decompress using: mppc (MPPE(128 bits), stateless)
Aug 2 23:09:49 router mpd: [B-1] IPCP: rec'd Configure Request #10 (Ack-Rcvd)
Aug 2 23:09:49 router mpd: [B-1] IPADDR 195.206.45.219
Aug 2 23:09:49 router mpd: [B-1] 195.206.45.219 is OK
Aug 2 23:09:49 router mpd: [B-1] PRIDNS 195.206.40.177
Aug 2 23:09:49 router mpd: [B-1] IPCP: SendConfigAck #10
Aug 2 23:09:49 router mpd: [B-1] IPADDR 195.206.45.219
Aug 2 23:09:49 router mpd: [B-1] PRIDNS 195.206.40.177
Aug 2 23:09:49 router mpd: [B-1] IPCP: state change Ack-Rcvd --> Opened
Aug 2 23:09:49 router mpd: [B-1] IPCP: LayerUp
Aug 2 23:09:49 router mpd: [B-1] 195.206.45.219 -> 195.206.45.219
Aug 2 23:09:49 router mpd: [B-1] IFACE: No interface to proxy arp on for 195.206.45.219
Aug 2 23:09:49 router mpd: [B-1] IFACE: Up event
Aug 2 23:10:23 router mpd: [L-1] LCP: rec'd Terminate Request #11 (Opened)
Aug 2 23:10:23 router mpd: [L-1] LCP: state change Opened --> Stopping
Aug 2 23:10:23 router mpd: [L-1] Link: Leave bundle "B-1"
Aug 2 23:10:23 router mpd: [B-1] Bundle: Status update: up 0 links, total bandwidth 9600 bps
Aug 2 23:10:23 router mpd: [B-1] IPCP: Close event
Aug 2 23:10:23 router mpd: [B-1] IPCP: state change Opened --> Closing
Aug 2 23:10:23 router mpd: [B-1] IPCP: SendTerminateReq #3
Aug 2 23:10:23 router mpd: [B-1] IPCP: LayerDown
Aug 2 23:10:23 router mpd: [B-1] IFACE: Down event
Aug 2 23:10:23 router mpd: [B-1] CCP: Close event
Aug 2 23:10:23 router mpd: [B-1] CCP: state change Opened --> Closing
Aug 2 23:10:23 router mpd: [B-1] CCP: SendTerminateReq #3
Aug 2 23:10:23 router mpd: [B-1] CCP: LayerDown
Aug 2 23:10:23 router mpd: [B-1] IPCP: Down event
Aug 2 23:10:23 router mpd: [B-1] IPCP: LayerFinish
Aug 2 23:10:23 router mpd: [B-1] Bundle: No NCPs left. Closing links...
Aug 2 23:10:23 router mpd: [B-1] IPCP: state change Closing --> Initial
Aug 2 23:10:23 router mpd: [B-1] CCP: Down event
Aug 2 23:10:23 router mpd: [B-1] CCP: LayerFinish
Aug 2 23:10:23 router mpd: [B-1] CCP: state change Closing --> Initial
Aug 2 23:10:23 router mpd: [B-1] Bundle: Shutdown
Aug 2 23:10:23 router mpd: [L-1] LCP: SendTerminateAck #4
Aug 2 23:10:23 router mpd: [L-1] LCP: LayerDown
Aug 2 23:10:25 router mpd: [L-1] LCP: state change Stopping --> Stopped
Aug 2 23:10:25 router mpd: [L-1] LCP: LayerFinish
Aug 2 23:10:25 router mpd: [L-1] PPTP call terminated
Aug 2 23:10:25 router mpd: [L-1] Link: DOWN event
Aug 2 23:10:25 router mpd: [L-1] LCP: Close event
Aug 2 23:10:25 router mpd: [L-1] LCP: state change Stopped --> Closed
Aug 2 23:10:25 router mpd: [L-1] LCP: Down event
Aug 2 23:10:25 router mpd: [L-1] LCP: state change Closed --> Initial
Aug 2 23:10:25 router mpd: [L-1] Link: SHUTDOWN event
Aug 2 23:10:25 router mpd: [L-1] Link: Shutdown
Дано :
Еще одна машинка с фряхой :
Код: Выделить всё
router# uname -a
FreeBSD router.mrdoors 7.0-STABLE FreeBSD 7.0-STABLE
Настроил на ней mpd5 в качестве клиента :
Код: Выделить всё
default:
load pptp_client
pptp_client:
#
# PPTP client: only outgoing calls, auto reconnect,
# ipcp-negotiated address, one-sided authentication,
# default route points on ISP's end
#
create bundle static B1
set iface route default
# set ipcp ranges 0.0.0.0/0 0.0.0.0/0
# set ipcp ranges
create link static L1 pptp
set link action bundle B1
set auth authname login
set auth password password
set link max-redial 0
set link mtu 1460
set link keep-alive 20 75
set pptp peer 195.206.40.2
set pptp disable windowing
open
интерфейсы на ней такие :
Код: Выделить всё
router# ifconfig
vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
ether 00:1c:f0:cb:57:d2
inet 10.2.7.233 netmask 0xffffffe0 broadcast 10.2.7.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
vr1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
ether 00:1c:f0:cb:5e:11
inet 192.168.1.9 netmask 0xffffff00 broadcast 192.168.1.255
inet 192.168.0.9 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
маршрутизация выглядит так :
Код: Выделить всё
router# netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
10.2.7.224/27 link#1 UC 0 0 vr0
10.2.7.255 ff:ff:ff:ff:ff:ff UHLWb 1 68 vr0
127.0.0.1 127.0.0.1 UH 0 366 lo0
192.168.0.0/24 link#2 UC 0 0 vr1
192.168.0.15 00:e0:4c:ff:f6:64 UHLW 1 259 vr1 855
192.168.0.255 ff:ff:ff:ff:ff:ff UHLWb 1 78 vr1
192.168.1.0/24 link#2 UC 0 0 vr1
192.168.1.7 00:1c:f0:cb:57:d0 UHLW 1 0 vr1 1198
192.168.1.9 00:1c:f0:cb:5e:11 UHLW 1 24 lo0
192.168.1.255 ff:ff:ff:ff:ff:ff UHLWb 1 20 vr1
195.206.40.2 10.2.7.225 UGHS 0 54 vr0
вывод ipfw -t list :
Код: Выделить всё
router# ipfw -t list
00100 Sat Aug 2 23:21:45 2008 allow ip from any to any via lo0
00200 deny ip from any to 127.0.0.0/8
00300 deny ip from 127.0.0.0/8 to any
00600 allow ip from 192.168.1.9 to any dst-port 25
00600 allow ip from 192.168.0.9 to any dst-port 25
00600 allow ip from 192.168.1.61 to any dst-port 25
00610 allow ip from 192.168.1.152 to any dst-port 25
00620 allow ip from 192.168.1.55 to any dst-port 25
00630 allow ip from 192.168.1.56 to any dst-port 25
00640 allow ip from 192.168.1.57 to any dst-port 25
00650 allow ip from 192.168.1.58 to any dst-port 25
00660 allow ip from 192.168.1.59 to any dst-port 25
00670 allow ip from 192.168.1.60 to any dst-port 25
64100 allow ip from 192.168.1.152 to any
64200 allow ip from any to 192.168.1.152
65000 Sat Aug 2 23:21:51 2008 allow ip from any to any
65100 deny log logamount 3000 ip from any to any
65535 deny ip from any to any
и вот тут у меня уже не идет..не могу ни пингануть хост 195.206.40.2, который присвоен интерфейсу vr1 первой машинке :
Код: Выделить всё
22:55 root@router [~]#uname -a
FreeBSD router.integral.lan 7.0-STABLE FreeBSD 7.0-STABLE
ни ,тем более - подепиться к PPTP-серверу..
глаза уже замылилсь видимо..не могу найти очевидную причину - нету маршрута до адреса 195.206.40.2 !!!!
..хотя когда эту же самую машинку, с этими же самыми настройками, в реале цеплял к серваку на адрес
провайдера - все получалось !!!
подскажите ,плиз...где я туплю !?!?