v2ray: VyOS 1.2 as a client - Tualua/v2ray-docs GitHub Wiki
Grab latest rolling iso from https://downloads.vyos.io/?dir=rolling/current/amd64 I will use vyos-1.2.0-rolling+201903200337-amd64.iso
You can install VyOS on dedicated physical device or use virtualization. I prefer second option Setup VM with one NIC facing dedicated network with your current router.
Boot VM with downloaded .iso file
Login with vyos/vyos
Install VyOS image to disk
install image
It is pretty simple so I will not cover this in my guide. Reboot when you finish.
Configure IP address, default route and ssh. 10.224.30.241 is IP address of router in dedicated network segment
configure
set interfaces ethernet eth0 address 10.224.30.242/30
set protocols static route 0.0.0.0/0 next-hop 10.224.30.241
set system name-server 10.224.30.241
set service ssh port 22
commit
save
Now you can connect using ssh
If your VyoS is virtual, then delete ttyS0 to get rid of annoying message in syslog configure delete system console device ttyS0 commit save exit reboot
Add Debian 8 repo (it will disappear after reboot)
sudo su
cat << EOF >/etc/apt/sources.list
deb http://archive.debian.org/debian/ jessie main contrib non-free
EOF
apt-get -o Acquire::Check-Valid-Until=false update
Install your favorite text editor
apt install vim nano mc
Install v2ray
bash <(curl -L -s https://install.direct/go.sh)
You may need to use proxy server to connect to install-direct. In this case I use v2ray client installed on another computer
bash <(curl --socks5-hostname 10.224.30.6:1081 -L -s https://install.direct/go.sh)
Configure v2ray
nano /etc/v2ray/config.json