private boolean isHttp(ByteBuffer buffer) {
        switch (buffer.get(buffer.position())) {
            // HTTP methods.
            case 'G':
            case 'H':
            case 'P':
            case 'D':
            case 'O':
            case 'T':
            case 'C':
                return true;
            default:
                // Unknown first byte data.
                break;
        }
        return false;
    }
This policy doesn't allow data flow to configured virtual gateway.
netbare-core/src/main/java/com/github/megatronking/netbare/NetBareVirtualGateway.java