Re[4]: vpn using pptpclient in FreeBSD

2011-09-03 Thread Marco Beishuizen

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


Please describe your networks fully

also I ask to send output of:
ifconfig
netstat -nr


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


My ifconfig and netstat when mpd5 is not running:

em0: flags=8843 metric 0 mtu 1500

options=209b
ether 00:0e:0c:3d:e1:6d
inet6 fe80::20e:cff:fe3d:e16d%em0 prefixlen 64 scopeid 0x4
inet 192.168.1.11 netmask 0xff00 broadcast 192.168.1.255
nd6 options=3
media: Ethernet autoselect (1000baseT )
status: active
fwe0: flags=8802 metric 0 mtu 1500
options=8
ether 02:02:3c:06:08:57
ch 1 dma -1
fwip0: flags=8802 metric 0 mtu 1500
lladdr 0.2.3c.1.1.6.8.57.a.2.ff.fe.0.0.0.0
lo0: flags=8049 metric 0 mtu 16384
options=3
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
nd6 options=3

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.1.1UGS 059590em0
127.0.0.1  link#7 UH  0  354lo0
192.168.1.0/24 link#4 U   0   92em0
192.168.1.11   link#4 UHS 00lo0

My ifconfig and netstat when mpd5 is running:

em0: flags=8843 metric 0 mtu 1500

options=209b
ether 00:0e:0c:3d:e1:6d
inet6 fe80::20e:cff:fe3d:e16d%em0 prefixlen 64 scopeid 0x4
inet 192.168.1.11 netmask 0xff00 broadcast 192.168.1.255
nd6 options=3
media: Ethernet autoselect (1000baseT )
status: active
fwe0: flags=8802 metric 0 mtu 1500
options=8
ether 02:02:3c:06:08:57
ch 1 dma -1
fwip0: flags=8802 metric 0 mtu 1500
lladdr 0.2.3c.1.1.6.8.57.a.2.ff.fe.0.0.0.0
lo0: flags=8049 metric 0 mtu 16384
options=3
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
nd6 options=3
ng0: flags=88d1 metric 0 
mtu 1456

inet 130.115.77.12 --> 130.115.3.34 netmask 0x
inet6 fe80::20e:cff:fe3d:e16d%ng0 prefixlen 64 scopeid 0x8
nd6 options=3

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.1.1UGS 059807em0
127.0.0.1  link#7 UH  0  354lo0
130.115.0.0/16 130.115.3.34   UGS 00ng0
130.115.3.34   link#8 UH  04ng0
130.115.77.12  link#8 UHS 00lo0
192.168.1.0/24 link#4 U   0   92em0
192.168.1.11   link#4 UHS 00lo0

Hope this clears things up.

Regards,
Marco

--
If you keep your mind sufficiently open, people will throw a lot of
rubbish into it.
-- William Orton___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re[4]: vpn using pptpclient in FreeBSD

2011-09-03 Thread Коньков Евгений
Здравствуйте, Marco.

Вы писали 2 сентября 2011 г., 13:42:23:

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

>>> set iface route 130.115.0.0/16
>> you say that behind tunnele thereis 130.115.0.0/16 subnet, but
>> MB> [B1]   130.115.85.11 -> 130.115.3.35
>> you have address from subnet 130.115.0.0/16 addres on local machine
>> so you get this message:
>> MB> Loop detected on ng0
>>
>> add routes only for subnets that on the other end of tunnel and not
>> local
 set iface route 130.115.0.0/16
>>
>> also you may remove  'iface route' from config. and setup tunnel.
>> after that try to ping the other end: ping 130.115.3.35
>> add route by hand:
>> # route add /X 130.115.3.35
>> # route add /Y 130.115.3.35

MB> My local machine has ip 192.168.x.x. IP 130.115.x.x is the university 
MB> network I want to connect to. When setting the "iface route" to 
MB> 192.168.0.0/16, the connection doesn't work either:
MB> ...
MB> [B1] IPCP: state change Ack-Sent --> Opened
MB> [B1] IPCP: LayerUp
MB> [B1]   130.115.77.2 -> 130.115.3.34
MB> [B1] IFACE: Add route 192.168.1.0/24 130.115.3.34 failed: File exists
MB> [B1] IFACE: Up event
MB> ...

MB> With the "iface route" removed, the other end 130.115.3.34 is not 
MB> pingable, so there is no connection in this case.

MB> Marco

Please describe your networks fully

also I ask to send output of:
ifconfig
netstat -nr

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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"