vpn无法正常访问https网站的解决办法1+

19,223 views / 2013.06.07 / 12:12 上午

前阵子忽然发现在国外假设的vpn在家无法访问https网站了,检查了路由什么的都正常,遂怀疑是小区宽带的防火墙作祟,不了了之。

今儿晚上又仔细分析了下,会不会是前阵子换了无线路由器的原因呢?以前也遇到过nat功能没打开导致vpn无法连接的问题,于是登陆到路由器管理平台,发现有个转发规则栏目,进入后,打开“特殊应用程序”,有如下文字提示:

某些程序需要多条连接,如Internet游戏,视频会议,网络电话等。由于防火墙的存在,这些程序无法在简单的NAT 路由下工作。特殊应用程序使得某些这样的应用程序能够在NAT路由下工作。

看来很大可能就是它的问题了,添加一个条目:

ID 触发端口 触发协议 开放端口 开放协议 状态 编辑
1 1723 ALL 1723 ALL 生效

其中1723是pptp协议要使用的端口。

断开电脑网络,重新连接,发现问题得到解决。

后来重启了电脑,发现又不行了,捯饬了半天,原来是路由器MTU数的问题,改成1490,重启路由,搞定。

Categories: 分享 Tags:

国外VPS推荐0+

6,361 views / 2013.05.31 / 4:04 下午

不知道不觉中,本站使用的VPS已经三年多了,这三年不管从服务还是稳定性都比较满意。前文(http://www.71j.cn/archives/250)已经做过推荐了,忍不住再推荐下:
http://www.diahosting.com/client/aff.php?aff=1041
有任何使用问题可联系24小时QQ客服或者电话。

Categories: 感悟 Tags:

Cisco AnyConnect VPN 在linux系统下连接方法[通用]0+

11,014 views / 2013.05.30 / 4:04 下午

前文介绍了针对Cisco AnyConnect VPN在win8和mac系统下的连接方法,但有朋友反馈说在mac系统下的软件安装后无法使用。遂奉上@virtman 大师的linux通用方法。

首先安装openconnect

$ sudo yum install openconnect   (在Fedora上,会顺带安装:vpnc-script.noarch,这个包会被openconnect用到)

$ sudo openconnect –script /etc/vpnc/vpnc-script https://your-vpn-server.com

Attempting to connect to 121.0.29.22:443
SSL negotiation with vpn.taobao.org
Server certificate verify failed: signer not found
Certificate from VPN server “your-vpn-server.com” failed verification.
Reason: signer not found
Enter ‘yes’ to accept, ‘no’ to abort; anything else to view: yes
Connected to HTTPS on your-vpn-server.com
GET https://your-vpn-server.com/
Got HTTP response: HTTP/1.0 302 Object Moved
SSL negotiation with your-vpn-server.com
Server certificate verify failed: signer not found
Connected to HTTPS on your-vpn-server.com
GET https://your-vpn-server.com/+webvpn+/index.html
Please enter your username and password.
Username: your-name
PASSCODE: ********
POST https://your-vpn-server.com/+webvpn+/index.html
Got CONNECT response: HTTP/1.1 200 OK
CSTP connected. DPD 30, Keepalive 20
Connected tun0 as 10.1.25.155, using SSL

 

至此,连接成功。ctrl+z然后bg置入后台运行即可。

Categories: 分享 Tags:

奉献出一个封装的curl函数,便于调用0+

3,104 views / 2013.05.30 / 4:04 下午

抓数据专用

 

function curl($url, $ifpost = 0, $datafields = '', $cookiefile = '', $v = false) {
 $header = array("Connection: Keep-Alive","Accept: text/html, application/xhtml+xml, */*", "Pragma: no-cache", "Accept-Language: zh-Hans-CN,zh-Hans;q=0.8,en-US;q=0.5,en;q=0.3","User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)");
 $ch = curl_init();
 curl_setopt($ch, CURLOPT_URL, $url);
 curl_setopt($ch, CURLOPT_HEADER, $v);
 curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
 $ifpost && curl_setopt($ch, CURLOPT_POST, $ifpost);
 $ifpost && curl_setopt($ch, CURLOPT_POSTFIELDS, $datafields);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
 curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate');
 $cookiefile && curl_setopt($ch, CURLOPT_COOKIEFILE, $cookiefile);
 $cookiefile && curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile);
 $r = curl_exec($ch);
 curl_close($ch);
 return $r;
}
Categories: 感悟 Tags:

用支付宝支付godaddy失败,钱却扣了14+

16,469 views / 2013.04.27 / 8:08 上午

在godaddy上续费域名,发现居然有支付宝的支付方式,很开心的选择了他,却不不幸的失败了,本以为可能有延迟,等一会儿订单就会被确认,结果等了一天也不行。遂给godaddy提ticket,回复如下:
Thank you for your response. I see you need assistance with an order placed through Alipay.

When you place an order with us using international payment options, they can take up to 30 days to provide payment confirmation (though it’s typically less than 24 hours). While we wait for payment confirmation, we track it as a Pending Order. This means products you order are not immediately available. However, when we receive payment confirmation, we attempt to fulfill the products and services in your Pending Order.

Domain names and other services are not registered or fulfilled until we receive payment confirmation. In the interim, someone else can register domain names in your Pending Order, causing your registration to fail and that portion of your order to be canceled. However, we will fulfill and charge you for any other services from your Pending Order.

意思就是让我等,最多可能要30天。这太不靠谱了,于是又回复他们,让快点确认,他们回复说不行,只能等,我说等不了,退款吧,他们说不行,等30天后才能退。我勒个去,就这样来回邮件了9天,依然没动静。我终于忍不了了,于是取消了pending的订单,结果钱没退我。只好再发他们邮件:
I called Alipay again, they said the fund is still on your account. If you are not going to give my money back, they will help me take the judicial process to prosecute you.

I don’t believe Godaddy is so irresponsibility. Please just have a check to see how many times I have contacted you for this order. You really disappointed me.
Yipeng Du
4/26/2013
9:16 am
How funny! Alipay told me to contact you, you told me to contact Alipay!
So this’s godaddy’s close service?!
Go Daddy Support
4/26/2013
9:07 am
Dear Paddy,

Thank you for your reply. If you do not see the refund, please contact Alipay for review and assistance.

Please let us know if you have any further questions, comments, or concerns. Our service departments and telephone lines are open 24 hours a day, 365 days a year to accommodate your needs anytime.

You can reach us by phone at any time at (480) 505-8877, or simply reply to this email.

Sincerely,
Pauline M.
Online Support
Go Daddy Support
4/26/2013
12:36 am
Dear,I canceled this order manually,but my fund is still not available in Alipay.
Please help.

Yours sincerly
Paddy

—原始邮件—
在 2013年04月26日 08:44
“support” 写道:
Information regarding your support request. Our support staff has responded to your request, details of which are described below: Discussion Notes

Support Staff Response
Dear Paddy,

Thank you for your reply. When a charge is pending, that means we have not taken the funds. As such, we cannot issue a refund. Additionally, if the order is canceled, your funds should be once again available in AliPay. However, please note that we cannot cancel a pending order, and we apologize for any inconvenience this may cause you.

Please let us know if we can help you in any other way.

Sincerely,
Sara P.
Online Support Team

Customer Inquiry
Dear,you didn’t get my real meaning,
please help me to take the refund process and do not tell me to wait again.

这帮让人抓狂的客服,看来真是吃硬不吃软,我说要投诉了,他们才给升级2线:
Due to its complex nature, your issue has been relayed to our Advanced Technical Support Team. Our most skilled technicians will be working to resolve your issue quickly and completely. You will be notified promptly upon resolution.

This is your Incident ID: 18952274

To thank you for your patience, we’d like you to enjoy 20%* off your order of $100 or more at GoDaddy.com. Simply use source code GDBBA685 when you order or mention the code when you call (480) 505-8877.

好吧,看来还要再等一天了。

2013-5-2 更新 可能老美也要过五一劳动节,今天才给我最新的回复:

Dear Yipeng Du,

Thank you for your order. We received funding from AliPay for your transaction, and your order has been processed.

To begin using your product(s), or to view your account information, please visit Go Daddy and log in to your account with your username or customer number and password.

For reference, your order information is below:

CUSTOMER NUMBER: 332***
USERNAME: ***
RECEIPT NUMBER: 53721***
ORDER TOTAL: ¥499.31
CUSTOMER SERVICE: (480) 505-8877

If you have any questions about this order or the products/services you’ve purchased, please feel free to access our online support options.

Thanks again for your order,
Go Daddy

意思是说,我们已经收到您的款,请再等待处理结果。

又过了一分钟,给我新的回复:

Dear Yipeng Du,
Thank you for your order. Unfortunately, we could not process your order using AliPay for the following reason:
The order is no longer available.
If funds were received, we have refunded the full amount received back to your AliPay account. REFUND AMOUNT: ¥499.31
Again, your order was not processed. If you wish to re-order, please use the following link to return to your shopping cart.

Please contact us if you need any further assistance.
We look forward to your continued patronage, Go Daddy

 

说订单已经失效,他们将退款。废话,订单我都取消了,不退款能怎样。继续等吧,看样子应该能很快退到支付宝了。
2013-5-4 更新 今天给我最新的回复:

Dear Paddy,

Thank you for your response. We have escalated this issue and were able to take action to ensure the funds were returned to Alipay. They should be returning the funds to you shortly. We appreciate your patience and understanding while we investigated this issue further.

Please let us know if there is anything else we can assist you with.

Thank you,
Aaron K.
Online Support Team

紧接着不到两个小时,收到支付宝的退款通知。

至此,历时近一个月,退款全部完成。

Categories: 感悟 Tags: