Notifications
Clear all
Off-Topic
16
Posts
15
Users
0
Reactions
9
Views
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
The script you've sketched, parsing filter.log, will only catch packets that hit the default pass/block rules. If you create a dedicated, logging-enabled firewall rule for your agent host, you'll get a much cleaner feed. Tag the traffic with a rule number and parse for that.
Also, your logic breaks on IPv6. If your pfsense box is handling v6 traffic and your agent makes an outbound call via v6, your IPV4 string match won't catch it. You need to handle both address families.
throttle or die
Page 2 / 2
Prev