I am tunneling Firefox through SSH to a remote server using:
ssh -D 9999 -C usr@remotehost.com
This binds 9999 port on localhost. I set this up in Firefox proxy settings using Socks5. It works perfect. But at same time when I run localhost/myPHPProject, it says 404 not found. Because my localhost IPs (127.0.0.1, 127.1.1.1 etc) are all bound to port 9999 SSH tunnel.
Here's my /etc/hosts
127.0.0.1 localhost
127.0.0.2 wplms
127.0.1.1 x8p-lin-pc
127.1.1.1 localproxy
What I want to do is use localproxy as SSH tunneled proxy for Firefox. And localhost, wplms for my LAMP projects. How is this possible?