About Kavunka

Kavunka - demon that searches of information (the core of the search engine). Kavunka accepts requests on port 2044 as JSON and ignores any requests from unfamiliar IP. The list of allowed IPs is in the file "/TFiles/allowedip.txt".

Example - {"mod":1,"np":0,"req":"Hello world","settings":{"justice":1,...,"stemm":1}}

"mod" - search mode

"np" - page number

"req" - user request

"settings" - more about settings search

Settings search stored in "/TFiles/settings.t"

How to run the Kavunka?

To run the program, you need to execute commands in the terminal:

cd /usr/local/kavunka

In order for the kavunka to accept requests from the administrator, you must open the port 2044 for

sudo iptables -I INPUT -p tcp -s --dport 2044 -j ACCEPT

So that the kavunka can accept requests from external IP (list of external IPs you must place in the file "/TFiles/allowedip.txt")

iptables -A IN_public_allow -p tcp -m tcp --dport 2044 -j ACCEPT
service iptables save
service iptables restart