Hello fellows.
I have a problem with my FreeBSD 9.0 router. It works fine until some day the default gateway changes on some random IP address. It happens, approximately, one time per 14 days.
I was trying to catch the application that may cause this using:
but have no luck with it (no events registered while default gateway changes).
There are no routing daemons on this server.
I wondering maybe something (DUMMYNET, pf) in kernel can overlap memory that stores default gateway.
Some Information about my system:
There are two interfaces lagg0 - LAN and lagg1 - WAN, each of them is Intel Pro 1000 ET Dual Port Server Adapter.
Both of lagg interfaces are parents for few vlan interfaces.
The main function of that box is routing, NAT and shaping clients traffic. The traffic is amount 600 Mbit/s through one interface (I mean lagg).
NAT - pf
shaping - DUMMYNET
I found a dead thread in mailing-list http://lists.freebsd.org/pipermail/freebsd-net/2012-March/031879.html so it might be that I am not the only one who hits into this issue.
I am not familiar with kernel debugging, maybe some one can tell me how to trace memory writes to area, where default routing lies.
Any help appreciated.
Thanks.
I have a problem with my FreeBSD 9.0 router. It works fine until some day the default gateway changes on some random IP address. It happens, approximately, one time per 14 days.
I was trying to catch the application that may cause this using:
# route -n monitor
but have no luck with it (no events registered while default gateway changes).
Code:
net.inet.icmp.drop_redirect: 1
I wondering maybe something (DUMMYNET, pf) in kernel can overlap memory that stores default gateway.
Some Information about my system:
$ uname -a
Code:
FreeBSD bras-2 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Tue Feb 28 10:50:04 EET 2012 root@bras:/usr/obj/usr/src/sys/BRAS amd64
Both of lagg interfaces are parents for few vlan interfaces.
The main function of that box is routing, NAT and shaping clients traffic. The traffic is amount 600 Mbit/s through one interface (I mean lagg).
NAT - pf
shaping - DUMMYNET
# ipfw list
Code:
00100 allow ip from any to any via lo0
00200 deny ip from 127.0.0.0/8 to any
00300 deny ip from any to 127.0.0.0/8
01000 allow udp from any 68 to any dst-port 67 in via vlan*
01100 deny log icmp from any to any icmptypes 5,9,10
09000 allow ip from any to 255.255.255.255 dst-port 67 in via vlan*
10000 allow ip from table(20) to table(10) in recv vlan*
10100 allow ip from table(10) to table(20) out xmit vlan*
10200 allow ip from table(20,0) to any in recv vlan*
10300 allow ip from any to table(20,0) out xmit vlan*
40000 pipe tablearg ip from any to table(20) out xmit vlan*
40100 pipe tablearg ip from table(21) to any in recv vlan*
40800 allow ip from table(20) to any out xmit comstar_w
40900 allow ip from any to table(20) in recv comstar_w
50000 allow ip from me to any
50005 allow tcp from any to me established
50010 allow tcp from any to me dst-port 125,53,83,84 setup
50020 allow udp from any to me dst-port 53,161
50030 allow icmp from any to me icmptypes 0,8
I am not familiar with kernel debugging, maybe some one can tell me how to trace memory writes to area, where default routing lies.
Any help appreciated.
Thanks.