I have a network env, which has outgoing traffic using proxy only.
I want to create some sort of "unproxying GW" for my specific internal network.
I am okay to use any Linux based solution for this, such as nginx/apache, HAproxy, squid, iptables or any other.
Infra:
Code:
gw: 10.1.1.1
dns: 10.2.1.1
proxy: www-proxy.xxx
my server **with** ability to use proxy: 10.1.1.4
My server **without** proxy, but able to access 10.1.1.4 any port: 10.1.1.111
In the end I would like to request:
http://10.1.1.4/subdir/file > which would go to
http://www.museum/subdir/file over
www-proxy.xxx (what is squid, if that matters).
any ideas?
----
for nginx, it is easy to make redirection to some specific URL, but how to set it to use proxy... that is most interesting thing I cannot get.
---
Small update:
App I am trying to use is:
Code:
screen -S vm virt-install --name VM --vcpus 4 --memory 4096 --location http://mirror.centos.org/centos-7/7/os/x86_64/
--os-variant rhel7 --network network=mgmtbr,model=virtio --disk vol=LVM-pool/vmvol,device=disk,bus=virtio --virt-type kvm --graphics none --console pty --extra-args "console=ttyS0 ip=10.1.1.111::10.1.1.1:255.255.255.0:sel:eth0:none nameserver=10.1.1.1 nameserver=10.1.1.2 inst.proxy='http://www-proxy.xxx:8080/' inst.cmdline"
I do not want to install GUI to set it up.
It fails when trying to get "http://mirror.centos.org/centos-7/7/os/x86_64/LiveOS/squashfs.img", I think in between stage1 and stage2? looks like inst.proxy='http://www-proxy.xxx:8080/' is not set, but I can see IP there...