具有不同IP协议的父代理

时间:2016-02-25 03:34:38

标签: squid

我的计算机L只有一个IPv4地址。 我想通过仅具有IPv6地址的VPS SL访问网页P2。 我有一个VPS P1,它有一个带有两个地址的接口:IPv4和IPv6。

所以整个链应该是L(IPv4) -> P1(IPv4) -> P1(IPv6) -> P2(IPv6) -> S(IPv6)

我在每个VPS(运行Ubuntu)上安装了Squid 3.3.8。

以下是P1

的配置
http_port 3128
cache_peer 2001:XXXX:XXX:XX:XXX:XXXX:XXXX:66bc parent 3128 0 no-query no-digest default
never_direct allow all

以下是P2

的配置
http_port 3128
http_access allow all

我收到此错误:HTTP/1.1 403 Forbidden。好像P1(IPv4) -> P1(IPv6)P1(IPv6) -> P2(IPv6)中存在问题。我猜,后者更有可能。我该如何解决这个问题?

备注:

  • 我知道我可以直接从S访问P1。我尝试过它(使用http_access allow all代替never_direct allow all)。有用。但这不是我想要的。
  • 我现在不关心安全性(例如,设置限制性ACL)。

1 个答案:

答案 0 :(得分:0)

问题在于<TextView android:id="@+id/textView6" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_alignParentTop="true" android:gravity="center" android:text="TextView" /> ` countryText = (TextView) findViewById(R.id.textView6); countryText.getLeft() getLeft() return 0; 的配置。我应该保持P1

http_access allow all
相关问题