Seeing some odd things when trying to do Source Routing with
ipf-3.4.x and Sol8. First tried using 3.4.32 and had problems with
ipf causing the box to panic. Updated Sol8 to MU7 and applied all
of Sun's recommended patches, and downgraded to ipf 3.4.31. Haven't
had any further panic problems yet, but haven't been able to get
IPF to work long enough to confirm the box will not panic again.
This server has 2 interfaces. hme0 is used for load balancing (via
Cisco IOS SLB) and qfe0 is the management interface (protected by
a Cisco PIX). The service IP is located on lo0:1 and is not ARPed.
The load balancer ARPs that address, so we just need that IP local
so the daemons can bind and answer to it.
When first starting up, IPF either works or it doesn't, usually
doesn't. If it works, it only lasts under 30 minutes before it
stops working. I can sometimes "jumpstart" IPF into working by
putting a static route for the client I'm testing with, successfully
doing a query, then removing the static route. All subsequent
queries seem to work, again for a short time.
When it is not working, a snoop shows the request coming in, a
truss of the daemon (in this case BIND's named) shows the incoming
request and an outgoing response. The snoop never sees the outgoing
packets from named (on either interface), yet IPF indicates (via
ipfstat -oh) that it did see them and source routed them.
This seems, to me, to indicate that named did indeed send a reply,
IPF saw the reply on the wrong interface and attempted to route it to
the correct interface, but instead just dropped the packets.
Has anyone else had similar problems? How did you fix it? Any
help or suggestions would be helpful.
Here is all the information that the FAQ requested...
# uname -a
SunOS serv 5.8 Generic_108528-23 sun4u sparc SUNW,Ultra-60
# isainfo -vk
64-bit sparcv9 kernel modules
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 10.17.1.14 netmask ffffff00
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.16.1.14 netmask ffffff00 broadcast 10.16.1.255
ether 8:0:20:c8:25:93
qfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.24.14 netmask ffffff00 broadcast 192.168.24.255
ether 8:0:20:ee:f0:5c
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.24.0 192.168.24.14 U 1 9546 qfe0
10.16.1.0 10.16.1.14 U 62441 8 hme0
224.0.0.0 192.168.24.14 U 1 0 qfe0
default 192.168.24.1 UG 1 30602
127.0.0.1 127.0.0.1 UH 2 227 lo0
# netstat -i
Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue
lo0 8232 loopback localhost 15770 0 15770 0 0 0
hme0 1500 hme0 hme0 77893 0 14525 0 0 0
qfe0 1500 qfe0 qfe0 203868 0 143278 0 0 0
# netstat -s -P ip
IPv4 ipForwarding = 2 ipDefaultTTL = 255
ipInReceives =212237 ipInHdrErrors = 0
ipInAddrErrors = 0 ipInCksumErrs = 0
ipForwDatagrams = 0 ipForwProhibits = 0
ipInUnknownProtos = 0 ipInDiscards = 0
ipInDelivers =226558 ipOutRequests =216846
ipOutDiscards = 0 ipOutNoRoutes = 122
ipReasmTimeout = 60 ipReasmReqds = 0
ipReasmOKs = 0 ipReasmFails = 0
ipReasmDuplicates = 0 ipReasmPartDups = 0
ipFragOKs = 0 ipFragFails = 0
ipFragCreates = 0 ipRoutingDiscards = 0
tcpInErrs = 0 udpNoPorts = 390
udpInCksumErrs = 0 udpInOverflows = 252
rawipInOverflows = 0 ipsecInSucceeded = 0
ipsecInFailed = 0 ipInIPv6 = 0
ipOutIPv6 = 0 ipOutSwitchIPv6 = 1
# ipf -V
ipf: IP Filter: v3.4.31 (496)
Kernel: IP Filter: v3.4.25
Running: yes
Log Flags: 0 = none set
Default: pass all, Logging: available
Active list: 1
# ipfstat
dropped packets: in 0 out 0
non-data packets: in 10 out 10
no-data packets: in 0 out 0
non-ip packets: in 0 out 0
bad packets: in 0 out 0
copied messages: in 159 out 6040
IPv6 packets: in 0 out 0
input packets: blocked 0 passed 213569 nomatch 174350 counted 0 short 0
output packets: blocked 0 passed 232583 nomatch 111156 counted 0 short 0
input packets logged: blocked 0 passed 0
output packets logged: blocked 0 passed 0
packets logged: input 0 output 0
log failures: input 0 output 0
fragment state(in): kept 0 lost 0
fragment state(out): kept 0 lost 0
packet state(in): kept 0 lost 0
packet state(out): kept 0 lost 0
ICMP replies: 0 TCP RSTs sent: 0
Invalid source(in): 0
Result cache hits(in): 39219 (out): 56810
IN Pullups succeeded: 0 failed: 0
OUT Pullups succeeded: 235 failed: 0
Fastroute successes: 14132 failures: 63655
TCP cksum fails(in): 0 (out): 0
Packet log flags set: (0)
none
# ipfstat -io
pass out quick on qfe0 to hme0:10.16.1.1 from 10.17.1.14/32 to any
empty list for ipfilter(in)
# ipnat -slv
mapped in 0 out 0
added 0 expired 0
no memory 0 bad nat 0
inuse 0
rules 0
wilds 0
table ffffffff7ffff8f0 list 0
List of active MAP/Redirect filters:
List of active sessions:
List of active host mappings: