My server has private IP address(es) only

You are here:
Estimated reading time: 1 min

By default, WAF 2.0 will only create port redirections for public IPs. However, it can be set to observe on the private interface. It can happen, that your server does not have a public interface, in this case, there are more possibilities

Private IP addresses – – – 
The server is used in an internal network only
If the server is used only in an internal network then please note that the WAF 2.0module was not made for that. So the WAF module might not be triggered.

If there is a gateway in front of the server, which is accepting the requests from outside and it forwards the requests to the appropriate destination

  1. Open /etc/bitninja/WAFManager/config.ini with your preferred text editor.
    e.g.: nano /etc/bitninja/WAFManager/config.ini
  2. Find the [redirect_options] flag in the file
    e.g.: in nano use ctrl+w then type [redirect
  1. Delete one of the semicolons from the beginning of the interface[]= lines
  2. Add the name of the interface that is connected to the gateway like this:
    interface[]='eth1' if the interface’s name is eth1
  3. Save changes and exit the text editor
    1. e.g.: in nano ctrl+x and then press y and then press enter
  4. Restart BitNinja with service bitninja restart
Views: 527