hello there
On my way to setup a stable vpn or proxy connection between my vps and my openwrt i ve discovered chisel https://github.com/jpillora/chisel
i ve setup that on an ubuntu as a socks server and on a windows pc as a client, it s setting up a socks 5 server on my win ,and i m using power tunnel https://github.com/krlvm/PowerTunnel and the win system proxy setup to get my pc connected to the vps thru chisel+powertunnel
in one picture:
vps chisel server =====>windows pc socks 5 server on wich win soks5+power tunnel are plugged in.
i have setup an openwrt on an old pc (acer e1-571 g,one ethernet, openwrt doesnt recognize the wifi card btw) and install chisel on it, so chisel is creating a socks5 proxy server there on port 1080 but now i don t know how to make all the lan/wlan client to have their connection go thru this tunnel i have now on openwrt
I can't help with the specific questions you've got here (I'm not familiar with Chisel)... but there are a lot of other VPN and socks proxy options that are well supported and well known in the OpenWrt community. You might consider those if they can fit your use case. For example: Wireguard and OpenVPN for VPNs, or Shadowsocks for proxy applications. You may find that there will be more users able to help with these protocols.
i ve checked your post ,how do i adapt it in my case if i want all the traffic going thru? it seems you have only redirected two ports only 80 and 443?
hi it doesnt work
when i am adding socks-proxy 127.0.0.1 1080 in the openvpn conf file given by the install script; i have an error on chisel and openvpn doesnt receive anything,the tun0 interface doesnt send nor receive anything
error on chisel:
client: tun: proxy#127.0.0.1:1080=>socks: conn#9:
Stream error: write tcp openwrt-static ip:49150->ubuntu ip :9300: write: connection reset by peer
edit :the error on chisel has disappeared but still openvpn doesnt work as it should work , i m running it on tcp port 1100
have you followed all the steps in https://github.com/jpillora/chisel/issues/46 ?
...
EDIT: so @padima you seemed to be right - it doesn't work by default at least with openvpn by udp.
you need to switch protocol to tcp - replace this in both server and client . On server I also needed to comment #explicit-exit-notify.
And as a bonus on my setup I was able to pull iperf3 speedtest:
hi maurer
my initial openvpn config was on tcp ; i didnt tried on udp
so on chisel server side i ve used port 9300 tcp with socks 5 and on openwrt side the same wich opening the socks 5 server on 1080. on chisel side,things seems working
and i ve modified the openvpn config by adding 127.0.01 1080 as u suggested and i m having same issue when openvpn starts nothing is going thru and i m loosing internet acces so i think there is routing issues somewhere.
i didnt get your comment thing;where did u add that?
my openwrt is one snapshot made by wulfy on pi4
any ideas?
on chisel i m using docker to run it , so as it s getting on openwrt side , i think there is no problems with chisel
for the openvpn config , i ve just used the script and dowloaded the .ovpn file to openwrt openvpn config
i ve sent u that config file in private without all private stuffs