On Tue, Mar 12, 2024 at 10:03 AM Joel Carnat <j...@carnat.net> wrote:
>
> Hi,
>
> I have a server with a single NIC but several IPs configured:
> # cat /etc/hostname.vio0
> inet 192.0.2.10 255.255.255.0
> inet alias 192.0.2.11 255.255.255.0
> inet alias 192.0.2.12 255.255.255.0
>
> The default gateway is set to 192.0.2.1 in /etc/mygate.
>
> I would like outgoing network traffic to randomely appear coming from
> any of those IPs.
>
> I've read faq/pf/pools.html, pf.conf and route manpage but I don't get
> which directive would be the right one to use.
>
> Can this be achieved with pf and/or route?
> Or do I have to look at setting up routing domains attached to the
> interface aliases and have several daemon instances run in those domains?
>
> Thanks,
> Joel C.
>

with some strange build up and some nat-to ,
but setting the source ip in the server ( where you do send () ) would
be the most
straightforward
( like ping -b )


--
--
---------------------------------------------------------------------------------------------------------------------
Knowing is not enough; we must apply. Willing is not enough; we must do

Reply via email to