Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2015 22:05:26 +0200
From:      Martin Larsson <martin.larsson2@gmail.com>
To:        =?UTF-8?Q?Ermal_Lu=C3=A7i?= <eri@freebsd.org>
Cc:        freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: FreeBSD makes linux think other subet is in same lan.
Message-ID:  <CABUmD9snPiEetaUyCpUj492k_%2B3KcjJFTX6fRXr8ndU1pL8nRg@mail.gmail.com>
In-Reply-To: <CAPBZQG0H16eczX7gqq8t495eRBZMHOAa1S4DvXUz3FemaACWCw@mail.gmail.com>
References:  <CABUmD9toVsmOo=sfosBO2Tv_ZU35odpM5MNaLNtzZhZpAXLjgQ@mail.gmail.com> <CAPBZQG0H16eczX7gqq8t495eRBZMHOAa1S4DvXUz3FemaACWCw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
yes, without adding the route, ping -S 192.168.1.1 10.11.12.13 works.


On Wed, May 6, 2015 at 9:51 PM, Ermal Lu=C3=A7i <eri@freebsd.org> wrote:

>
>
> On Wed, May 6, 2015 at 2:51 PM, Martin Larsson <martin.larsson2@gmail.com=
>
> wrote:
>
>> This is a small summary of
>>
>> https://forums.freebsd.org/threads/routing-issue-with-ipsec-windows-work=
s-linux-doesnt.51201/
>> .
>>
>>
>> Setup:
>> My side
>> 192.168.1.0/24
>> Freebsd (default gateway and ipsec gateway, 192.168.1.1)
>> windows, linux etc
>>
>> 10.11.12.0/24
>> other net
>>
>> 1: connect with ipsec to another subnet.
>> When tunnel is up, all computers behind can ping the remote subnet, but
>> not
>> freebsd itself.
>>
>
> Did you try by running ping with -S option to ping?
> Normally you should not need the route below since ping needs to be
> sourcing from your LAN ip to go to the other end.
>
>
>> So, I add a route: route add -net 10.11.12.0/24 192.168.1.1
>>
>> Now, FreeBSD itselt can also ping 10.11.12.0/24 host, but Linux stop
>> working.
>> windows can ping in both cases though.
>>
>> Here is arp -n on linux after the route is added on the freebsd gateway.
>>
>> Linux:~ # arp -a
>> ? (10.11.12.13) at <incomplete>  on eth0
>> ? (192.168.1.125) at b4:52:7e:95:2a:f5 [ether]  on eth0
>> ? (192.168.1.1) at 00:1b:21:00:62:62 [ether]  on eth0
>> ? (192.168.1.160) at 84:38:38:6a:ec:91 [ether]  on eth0
>> ? (192.168.1.6) at 1c:6f:65:21:36:96 [ether]  on eth0
>> ? (192.168.1.5) at 00:1a:4d:63:d8:5c [ether]  on eth0
>>
>> So somehow it thinks 10.11.12.0/24 is in its lan.
>> This very same scenario works fine if I replace my freebsd gateway with
>> openbsd or linux.
>> So could this be a bug or am I doing something wrong?
>>
>> Best regards
>> Niklas
>> _______________________________________________
>> 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"
>>
>
>
>
> --
> Ermal
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABUmD9snPiEetaUyCpUj492k_%2B3KcjJFTX6fRXr8ndU1pL8nRg>