Hi everyone,
I'm using my laptop as wifi Access Point for my tablet. On that laptop I run a SSH tunnel to a remote host far away and use it as a Socks proxy at 127.0.0.1:1080. Sort of SSH-type VPN:
But how can I make the wireless clients connected to that laptop send and receive all Internet traffic via that tunnel at 127.0.0.1:1080 and not the normal way (the laptop's default route)?
I've tried this PF configuration:
But this doesn't seem to work. What other ways are there, or maybe PF configuration should be a bit different?
I'm using my laptop as wifi Access Point for my tablet. On that laptop I run a SSH tunnel to a remote host far away and use it as a Socks proxy at 127.0.0.1:1080. Sort of SSH-type VPN:
Code:
ssh -f -N -D 127.0.0.1:1080 -p $remote_ssh_port $user@ssh_host.com
But how can I make the wireless clients connected to that laptop send and receive all Internet traffic via that tunnel at 127.0.0.1:1080 and not the normal way (the laptop's default route)?
I've tried this PF configuration:
Code:
pass quick on wlan0 proto udp from any to any port 67
pass quick on wlan0 proto udp from any to any port 647
(don't want to divert DHCP)
...
pass in quick on wlan0 inet proto { tcp,udp,icmp } from $my_wifi_network to any \
divert-to 127.0.0.1 port 1080
pass out quick on wlan0 from any to any
...