![]() ![]() conf, and move the file to /etc/openvpn/client/ sudo mv client.opvn /etc/openvpn/nfĮnable and start the service. To connect OpenVPN automatically after boot, change the filename from. To connect: sudo openvpn -config client.ovpn Route 192.168.0.0 255.255.0.0 net_gateway They create an encrypted connection between the Shadowsocks client on your local computer and the one running on your own proxy server, using an open-source internet protocol called SOCKS5. ![]() For example, this skips connection in LAN connecting via OpenVPN. ![]() route SHADOWSOCKS_SERVER_IP 255.255.255.255 net_gatewayĪdd necessary routing if you needed. socks-proxy 127.0.0.1 1080Īdd this line to skip routing the connection to Shadowsocks server via OpenVPN. How would I have to change my config (/etc/config/shadowsocks-libev) if I want to have multiple different remote servers.Add this line to use SOCKS5 proxy on localhost port 1080. The packages kmod-ipt-tproxy and iptables-mod-tproxy are missing from the release repositories and need to be downloaded and installed manually. Unfortunately, at the time of writing, the operating system shipped with the NanoPi (FriendlyWrt fork of OpenWrt) has some issues and doesn't allow an easy installation of shadowsocks. The NanoPi R2S is a cheap little device with two ethernet ports that can easily be plugged between the modem and wifi router to provide tunneling service to your entire network, even if the wifi router doesn's support OpenWrt (or you don't want to change it due to warranty reasons). I hope this small guide helps you setting up your shadowsocks tunnel! Feel free to comment and update the content, if necessary.Īdditional steps required for shadowsocks on a NanoPi R2S: This must be done via command line according to the instructions in You can do this either via command line or in the web interface. Follow the steps outlined in the readme file under Recipes > forward all: The simplest recipe is to forward all traffic through the tunnel. Set at least IP, port, method and password, and don't forget to untick the Disable checkbox. In the Luci Web UI, head to Services > Shadowsocks-libev > Remote Servers and edit the existing sss0 server (or add a new one). Install the following packages using opkg: These are working at the time of writing. The names of the packages have changed from what many guides state. Thus, here's a summary on how to install and setup shadowsocks on a fresh OpenWrt installation: As an OpenWrt and proxy beginner, I've spent quite a lot of time figuring out how to set up shadowsocks on OpenWrt due to many outdated guides, how-tos and forum discussions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |