DEV Community

Mehdi mFat
Mehdi mFat

Posted on • Updated on

Tunnel any port over shadowsocks in openwrt using ss-tunnel

When you install luci-app-shadowsocks-libev on openwrt, there is a mudule called ss-tunnel.

SS-Tunnel is also part of any standard shadowsocks-libev or shadowsocks-rust installation in linux.

But what does it do?

SS-Tunnel can forward any local port over shadowsocks.

For example if you have an openvpn server somewhere with ip address of 214.43.76.543 listening on port 1194, you can easily connect to it over shadowsocks by setting 214.43.76.543:119 as tunnel address in ss-tunnel.

Now if ss-tunnel is listening on local port 1085, you can use it as your remote server ip in your openvpn config like this:

remote 127.0.0.1 1085
Enter fullscreen mode Exit fullscreen mode

This is very useful if openvpn is blocked on your network.

Cloak is another alternative.

screenshot

Top comments (2)

Collapse
 
chalist profile image
Chalist

214.43.76.543 :119 typo?

Collapse
 
mfat profile image
Mehdi mFat

Yes baby! thanks much! :)