vpn using pptpclient in FreeBSD

Коньков Евгений kes-kes at yandex.ru
Sun Sep 4 22:58:51 UTC 2011


Здравствуйте, Marco.

Вы писали 3 сентября 2011 г., 21:55:37:

MB> On Sat, 3 Sep 2011, the wise Коньков Евгений wrote:

>> Please describe your networks fully
>>
>> also I ask to send output of:
>> ifconfig
>> netstat -nr

MB> My computer has IP 192.168.1.11, and sits behind a ADSL router which has
MB> IP 192.168.1.1, the router is the gateway to the internet. IP adresses are
MB> assigned by DHCP. The vpn network of the university I would like to 
MB> connect to has the adress vpn-eur-pptp.eur.nl. The IP range of the 
MB> university is 130.115.x.x.

MB> My ifconfig and netstat when mpd5 is not running:

MB> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500

MB> options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
MB>          ether 00:0e:0c:3d:e1:6d
MB>          inet6 fe80::20e:cff:fe3d:e16d%em0 prefixlen 64 scopeid 0x4
MB>          inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255
MB>          nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
MB>          media: Ethernet autoselect (1000baseT <full-duplex>)
MB>          status: active
MB> fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
MB>          options=8<VLAN_MTU>
MB>          ether 02:02:3c:06:08:57
MB>          ch 1 dma -1
MB> fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
MB>          lladdr 0.2.3c.1.1.6.8.57.a.2.ff.fe.0.0.0.0
MB> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
MB>          options=3<RXCSUM,TXCSUM>
MB>          inet 127.0.0.1 netmask 0xff000000
MB>          inet6 ::1 prefixlen 128
MB>          inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
MB>          nd6 options=3<PERFORMNUD,ACCEPT_RTADV>

MB> Internet:
MB> Destination        Gateway            Flags    Refs      Use  Netif Expire
MB> default            192.168.1.1        UGS         0    59590    em0
MB> 127.0.0.1          link#7             UH          0      354    lo0
MB> 192.168.1.0/24     link#4             U           0       92    em0
MB> 192.168.1.11       link#4             UHS         0        0    lo0

MB> My ifconfig and netstat when mpd5 is running:

MB> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500

MB> options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
MB>          ether 00:0e:0c:3d:e1:6d
MB>          inet6 fe80::20e:cff:fe3d:e16d%em0 prefixlen 64 scopeid 0x4
MB>          inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255
MB>          nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
MB>          media: Ethernet autoselect (1000baseT <full-duplex>)
MB>          status: active
MB> fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
MB>          options=8<VLAN_MTU>
MB>          ether 02:02:3c:06:08:57
MB>          ch 1 dma -1
MB> fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
MB>          lladdr 0.2.3c.1.1.6.8.57.a.2.ff.fe.0.0.0.0
MB> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
MB>          options=3<RXCSUM,TXCSUM>
MB>          inet 127.0.0.1 netmask 0xff000000
MB>          inet6 ::1 prefixlen 128
MB>          inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
MB>          nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
MB> ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0
MB> mtu 1456
MB>          inet 130.115.77.12 --> 130.115.3.34 netmask 0xffffffff
MB>          inet6 fe80::20e:cff:fe3d:e16d%ng0 prefixlen 64 scopeid 0x8
MB>          nd6 options=3<PERFORMNUD,ACCEPT_RTADV>

MB> Internet:
MB> Destination        Gateway            Flags    Refs      Use  Netif Expire
MB> default            192.168.1.1        UGS         0    59807    em0
MB> 127.0.0.1          link#7             UH          0      354    lo0
MB> 130.115.0.0/16     130.115.3.34       UGS         0        0    ng0
MB> 130.115.3.34       link#8             UH          0        4    ng0
MB> 130.115.77.12      link#8             UHS         0        0    lo0
MB> 192.168.1.0/24     link#4             U           0       92    em0
MB> 192.168.1.11       link#4             UHS         0        0    lo0

MB> Hope this clears things up.

MB> Regards,
MB> Marco


As I have so, you
 1. Successfully connect to university
MB> ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0
MB> mtu 1456
MB>          inet 130.115.77.12 --> 130.115.3.34 netmask 0xffffffff
MB>          inet6 fe80::20e:cff:fe3d:e16d%ng0 prefixlen 64 scopeid 0x8
MB>          nd6 options=3<PERFORMNUD,ACCEPT_RTADV>

 2. You also have route to it
MB> 130.115.0.0/16     130.115.3.34       UGS         0        0    ng0

so you are done, are not?

-- 
С уважением,
 Коньков                          mailto:kes-kes at yandex.ru



More information about the freebsd-questions mailing list