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

not working #2

Closed
mostafa9112 opened this issue Feb 6, 2023 · 9 comments
Closed

not working #2

mostafa9112 opened this issue Feb 6, 2023 · 9 comments
Labels
question Further information is requested

Comments

@mostafa9112
Copy link

hi.
it's not working.
can you send an example?

@alirezax5
Copy link
Owner

hi. it's not working. can you send an example?

Hello, do you work in localhost or environments like cpanel?
If you work in cpanel or directadmin, you must open the port you chose for xui in the firewall.

Also, if you have filled in the path, you must also write it.

Sample :
$xui = new \alirezax5\XuiApi\Panel\Vaxilu('192.1.1.1:2020/path ', 'YOU_PANEL_USERNAME', 'YOU_PANEL_PASSWORD');

@alirezax5 alirezax5 added the question Further information is requested label Feb 6, 2023
@alirezax5 alirezax5 pinned this issue Feb 6, 2023
@mostafa9112
Copy link
Author

mostafa9112 commented Feb 6, 2023

tnx dude.
can you help me for get connected ip address to proxy for niduka and asadi panel?

or worked way for ip limit?

@alirezax5
Copy link
Owner

alirezax5 commented Feb 6, 2023

tnx dude. can you help me for get connected ip address to proxy for niduka and asadi panel?

or worked way for ip limit?

Read the following address:
https://github.com/HexaSoftwareTech/x-ui#enable-ip-restrictions-per-inbound

The panel below also supports device limitations
https://github.com/FranzKafkaYu/x-ui/

Note: This method does not work in the forwarding with iptabel and cloudflare proxy

@mostafa9112
Copy link
Author

tnx dude. can you help me for get connected ip address to proxy for niduka and asadi panel?
or worked way for ip limit?

Read the following address: https://github.com/HexaSoftwareTech/x-ui#enable-ip-restrictions-per-inbound

The panel below also supports device limitations https://github.com/FranzKafkaYu/x-ui/

Note: This method does not work in the forwarding with iptabel and cloudflare proxy

tnx but i need ip limitation by client

@alirezax5
Copy link
Owner

tnx dude. can you help me for get connected ip address to proxy for niduka and asadi panel?
or worked way for ip limit?

Read the following address: https://github.com/HexaSoftwareTech/x-ui#enable-ip-restrictions-per-inbound
The panel below also supports device limitations https://github.com/FranzKafkaYu/x-ui/
Note: This method does not work in the forwarding with iptabel and cloudflare proxy

tnx but i need ip limitation by client

Then use niduka or asadi (HexaSoftwareTech) panel and add the json code to xray config:

"log": {
   "loglevel": "warning", 
   "access": "./access.log"
 }, 

and Restart xray

@mostafa9112
Copy link
Author

mostafa9112 commented Feb 6, 2023

this is my config but still iplimit not working

{
  "log": {
    "loglevel": "warning", 
    "access": "./access.log"
  },
 
  "api": {
    "services": [
      "HandlerService",
      "LoggerService",
      "StatsService"
    ],
    "tag": "api"
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "port": 62789,
      "protocol": "dokodemo-door",
      "settings": {
        "address": "127.0.0.1"
      },
      "tag": "api"
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {}
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    }
  ],
  "policy": {
    "levels": {
      "0": {
        "statsUserUplink": true,
        "statsUserDownlink": true
      }
    },
    "system": {
      "statsInboundDownlink": true,
      "statsInboundUplink": true
    }
  },
  "routing": {
    "rules": [
      {
        "inboundTag": [
          "api"
        ],
        "outboundTag": "api",
        "type": "field"
      },
      {
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked",
        "type": "field"
      },
      {
        "outboundTag": "blocked",
        "protocol": [
          "bittorrent"
        ],
        "type": "field"
      }
    ]
  },
  "stats": {}
}

@alirezax5
Copy link
Owner

When I tried it before, it worked correctly, don't you enter each client's email repeatedly?

@mostafa9112
Copy link
Author

No emails and ClientIDs are unique

@alirezax5
Copy link
Owner

No emails and ClientIDs are unique

You must choose a unique email for each client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants