Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LogServer can not log the audit data from DMZServer #102

Open
1ncludeSteven opened this issue Jan 17, 2025 · 1 comment
Open

LogServer can not log the audit data from DMZServer #102

1ncludeSteven opened this issue Jan 17, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@1ncludeSteven
Copy link

Describe the bug
It seems that dmzserver cannot access port 9200 of logserver, so that logserver cannot record the audit data of dmzserver?

To Reproduce
curl http://172.16.0.3:9200 in internalserver is successful as below:

Image

curl http://172.16.0.3:9200 in dmzserver is failure as below:

Image

Also we can see the error in auditbeat log data using journalctl -u auditbeat -f

Image

Expected behavior
Log server can log the audit data from dmzserver.

Screenshots
If useful, add screenshots to help explain your problem.

Solution
I think we can add firewall rul in company router as below:

echo "8,ACCEPT,FORWARDFW,ON,std_net_src,ORANGE,std_net_tgt,GREEN,,TCP,,,ON,,,TGT_PORT,9200,Allow elasticsearch log TCP on port 9200 from ORANGE to GREEN,,,,,,,,,,00:00,00:00,,AUTO,,dnat,,,,,second" >> /var/ipfire/firewall/config

Then we can log audit data in dmzserver successfully as below:

Image

@1ncludeSteven 1ncludeSteven added the bug Something isn't working label Jan 17, 2025
@Maspital
Copy link
Collaborator

You are absolutely correct 😅 turns out this wasn't caught by the logging system tests because the test event that is used there ends up as a syslog, for which port forwarding is set up properly. I'll add this to the provisioning step and write a small systest that checks if auditbeat logs arrive at the logserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants