Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Nov 2024 15:37:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 202038] [request] source address based routing without pf or ipfw
Message-ID:  <bug-202038-7501-xZwQSXu0cu@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-202038-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-202038-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202038

Damjan Jovanovic <damjan.jov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |damjan.jov@gmail.com

--- Comment #1 from Damjan Jovanovic <damjan.jov@gmail.com> ---
Doesn't support for multiple FIBs give you a way to route by source? For
example:

# Increase the number of routing tables (FIBs) to 2:
# sysctl net.fibs=3D2
# setfib 1 route add 192.168.0.0 -interface wlan0
# setfib 1 route add default 192.168.0.1

Then, for an "application" to use FIB 1 instead of the default 0, just:
# setfib 1 application

Or to get another source IP address to use FIB 1, make firewall rule to sen=
d it
there, eg.:
# ipfw add allow all from ... to any setfib 1

Is that what you need?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202038-7501-xZwQSXu0cu>