Michael Oestergaard has some problems with a static route for redirection of LAN-traffic (Andreas
Gracco had similar problems)
M0n0wall-LAN is 192.168.1.x.
A static route redirects traffic for 172.16.x.x via 192.168.1.254 (other router)
M0n0wall blocks some of the traffic for 172.16.x.x with default block rule - although there is a
pass-any rule on the LAN-interface.
What could cause m0n0wall to skip this rule:
"@2 pass in quick from 192.168.1.0/24 to any keep state group 100"
And apply this one instead?
"@68 block in log quick proto tcp from any to any"
The entry in the firewall log looks like this:
22:29:23.387117 dc0 @0:68 b 192.168.1.201,40452 -> 172.16.1.1,22 PR tcp len 20 64 -A IN
We're currently discussing whether the pass rule will pass packets - no matter their state?
(Since SYN-packets are allowed to pass)
From the IPfilter HOW-TO it seems that state inspection is only applied on pass rules when FLAGS S
is set in the pass rule.
Looking at the following excerpt from the HOW-TO:
"pass in quick on tun0 proto tcp from any to 184.108.40.206/32 port = 23 keep state
This is almost, but not quite, satisfactory. The problem is that it's not just SYN packets that're
allowed to go to port 23, any old packet can get through. We can change this by using the flags
pass in quick on tun0 proto tcp from any to 220.127.116.11/32 port = 23 flags S keep state
Now only TCP packets, destined for 18.104.22.168, at port 23, with a lone SYN flag will be allowed in
and entered into the state table."
Any ideas as to why traffic is not passed??