Hi, The solution !
Pulp_Streamer -> Varnish -> netfilter rules -> Squid -> Authenticated external proxy This is not the most efficient solution because of the proxy stack. Le vendredi 17 juin 2016 12:09:41 UTC+2, [email protected] a écrit : > > Well, > > I found a solution. > > Do not modify Apache configuration for pulp_streamer.conf > > Add iptables rules: > iptables -t nat -N PASS > iptables -t nat -A PASS -j ACCEPT > > iptables -t nat -A OUTPUT -d x.x.x.x/16 --proto tcp --dport 80 -j PASS > iptables -t nat -A OUTPUT -d x.x.x.x/16 --proto tcp --dport 443 -j PASS > > iptables -t nat -A OUTPUT --proto tcp --dport 80 -j DNAT --to-destination > proxy_ip:3128 > iptables -t nat -A OUTPUT --proto tcp --dport 443 -j DNAT --to-destination > proxy_ip:3128 > > But the external proxy reclaim authentication... > It's temporarely configure to be transparent proxy. > > It's work with on-demand policy. > > > > Le mercredi 15 juin 2016 14:36:27 UTC+2, [email protected] a écrit : >> >> I recapitulate: >> >> yum install <package> >> >> * With basic configuration on-demand download policy >> >> yum -> pulp-streamer -> external ---> Error 503 in yum >> >> * WIth ProxyRemote * "http://proxy_url:8080" in >> /etc/httpd/conf.d/pulp_streamer.conf >> >> yum -> pulp-streamer -> external ---> Error 407 in yum (require proxy >> authorization) >> >> * With RequestHeader set Proxy-Authorization "Basic <base64 user:pass>" >> and SetEnv proxy-chain-auth On in <Location /streamer/> block in >> /etc/httpd/conf.d/pulp_streamer.conf >> >> yum -> pulp-streamer -> external ---> Error 301 Redirect permanently in >> yum >> >> Any idea to fix this little problem? >> >> On-demand download policy is very intersting to download only required >> packages. >> >> Le jeudi 9 juin 2016 15:47:30 UTC+2, [email protected] a écrit : >>> >>> With immediate policy, it's ok. >>> >>> With on-demand or backgroup: [Errno 14] HTTPS Error 301 - Moved >>> Permanently in yum command. >>> >>> Le mercredi 8 juin 2016 16:22:15 UTC+2, David a écrit : >>>> >>>> Nicolas, >>>> >>>> Are you trying to sync repositories via on-demand or background? The >>>> options would use pulp-streamer/squid. Can you also try to just grab them >>>> using the immediate download policy? That should eliminate squid and >>>> pulp-streamer from the equation. >>>> >>>> You shouldn't really have to tweak the pulp_streamer or squid >>>> configuration. As long as Satellite can fetch the repositories through >>>> your >>>> corporate proxy, squid should work as well. >>>> >>>> David >>>> >>>> >>>> On Wednesday, June 8, 2016 at 9:33:38 AM UTC-4, [email protected] >>>> wrote: >>>>> >>>>> I progress... >>>>> >>>>> Adding in /etc/httpd/conf.d/pulp_streamer.conf: >>>>> ProxyRemote * "http://proxy_url:8080" >>>>> RequestHeader set Proxy-Authorization "Basic <base64 >>>>> username:password>" >>>>> >>>>> yum update return now: >>>>> [Errno 14] HTTPS Error 301 - Moved Permanently >>>>> >>>>> -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
