Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2016 14:00:58 +0000
From:      James Morris <jamesmorris8@outlook.com>
To:        "freebsd-pf@freebsd.org" <freebsd-pf@freebsd.org>
Subject:   Forcing a route using pf
Message-ID:  <BM1PR01MB020932CF4F49E57B708182A58CAA0@BM1PR01MB0209.INDPRD01.PROD.OUTLOOK.COM>

next in thread | raw e-mail | index | archive | help
Hi,

I have a FreeBSD server (A) with 2 NICs

Each NIC is connected to a different network:
igb0: 10.0.0.10/24
igb1: 10.10.10.10/24
The default gateway on the server is 10.0.0.1

The two networks can communicate using a router (10.0.0.1).

I have a server (B) running on 10.10.10.100 which only allows incoming conn=
ections from 10.0.0.0/24 (not 10.10.10.0/24).

When my FreeBSD server A attempts to connect to server B it uses the closes=
t IP and goes through igb1 which is dropped by B.

Is there a way to force all (or some) outbound traffic to use igb0?

I have attached a small network diagram to illustrate my setup.

Thanks,

James




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