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

SNORT.sock: Connection refused with Fedora RPM #255

Open
SomePersonSomeWhereInTheWorld opened this issue Mar 21, 2017 · 5 comments
Open

Comments

@SomePersonSomeWhereInTheWorld

We're using the Fedora RPM via dnf, PulledPork v0.7.3, and when running:

pulledpork.pl -c /etc/snort/pulledpork.conf

This appears:

Issuing reputation socket reload command
Unable to connect to UNIX socket at /etc/snort/rules/iplists/SNORT.sock: Connection refused

@marcindulak
Copy link
Contributor

Note that the directory involved /etc/snort/rules/iplists belongs to the snort installation tree.
Pulledpork RPM must not create that path unless a dependency of pulledpork on snort is introduced.
Does mkdir -p /etc/snort/rules/iplists help?

Where did you find pulledpork 0.7.3 RPM for Fedora (and which Fedora)?
The "official" RPM http://pkgs.fedoraproject.org/cgit/rpms/pulledpork.git/tree/pulledpork.spec is at 0.7. 2 and it does not install pulledpork.pl - it uses pulledpork as the executable script name.

@SomePersonSomeWhereInTheWorld
Copy link
Author

@marcindulak
Copy link
Contributor

I think this is related to #153 - pulledpork since 0617788 will run

 /bin/snort_control /etc/snort/rules/iplists/ 1361

You can see this by running verbose:

pulledpork.pl -v -c /etc/snort/pulledpork.conf

Probably snort has not been compiled with –enable-control-socket option enabled https://sublimerobots.com/tag/pulledpork/ ?

@SomePersonSomeWhereInTheWorld
Copy link
Author

@marcindulak
Copy link
Contributor

There is a discussion about this issue at http://seclists.org/snort/2017/q1/704
After the proper usage of /etc/snort/rules/iplists/SNORT.sock is figured out it may be useful to add a comment about it into pulledpork.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants