Routing through non-WAN interface

  • Hi Everybody,

    First of all Happy new year for those who celebrated!

    Now to the topic. I use VM appliance of pfsenese with version: 1.2.3-RELEASE.
    I have 3 interfaces - WAN, LAN and OPT1, addressed respectively in this way:
    em0: flags=8843 <up,broadcast,running,simplex,multicast>metric 0 mtu 1500
           inet netmask 0xfffffff0 broadcast
    em1: flags=8843 <up,broadcast,running,simplex,multicast>metric 0 mtu 1500
           inet netmask 0xffffffe0 broadcast
    em2: flags=8843 <up,broadcast,running,simplex,multicast>metric 0 mtu 1500
           inet netmask 0xffffff00 broadcast

    The important part of the routing table looks like this:

    Destination        Gateway            Flags    Refs      Use  Netif Expire
    default            UGS         0    19890    em0        link#2             UC          0        0    em1           00:50:56:b7:00:64  UHLW        1      624    em1   1154       link#1             UC          0        0    em0          00:25:45:38:79:d7  UHLW        2      844    em0    557      UGS         0       89    em2      UGS         0        0    em2   link#3             UC          0        0    em2      00:0c:42:2e:c8:6d  UHLW        2        0    em2    515      link#3             UHLW        2        0    em2

    So what is important for me is to reach and through the OPT1 interface and not through the WAN. That's why I gave static routes. And those networks are reachable from the pfsense machine itself, but NOT through the LAN network, connected behind the LAN (em1) interface.

    On the other hand, all destinations, the LAN network needs to reach through the default route are reached successfully.

    Can somebody help me by telling me how shall I make the requests from the LAN, destined to the 192.168.x.x static routes to work?

    Thanks in advance!



    The 'Gateway' field should be filled in the Interfaces->OPT1 configuration section. Then just add WAN and OPT1 interfaces in Load Balancing mode (Services menu). Thus, all incomming packets on the LAN interface also obey the defined static routes.