Wrapper for /usr/sbin/conntrack.
Since conntrack requires root to run, it cannot be called directly from PHP in Apache. This simple wrapper is installed SETUID (chmod u+s) by Myra Canyon so it can call the original conntrack without any problem.
- Returns
- RET_OK everything worked correctly
-
RET_NO_OUTPUT there is no output (possible problem?)
-
RET_INVALID_ARGS the arguments are invalid
-
RET_CERR_OUTPUT STDERR indicates an error
-
RET_UNKNOWN_ERROR unknown error
Possible options include:
- output format (json, extended, xml, ...); for example:
–output json
–output extended
–output xml
- proto (tcp, udp, unknown); for example:
- output filename