I have created a SSH tunnel on my laptop connected to LAN. I want to share the internet via WiFi/hotspot, but over the SSH tunnel. I mean any computer using this wireless should connect to the internet via the SSH tunnel (automatically without setting proxy).
In other words, I want to set the proxy setting only on my laptop (e.g., 127.0.0.1:1028), and any computer using the WiFi/hotspot from my laptop should be able to use internet without any proxy setting.
iptables -F) for this to work? – a06e Sep 10 '18 at 19:45iptablesnuking. – a06e Sep 12 '18 at 15:47-F(first two commands) and it worked well. – Ahsaan Yousuf Feb 24 '21 at 12:24ssh -D 1222to set up the ssh port forwarding then the redsocksport(forwarding) must be set equal to 1222. The redsockslocal_port(listening) is up to you, I chose 12345 at random. Now any traffic directed to port 12345 will be forwarded by redsocks to port 1222 and from there over the ssh tunnel. – Abid H. Mujtaba Oct 28 '22 at 13:44