Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Aug 2012 18:43:51 +0200
From:      Bernard Higonnet <bthcom@higonnet.net>
To:        freebsd-net@freebsd.org
Subject:   Re: Uanble to use mpd5 as a gateway VPN, FreeBSD - solved
Message-ID:  <501D5147.9070905@higonnet.net>
In-Reply-To: <5017806A.8050608@norma.perm.ru>
References:  <501696C6.4040208@higonnet.net> <5017806A.8050608@norma.perm.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 31/07/2012 08:51, Eugene M. Zheganin wrote:
> Hi.
>
> On 30.07.2012 20:14, Bernard Higonnet wrote:
>> Hello,
>>
>> Hope this is the right place to mail...
>>
>> I have two networks A and B.
>>
>> One machine on A runs an MPD5 server.
>>
>> On network B I have machine X which has an MPD5 client used to
>> establish a connection the VPN server on machine Z in network A. Seems
>> to work fine (ping, ssh, etc.). This machine is also set up as a
>> gateway. When I look at the routing table, it looks OK, all references
>> to A being sent to Z.
>>
>> On network B I also have machine Y. On this machine I have added a
>> route which specifies that network A is to accessed via machine X.
>>
>> It would appear (sic) that requests from Y to a machine on A are
>> received by that machine. However, nothing ever comes back.
>>
>> All these machines are running FreeBSD, 8 on Z, and 9.0 on X and Y.
>>
>> I'm hoping I have forgotten some very obvious thing which a kind soul
>> will point out to me so I don't have to tcpdump everything all over
>> the place...
>>
> So.... Z is an mpd, X is a client, Y is a machine behind a client. X
> sees Z, Y doesn't see Z because Z isn't answering, however, Z sees
> incoming packets.
> My guess - Z doesn't know where is the B network, as when X is
> exchanging packets with Z, it does it by using it's p2p-address.
>
> Try to see the output of 'route -n get <B network ip address>' on Z.
> If I'm right - add a route, via bundle matching or via up-script, or
> manually, or use nat on X.
>
> Eugene.
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"

Yes, I had to

route add B X

Thanks
Bernard Higonnet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?501D5147.9070905>