I write a web based proxy by PHP+curl, on my network some site need through proxy, if I use the CURLOPT_PROXY setting, it has some redirects, so will return 302 error, if add CURLOPT_FOLLOWLOCATION to 1, the windows will jump to other, so can't show in my ifream, is there someway to set iptables make php outgoing connections through proxy?
I have a Squid Proxy server (Debian) working perfectly with authentication:
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
I'd like that also client that try to get web pages using the proxy as gateway (port 80) get redirected on port 3128.
I've tried iptables:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
without luck because in tha
Having some trouble with my very restrictive iptables setup. I have nginx (port 80) setup to be a reverse proxy in front of node.js (port 8080). When the iptables service is stopped, everything works great.
How to get my computer use a proxy ON my computer, which connects to the school proxy ?
The reason i ask this, is because i need all programs on my computer, absolutely the whole system to go through the network, without having to use proxy authentication?
Then i was thinking of a possibility to use a local proxy without authentication, to connect to the school proxy (with all authentication det
I am trying to get wget running behind a proxy. Since Ubuntu didn't support providing authentication information for the proxy (the one in the system settings), I had to use a ntlm proxy (in my case, I use cntlm). In the network settings I have set the proxy to 127.0.0.1:3128, which works fine for Chrome. APT has its own configuration file, where I've also set the proxy to 127.0.0.1:3128.
Running into an issue with my iptable rule to redirect outbound traffic on port 80 to a squid proxy transparently.
Here is my interface information
eth0 = internet
eth1 = physical interface
eth1:0 = 192.168.0.1/24
eth1:1 = 172.16.0.0/24
My iptables rule:
iptables -t nat -A PREROUTING -s 192.168.0.0/24 !
I've tried to setup a proxy for mysql outbound connections using TOR's 9050 port and iptables and I failed. Any ideas how to make things working?
Schema:
Linux mysql client (or PHP function) -> 127.0.0.1:9050 (TOR socks5) -> remote_mysql_server:3306
Just want to redirect any outbound connection to port 3306 through TOR proxy.
PS. pls don't ask why :)
i want to make transparent proxy with linux ( centos) ,
i want all incoming connection on port 1000 - 2000 on eth0 forward to eth1 on port 1000 - 2000 in transparent mode
i searched in the net and i found some command
iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 8001 -j DNAT --to-destination 192.168.1.200:8080
iptables -A FORWARD -p tcp -d 192.168.1.200 --dport 8080 -m state --st
I use an application called Proxoid to connect to the internet via my moto Droid using android adb forward. Turns my cell into a little proxy server or something.
This works great on firefox and in synaptic package manager because they both have options to use a manual proxy. i just put in localhost 8080
I have a few problems still though: