Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save amanjuman/cd1d80444d6b9c8a464bf96e2f3ca1b4 to your computer and use it in GitHub Desktop.
Save amanjuman/cd1d80444d6b9c8a464bf96e2f3ca1b4 to your computer and use it in GitHub Desktop.
Install V2Ray Client on OpenWRT and Configure Vmess
### The original Author of this package had enabled CloudFlare JS verification. As a result, this automated script will not work.
### Therefore you have to download each package and install it manually.
## Change Directory
cd /tmp/
## Update opkg
opkg update
## If wget not installed already
opkg install wget ca-certificates ca-bundle
## Download and Add Repo Key
wget -O kuoruan-public.key https://openwrt.kuoruan.net/packages/public.key
opkg-key add kuoruan-public.key
## Add Repo to Source List
echo "src/gz kuoruan_packages https://openwrt.kuoruan.net/packages/releases/$(. /etc/openwrt_release ; echo $DISTRIB_ARCH)" >> /etc/opkg/customfeeds.conf
echo "src/gz kuoruan_universal https://openwrt.kuoruan.net/packages/releases/all" >> /etc/opkg/customfeeds.conf
## Update opkg
opkg update
## Remove DNSMasq
opkg remove dnsmasq
## Install V2Ray Mini Version
opkg install luci-app-v2ray v2ray-core-mini
## Download Luci App V2Ray
wget -O luci-app-v2ray_1.5.6_all.ipk https://github.com/kuoruan/luci-app-v2ray/releases/download/v1.5.6-1/luci-app-v2ray_1.5.6_all.ipk
## Install Luci App V2Ray Manually
opkg install luci-app-v2ray_*.ipk
@lilcheti
Copy link

lilcheti commented Oct 1, 2022

have the same problem as above

@ntxinh
Copy link

ntxinh commented Oct 12, 2022

You can fix the error module luci.cbi not found by install this:
opkg install luci-compat

@miladj3
Copy link

miladj3 commented Oct 22, 2022

how can set custom config it?

@anilwee
Copy link

anilwee commented Dec 1, 2022

Hi,
I have followed your procedure but getting an error when I'm trying to import vmess, it says "Invalid Link"

what is the issue?

@amanjuman
Copy link
Author

Hi, I have followed your procedure but getting an error when I'm trying to import vmess, it says "Invalid Link"

what is the issue?

Input configuration manually

@anilwee
Copy link

anilwee commented Dec 1, 2022

what is the issue?

Input configuration manually

Can you guide me… from the script to Manual input

@anilwee
Copy link

anilwee commented Dec 2, 2022

Hi @amanjuman
How to configure these in to manual mode?
image

@gitmoh2
Copy link

gitmoh2 commented Dec 14, 2022

Hi thanks for this.
How can I stop webrtc IP leak (without browser add ons)?

@amanjuman
Copy link
Author

Hi thanks for this. How can I stop webrtc IP leak (without browser add ons)?

Not sure about that but I believe not possible

@ashkan45
Copy link

I installed this, now it is running, but the output IP does not change. Do I need to change other parts?

@mmpma
Copy link

mmpma commented Jan 30, 2023

that gave error

  • pkg_hash_check_unresolved: cannot find dependency kernel (= 5.10.165-1-b3ec87edf6bd460cc3ebebb2827531a7) for kmod-nf-conntrack-netlink
  • pkg_hash_fetch_best_installation_candidate: Packages for kmod-nf-conntrack-netlink found, but incompatible with the architectures configured
  • satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-v2ray:
  •  kernel (= 5.10.165-1-b3ec87edf6bd460cc3ebebb2827531a7)
    

@saberky
Copy link

saberky commented Mar 3, 2023

hi i have http error 404 when i try to install key
image

@saberky
Copy link

saberky commented Mar 3, 2023

and now i have this problem
image

@chuc2rk
Copy link

chuc2rk commented Mar 7, 2023

and now i have this problem image

try this link:
https://uzbox.com/en/technology/v2ray-for-openwrt.html

@theChampionOne
Copy link

theChampionOne commented Apr 14, 2023

Pls help with this:
root@OpenWrt:~# opkg update
Downloading http://openwrt.kuoruan.net/packages/releases/mipsel_24kc/Packages.gz
Updated list of available packages in /var/opkg-lists/kuoruan_packages
Downloading http://openwrt.kuoruan.net/packages/releases/mipsel_24kc/Packages.sig
Signature check failed.
Remove wrong Signature file.

and then I can not install v2ray-core-mini

upd: reboot and now it's ok!)

upd; v2ray-core-mini "Not running" ((

@amanjuman
Copy link
Author

They removed that package repo. I'll update the new package alternative.

@mg4z
Copy link

mg4z commented May 15, 2023

upd; v2ray-core-mini "Not running" (( !! too.

@journalpars
Copy link

Change Directory .

cd /tmp/

Update opkg

opkg update

If wget not installed already

opkg install wget ca-certificates ca-bundle

Download and Add Repo Key

wget -o kuoruan-public.key http://openwrt.kuoruan.net/packages/public.key

opkg-key add kuoruan-public.key

Add Repo to Source List .

echo "src/gz kuoruan_packages http://openwrt.kuoruan.net/packages/releases/$(. /etc/openwrt_release ; echo $DISTRIB_ARCH )" \

/etc/opkg/customfeeds.conf

echo "src/gz kuoruan_packages http://openwrt.kuoruan.net/packages/releases/$(. /etc/openwrt_release ; echo $DISTRIB_ARCH)" \

Update opkg

opkg update

Remove DNSMasq

opkg remove dnsmasq

Install V2Ray

opkg install v2ray-core-mini

Download Luci App V2Ray

wget -o luci-app-v2ray_2.0.0-1_all.ipk https://github.com/kuoruan/luci-app-v2ray/releases/download/v2.0.0-1/luci-app-v2ray_2.0.0-1_all.ipk
opkg install luci-app-v2ray_2.0.0-1_all.ipk

@steve1977
Copy link

Unfortunately, I fail to be able to install V2Ray. See error message below:

root@OpenWrt:/tmp# echo "src/gz kuoruan_packages http://openwrt.kuoruan.net/packages/releases/$(. /etc/openwrt_release ; echo $DISTRIB_ARCH )" \

/etc/opkg/customfeeds.conf
src/gz kuoruan_packages http://openwrt.kuoruan.net/packages/releases/x86_64 /etc/opkg/customfeeds.conf
root@OpenWrt:/tmp# opkg update
Downloading http://downloads.openwrt.org/snapshots/targets/x86/64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06.9/packages/x86_64/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
root@OpenWrt:/tmp# opkg remove dnsmasq
No packages removed.
root@OpenWrt:/tmp# opkg install v2ray-core-mini
Unknown package 'v2ray-core-mini'.
Collected errors:

  • opkg_install_cmd: Cannot install package v2ray-core-mini.

@steve1977
Copy link

This error may be linked to above, but continue without above wil get me to errors below:

root@OpenWrt:/tmp# wget -o luci-app-v2ray_2.0.0-1_all.ipk https://github.com/kuoruan/luci-app-v2ray/releases/download/v2.0.0-1/luci-app-v2ray_2.0.0-1_all.ipk
root@OpenWrt:/tmp# opkg install luci-app-v2ray_2.0.0-1_all.ipk
Collected errors:

@amanjuman
Copy link
Author

This error may be linked to above, but continue without above wil get me to errors below:

root@OpenWrt:/tmp# wget -o luci-app-v2ray_2.0.0-1_all.ipk https://github.com/kuoruan/luci-app-v2ray/releases/download/v2.0.0-1/luci-app-v2ray_2.0.0-1_all.ipk root@OpenWrt:/tmp# opkg install luci-app-v2ray_2.0.0-1_all.ipk Collected errors:

The original Author of this package had enabled CloudFlare JS verification. As a result, this automated script will not work. Therefore you have to download each package and install it manually.

@steve1977
Copy link

Thanks for your quick response.

Any thoughts on my other error above?

And how to download & install manually? Do you have a list of commands?

@amanjuman
Copy link
Author

Thanks for your quick response.

Any thoughts on my other error above?

And how to download & install manually? Do you have a list of commands?

Just use this one
https://v2raya.org/en/docs/prologue/installation/openwrt/

@steve1977
Copy link

Getting even worse now :-(

Downloading http://openwrt.kuoruan.net/packages/releases/x86_64/Packages.gz
*** Failed to download the package list from http://openwrt.kuoruan.net/packages/releases/x86_64/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/targets/x86/64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06.9/packages/x86_64/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Collected errors:

@amanjuman
Copy link
Author

@steve1977
Copy link

Still not :-(

root@OpenWrt:/tmp# wget https://osdn.net/projects/v2raya/storage/openwrt/v2raya.pub -O /etc/opkg/keys/94cc2a834fb0aa03
--2023-07-23 18:56:06-- https://osdn.net/projects/v2raya/storage/openwrt/v2raya.pub
Resolving osdn.net... 34.211.25.169, 54.149.175.225
Connecting to osdn.net|34.211.25.169|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://osdn.net/frs/redir.php?m=osdn&f=%2Fstorage%2Fg%2Fv%2Fv2%2Fv2raya%2Fopenwrt%2Fv2raya.pub [following]
--2023-07-23 18:56:21-- https://osdn.net/frs/redir.php?m=osdn&f=%2Fstorage%2Fg%2Fv%2Fv2%2Fv2raya%2Fopenwrt%2Fv2raya.pub
Reusing existing connection to osdn.net:443.
HTTP request sent, awaiting response... 302 Found
Location: https://osdn.dl.osdn.net/storage/g/v/v2/v2raya/openwrt/v2raya.pub [following]
--2023-07-23 18:56:49-- https://osdn.dl.osdn.net/storage/g/v/v2/v2raya/openwrt/v2raya.pub
Resolving osdn.dl.osdn.net... 44.227.127.205, 54.184.171.155
Connecting to osdn.dl.osdn.net|44.227.127.205|:443... connected.
OpenSSL: error:0A000126:SSL routines::unexpected eof while reading
Unable to establish SSL connection.

@steve1977
Copy link

I keep trying, but cannot go past the first step of the instruction:

root@OpenWrt:~# wget https://osdn.net/projects/v2raya/storage/openwrt/v2raya.pub -O /etc/opkg/keys/94cc2a834fb0aa03
--2023-07-23 20:31:48-- https://osdn.net/projects/v2raya/storage/openwrt/v2raya.pub
Resolving osdn.net... 54.149.175.225, 34.211.25.169
Connecting to osdn.net|54.149.175.225|:443... connected.
HTTP request sent, awaiting response... 504 Gateway Time-out
Retrying.

--2023-07-23 20:32:00-- (try: 2) https://osdn.net/projects/v2raya/storage/openwrt/v2raya.pub
Reusing existing connection to osdn.net:443.
HTTP request sent, awaiting response... 302 Found
Location: https://osdn.net/frs/redir.php?m=osdn&f=%2Fstorage%2Fg%2Fv%2Fv2%2Fv2raya%2Fopenwrt%2Fv2raya.pub [following]
--2023-07-23 20:32:00-- https://osdn.net/frs/redir.php?m=osdn&f=%2Fstorage%2Fg%2Fv%2Fv2%2Fv2raya%2Fopenwrt%2Fv2raya.pub
Reusing existing connection to osdn.net:443.
HTTP request sent, awaiting response... No data received.
Retrying.

--2023-07-23 20:32:50-- (try: 2) https://osdn.net/frs/redir.php?m=osdn&f=%2Fstorage%2Fg%2Fv%2Fv2%2Fv2raya%2Fopenwrt%2Fv2raya.pub
Connecting to osdn.net|54.149.175.225|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://osdn.dl.osdn.net/storage/g/v/v2/v2raya/openwrt/v2raya.pub [following]
--2023-07-23 20:33:31-- https://osdn.dl.osdn.net/storage/g/v/v2/v2raya/openwrt/v2raya.pub
Resolving osdn.dl.osdn.net... 44.227.127.205, 54.184.171.155
Connecting to osdn.dl.osdn.net|44.227.127.205|:443... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2023-07-23 20:33:31 ERROR 500: Internal Server Error.

@steve1977
Copy link

Ah wait... I cannot even access "https://osdn.net/projects/v2raya/storage/openwrt/v2raya.pub" from browser. Seems it's down?

@steve1977
Copy link

Thanks for your help. I am quite desperate to install v2ray on my openwrt box. I have passwall and ssr+ running, but both don't support my node. The URL in the URL above seems outdated. Any idea how to get v2ray installed?

@amanjuman
Copy link
Author

Thanks for your help. I am quite desperate to install v2ray on my openwrt box. I have passwall and ssr+ running, but both don't support my node. The URL in the URL above seems outdated. Any idea how to get v2ray installed?

The original Repo is working again, The Author fixed the CloudFlare WAF issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment