Packets go through, logging is set, but no logs of the traffic
-
@stephenw10 Yes, it does fail when an actual OpenVPN client sends traffic since that's how this issue was discovered initially. Clients were connecting to this - or trying to connect, we would see the traffic in the VM but not in PFSense logs.
This rule was auto-created but since the description of the rule was empty, it was edited out so when it's logged, we have an idea of what's logged. The rule itself was auto-created, it was just edited afterwards.
The forwarding policy:
Disabled: unticket No RDR: unticket Interface: WAN Address Family: IPv4 Protocol: UDP Destination: Public IP address (alias) on WAN interface Destination port range: OpenVPN Redirect Target IP: 10.151.0.5 Redirect Target Port: OpenVPN Description: OpenVPN No XMLRPC Sync: not ticket NAT Reflection: Pure NAT Filter rule asociation: <name of rule associated to this NAT rule>. If I click on "View the filter rule" I get redirected to the rule that doesn't log.As I said, if you want to take a look, we can have a Zoom / Teams session as it might be easier for you to check it out (not really comfortable to share public IPs and stuff here :D )
-
@stephenw10
coming back with new info: it seems this is NOT the only rule that's affected. Below, I've specifically set a rule on the correct interface (since I'm seeing states next to that rule) to log ANY traffic from 10.41.199.200 (test host) to 10.41.14.99 (another test host). They're connected via an IPSec VTI tunnel, but I don't expect that to change anything. Below, logs from the PFSense and the device on the other end:


The fact that the traffic is stopped by the 2nd firewall is normal, as I haven't added the rule there yet, but the traffic reaches the 2nd firewall, while it's not logged in the PFSense.
The PFSense rule:

-
Hmm, so that rule is on the internal interface those pings are coming in on? They then leave over the VTI tunnel and are blocked on the remote end?
Is it possible your firewall logs are turning over so fast they are being replaced? Seems unlikely but...
-
@stephenw10 Yes, that's the scenario. Pings are coming in on a local / internal interface and leave via the IPSec VTI interface (same for tunnel mode though, so the IPSec interface mode is not influencing it), and are blocked by the other firewall. So the traffic goes through the PFSense, 100%.
As for the firewall logs turning over so fast.... It's not a really busy box. I mean yeah, there's traffic via this PFSense but it's not a ton of it, so ..... Anyways, I should see SOMETHING, as the ping was running continuously. So at least 1 packet should have been there when refreshing (multiple times)
I've setup a syslog server and will test more today, see if the logs are in there.
-
I've setup the remote syslog server, I'm not getting those logs in the syslog server either. So it's not just a problem with showing the logs in the UI.
-
Hmm, bizarre! And to be clear this is still only happening on those two rules you have found so far? You can still add other new rules and they log as expected?
-
@stephenw10 Well, no. The rule about the VTI was just added. So a new rule had the same issue. I can just assume this is a global issue, on all / most of the rules, but since there's literarily hundreds of rules, it's quite hard to test that.
-
The Filer package can achieve a lot of that. -
@stephenw10 I'm sorry, I didn't get that?
-
Gah! sorry somehow managed to reply to the wrong thread.
