@wallabybob:
Thats what I thought at first but a second look showed the routing table entry I queried within the pfSense netstat -rn output/
I don't think I have ever seen such an entry on a pfSense system. I wonder if this is some weirdness related to use of DHCP relay. I wonder what dhclient reports in the logs. What sort of software runs in the DHCP relay?
A system.log fragment. I don't see anything bad. Is it a way to increase verbosity of dhcp client logs?
Sep 10 13:36:13 gw dhclient[33448]: DHCPREQUEST on em0 to 255.255.255.255 port 67
Sep 10 13:36:20 gw dhclient[33448]: DHCPREQUEST on em0 to 255.255.255.255 port 67
Sep 10 13:36:22 gw apinger: ALARM: WAN(192.168.52.1) *** down ***
Sep 10 13:36:29 gw dhclient[33448]: DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 5
Sep 10 13:36:32 gw check_reload_status: Reloading filter
Sep 10 13:36:34 gw dhclient[33448]: DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 10
Sep 10 13:36:36 gw dhclient[33448]: DHCPOFFER from 192.168.52.1
Sep 10 13:36:36 gw dhclient: ARPSEND
Sep 10 13:36:38 gw dhclient: ARPCHECK
Sep 10 13:36:38 gw dhclient[33448]: DHCPREQUEST on em0 to 255.255.255.255 port 67
Sep 10 13:36:38 gw dhclient[33448]: DHCPACK from 192.168.52.1
Sep 10 13:36:38 gw dhclient: BOUND
Sep 10 13:36:38 gw dhclient: Deleting old routes
Sep 10 13:36:38 gw dhclient: Starting add_new_address()
Sep 10 13:36:38 gw dhclient: ifconfig em0 inet 192.168.52.233 netmask 255.255.255.0 broadcast 192.168.52.255
Sep 10 13:36:38 gw dhclient: New IP Address (em0): 192.168.52.233
Sep 10 13:36:38 gw dhclient: New Subnet Mask (em0): 255.255.255.0
Sep 10 13:36:38 gw dhclient: New Broadcast Address (em0): 192.168.52.255
Sep 10 13:36:38 gw dhclient: New Routers (em0): 192.168.52.1
Sep 10 13:36:38 gw dhclient: Adding new routes to interface: em0
Sep 10 13:36:38 gw dhclient: /sbin/route add default 192.168.52.1
Sep 10 13:36:38 gw dhclient: Creating resolv.conf
Sep 10 13:36:38 gw dhclient[33448]: bound to 192.168.52.233 -- renewal in 3600 seconds.
Sep 10 13:36:38 gw check_reload_status: rc.newwanip starting em0
Sep 10 13:36:42 gw php: : rc.newwanip: Informational is starting em0.
Sep 10 13:36:42 gw php: : rc.newwanip: on (IP address: 192.168.52.233) (interface: wan) (real interface: em0).
Sep 10 13:36:42 gw php: : ROUTING: setting default route to 192.168.52.1
DHCP relay is D-link DGS-3420. It is running for several months in this configuration and no strange effects have been observed yet.
Finaly i've tried to attach that instance directly into 192.168.39.0/24 segment (no relay between dhcp server and pfsense client) – the strange entry still exists but dns connections work (because of the same broadcast domain).
I think it could be some kind of pfsense- or freebsd-specific script that adds this route for some reason but couldn't catch it yet(
Your diagram is somewhat helpful but suggests to me that 192.168.39.0/24 is on a different broadcast medium (distinct LAN segment) than 192.168.52.0/24
Yes, different vlans. And I've tried tcpdump on em0 – sure, different vlans and no cross-broadcast traffic between them
@doktornotor:
Afraid it's not even LAN but something "in front" of WAN.
It's in front of WAN, yes. It's my internal DNS+DHCP server. And the instance of pfsense i'm having an issue whith is a gate into a kind of isolated subnetwork 192.168.210.0/24 (which contains a demo-stand that can be moved out of the office and displayed somewhere else)