Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Dec 2014 15:08:09 +0800
From:      Julian Elischer <julian@freebsd.org>
To:        Nikolay Denev <ndenev@gmail.com>, "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: setfib and RSTs
Message-ID:  <54A0FDD9.4090009@freebsd.org>
In-Reply-To: <CA%2BP_MZHi1hMGq8qbOvpYSMLk4Usr4CAXjR1PdKRt7dE_vMJ7UQ@mail.gmail.com>
References:  <CA%2BP_MZHi1hMGq8qbOvpYSMLk4Usr4CAXjR1PdKRt7dE_vMJ7UQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/26/14 10:41 PM, Nikolay Denev wrote:
> Hi,
>
> I have a process (bittorrent client) running in a non-default fib and using
> a VPN for default gateway:
>
> from /etc/rc.local :
>
>      /usr/sbin/setfib 1 route add $vpn_provider 10.0.0.1
>      /usr/sbin/setfib 1 /usr/local/sbin/openvpn --config
> /usr/local/etc/openvpn/provider.ovpn
>      /usr/sbin/setfib 1 /usr/sbin/service transmission onestart
>
> Then openvpn installs default gateway in fib 1 to point to the tun(4)
> interface.
>
> Stil, I'm seeing RST packets from the bittorrent client process to be sent
> not via the tunnel, but to the default gateway of the lan which seems
> wrong. As if when the kernel generates the RST it does not take into
> account the FIB of the socket?
it's possible that you are correct.
I checked that RST and other generated packets used the FIB for the 
session if it existed when they are generated,
but I don't know what they do when a single unexpected packet 
enters..You may need toset the fib in received packets using either 
the ipfw setfib command or the ifconfig fib command.  The RST should 
then use the same FIB to respond.

let me know..


> Any ideas?
> _______________________________________________
> 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"
>
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54A0FDD9.4090009>