Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jingyuanliang
Copy link

@jingyuanliang jingyuanliang commented Nov 19, 2024

We have some on-prem hosts with routes configured for Private Google Access. Unfortunately v2rayA interferes with the traffic by trying to proxy it then sends it over to the public Google endpoints. Using v2ray routing doesn't seem to help, because Private Google Access requires traffic to be sent to the private virtual IPs with Host header and SNI pointing to the public service names, and v2ray resolves them to the public IP addresses corresponding to the service names used.

Ref: https://cloud.google.com/vpc/docs/configure-private-google-access-hybrid

We have some on-prem hosts with routes configured for Private Google
Access. Unfortunately v2rayA interferes with the traffic by trying to
proxy it then sends it over to the public Google endpoints. Using v2ray
routing doesn't seem to help, because Private Google Access requires
traffic to be sent to the private virtual IPs with Host header or SNI
pointing to the public service names, and v2ray resolves them to the
public IP addresses corresponding to the service names used.

Ref: https://cloud.google.com/vpc/docs/configure-private-google-access-hybrid
@jingyuanliang
Copy link
Author

jingyuanliang commented Nov 19, 2024

I know this change is a bit invasive, but is there a way to have v2ray route based on SO_ORIGINAL_DST and ignore whatever specified in Host header or SNI (I actually just care about "redirect" mode, at this time)?

The current behavior is tested as having default: direct with nothing else in RoutingA and global proxy turned on, and trying to access with curl https://storage.googleapis.com/ --connect-to ::private.googleapis.com. V2ray direct-connects to the IP address resolved from storage.googleapis.com, not private.googleapis.com as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant