Use forward proxy

Hi, I'm trying to use a forward proxy as a traefik route backend to forward to external services.

Capture

I tried the configuration below (tested it using curl -k http://httpbin.org --resolve httpbin.org:80:<my ip>), but always get a error from squid (The requested URL could not be retrieved). Maybe you can help me figure out what my mistake is (I also want to use it to forward https requests)

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: proxy
spec:
  selector:
    matchLabels:
      app: proxy
  template:
    metadata:
      labels:
        app: proxy
    spec:
      containers:
      - name: proxy
        image: b4tman/squid
        resources:
          limits:
            cpu: 250m
        ports:
        - containerPort: 3128
          name: http
---
apiVersion: v1
kind: Service
metadata:
  name: proxy
spec:
  selector:
    app: proxy
  ports:
  - port: 3128
    targetPort: http
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: httpbin-proxy
  namespace: default
spec:
  entryPoints:
    - web
  routes:
  - match: Host(`httpbin.org`)
    kind: Rule
    services:
    - name: proxy
      port: 3128

If you get a error from squid, it is likely that it's a squid configuration error. May be you can get more help with whatever squid support channels are? (It is not wrong to ask here, it's just that chances of having a squid expert here are rather low).

If you think this is traefik related please provide more details.

@develerik did you manage to solve this? I am stuck this for 2 days now :frowning: