caddyserver / forwardproxy

Forward proxy plugin for the Caddy web server
Apache License 2.0
603 stars 228 forks source link

Network Interface Feature example: fe0 in the dialcontext to be added. #133

Open srini-balak opened 4 months ago

srini-balak commented 4 months ago

1. Is bug reproducible with latest forwardproxy build?

The interface feature is required in the forwardproxy plugin.

2. What are you trying to do?

Well, I am using the forwardproxy for the requests to reach the internet, But I expect the network interface to be specified somewhere in the dialcontext. So that the request goes to the internet via the specific interface. In this case Example: fe0

3. What is your entire Caddyfile?


:442 {
    log {

        level DEBUG
    }

    route {       
        forward_proxy {           
                allow all         
        }
    }
}

4. How is your client configured?

5. How did you run Caddy? (give the full command and describe the execution environment). If multiple servers are used (for example with upstream), describe those as well.

caddy run --config /etc/caddy/Caddyfile

6. Please paste any relevant HTTP request(s) here.

curl -s https://google.com -v -k

7. What did you expect to see?

I expecting to see the request reaching the internet and respond back via the fe0 interface. There is no such option yet as of my understanding

8. What did you see instead (give full error messages and/or log)?

I am not able to use the interface

9. How can someone who is starting from scratch reproduce the bug as minimally as possible?

If they try to configure using the interface.

srini-balak commented 4 months ago

Can some caddy or forward proxy team look into it, that would be highly helpful, thanks