ОС:
Код: Выделить всё
11.1-RELEASE-p10 FreeBSD 11.1-RELEASE-p10 #0: Tue May 8 05:21:56 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Код: Выделить всё
startup:
set user admuser admpass admin
set console self 127.0.0.1 5005
set console open
# set web self 127.0.0.1 5006
# set web open
default:
load pptp_server
pptp_server:
set ippool add pool1 192.168.10.50 192.168.10.99
create bundle template B
set iface enable proxy-arp
set iface idle 1800
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 192.168.10.1/32 ippool pool1
# set ipcp dns 192.168.10.3
# set ipcp nbns 192.168.10.4
set bundle enable compression
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set mppc yes stateless
create link template L pptp
set link action bundle B
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap eap
set link enable chap
set link keep-alive 10 60
set link mtu 1460
set pptp self 1.2.3.107
set link enable incoming
cat mpd.secret
test1 qwer1234
test2 qwer12345
Подключаетcz test2, получает IP 192.168.10.51. Прекращается пинг с первого клиента до 192.168.10.1. Пинг со второго клиента до 192.168.10.1 идет.
Код: Выделить всё
ifconfig
em0: flags=8c02<BROADCAST,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
ether 00:25:90:ae:3b:2f
hwaddr 00:25:90:ae:3b:2f
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: no carrier
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
ether 00:25:90:ae:3b:2e
hwaddr 00:25:90:ae:3b:2e
inet 1.2.3.107 netmask 0xfffffff8 broadcast 1.2.3.111
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1396
inet 192.168.10.1 --> 192.168.10.50 netmask 0xffffffff
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
ng1: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1396
inet 192.168.10.1 --> 192.168.10.51 netmask 0xffffffff
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
netstat -4rn
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 1.2.3.105 UGS em1
1.2.3.104/29 link#2 U em1
1.2.3.107 link#2 UHS lo0
127.0.0.1 link#3 UH lo0
192.168.10.1 link#4 UHS lo0
192.168.10.50 link#4 UH ng0
192.168.10.51 link#5 UH ng1