Skip to content

Instantly share code, notes, and snippets.

@jameswhite
Created September 9, 2013 21:28
Show Gist options
  • Save jameswhite/6501764 to your computer and use it in GitHub Desktop.
Save jameswhite/6501764 to your computer and use it in GitHub Desktop.
[root@beech ~]# proxyoff
Proxy environment variables removed.
[root@beech ~]# iptables -t nat -I OUTPUT -p tcp --dport 80 -j DNAT --to-destination 127.0.0.1:3128
[root@beech ~]# iptables -t nat -I OUTPUT -p tcp --dport 443 -j DNAT --to-destination 127.0.0.1:3129
[root@beech ~]# wget --no-check-certificate -qO /dev/null https://google.com; echo $?; wget -qO /dev/null http://google.com; echo $?;
0
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment