Jump to content

Recommended Posts

Posted

Есть локальная сеть 192.168.1.0. В ней сервер на Debian c адресом 192.168.1.100. Интернет идет через dsl-модем 192.168.1.1.

pptpd настроил по инструкции http://openkazan.info/VPN-PPTPD-Ubuntu-Linux

Клиенты получают адреса 192.168.2.200-210.

Подключение клиентов проходит нормально. Адреса назначаются те которые нужно.

Но из локальной сети (192.168.1.0) клиентов не видно.

Пробывал прописать маршрут на клиенте: route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.100

Не помогло.

pptpd.conf:

option /etc/ppp/pptpd-options

logwtmp

bcrelay eth0

localip 192.168.2.1

remoteip 192.168.2.200-210,192.168.2.245

pptpd-options:

auth

name pptpd

refuse-pap

refuse-chap

refuse-mschap

require-mschap-v2

require-mppe-128

nodefaultroute

lock

nobsdcomp

interface машины из локальной сети:

auto lo

iface lo inet loopback

allow-hotplug eth0

iface eth0 inet static

address 192.168.1.89

netmask 255.255.255.0

network 192.168.1.0

broadcast 192.168.1.255

gateway 192.168.1.1

# dns-* options are implemented by the resolvconf package, if installed

dns-nameservers 192.168.1.1

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...