V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  churchmice  ›  全部回复第 68 页 / 共 93 页
回复总数  1850
1 ... 64  65  66  67  68  69  70  71  72  73 ... 93  
2017-03-29 10:36:46 +08:00
回复了 Libby520 创建的主题 随想 蓝色的毛衣
你会不会就突然的出现,在街角的大保健
自己改 sshd_config,允许 root 登录
2017-03-23 16:41:43 +08:00
回复了 xxhjkl 创建的主题 宽带症候群 浙江电信业界良心, 10 元每月提上行到 10M 了
@aileswang 说的不是一码事,你那 200m 上传还是 4m 小水管吧?
2017-03-15 12:51:59 +08:00
回复了 spiritree 创建的主题 宽带症候群 上海新装宽带的抉择-电信 or 联通?
@diskerjtr 不知道啊,那我有可能被坑了。。
2017-03-14 20:36:09 +08:00
回复了 spiritree 创建的主题 宽带症候群 上海新装宽带的抉择-电信 or 联通?
@liuweisj 上淘宝 400 块给你升级成 100m,刚入坑,实现原理是用乐视的升级码帮你套餐升级成 100m
2017-03-14 09:13:08 +08:00
回复了 spiritree 创建的主题 宽带症候群 上海新装宽带的抉择-电信 or 联通?
@snsd 4m
2017-03-13 17:58:30 +08:00
回复了 spiritree 创建的主题 宽带症候群 上海新装宽带的抉择-电信 or 联通?
去年办了电信 50m 两年 2400 的含泪路过,自己破解了光猫,没啥不适,就是价格高,如果有联通的话用联通好,可惜不是所有小区都支持
2017-03-13 12:12:31 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@blues9 那只能 server 端 tcpdump 抓包了
2017-03-12 23:54:22 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@blues9 搞定,在客户端把 MTU 设成 1360 就好了
2017-03-12 23:25:47 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@blues9 tcpdump 看了下是 MTU 有问题

need to frag (mtu 1398), length 556



所以 ping 没有问题,但是 wget 有问题
2017-03-12 21:07:06 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@blues9 英吹思婷,我的是 ping 没问题,wget 就卡
2017-03-12 19:56:09 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
不过我的问题还是没法解决啊,很诡异的
ping www.google.com 都是没有问题的
wget 就卡了

churchmice@ancients:~ $-> ping www.google.com
PING www.google.com (64.233.188.104): 56 data bytes
64 bytes from 64.233.188.104: icmp_seq=0 ttl=52 time=48.167 ms
^C
--- www.google.com ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 48.167/48.167/48.167/0.000 ms
churchmice@ancients:~ $-> wget www.google.com
--2017-03-12 19:55:58-- http://www.google.com/
Resolving www.google.com... 64.233.188.103, 64.233.188.104, 64.233.188.106, ...
Connecting to www.google.com|64.233.188.103|:80... connected.
HTTP request sent, awaiting response... ^C
2017-03-12 19:55:02 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
用 tcp 模式测试的话,gcp 开 server,mac 当 client,测试命令 iperf3 -c 104.x.x.x -t 60 -i 10, 连上 vpn 和未连 vpn 速度都是差不多

[ 5] 0.00-60.15 sec 25.9 MBytes 3.62 Mbits/sec sender
[ 5] 0.00-60.15 sec 25.8 MBytes 3.60 Mbits/sec receiver

连上后 mac 当 server,gcp 当 client,测试的话速度倒是挺快 iperf3 -c 10.0.64.1 -t 60 -i 10
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-60.00 sec 348 MBytes 48.6 Mbits/sec 257 sender
[ 4] 0.00-60.00 sec 346 MBytes 48.4 Mbits/sec receiver
2017-03-12 18:39:56 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@redsonic
刚才可能有人在看电视,所以数据不准
现在拿本机(mac)当 client,gcp 当 server,数据如下

churchmice@rmbp:~ $-> iperf3 -u -c 104.x.x.x -b 50M -t 60 -i 10
Connecting to host 104.x.x.x, port 5201
[ 5] local 10.0.16.64 port 49369 connected to 104.x.x.x port 5201
[ ID] Interval Transfer Bandwidth Total Datagrams
[ 5] 0.00-10.01 sec 59.0 MBytes 49.5 Mbits/sec 43975
[ 5] 10.01-20.00 sec 59.6 MBytes 50.0 Mbits/sec 44404
[ 5] 20.00-30.00 sec 59.6 MBytes 50.0 Mbits/sec 44386
[ 5] 30.00-40.00 sec 59.6 MBytes 50.0 Mbits/sec 44390
[ 5] 40.00-50.01 sec 59.6 MBytes 50.0 Mbits/sec 44391
[ 5] 50.01-60.01 sec 59.6 MBytes 50.0 Mbits/sec 44393
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 5] 0.00-60.01 sec 357 MBytes 49.9 Mbits/sec 1.645 ms 241581/265936 (91%)
[ 5] Sent 265936 datagrams

iperf Done.

连上 strongswan
churchmice@rmbp:~ $-> iperf3 -u -c 104.x.x.x -b 50M -t 60 -i 10
Connecting to host 104.x.x.x, port 5201
[ 5] local 10.0.16.64 port 61546 connected to 104.x.x.x port 5201
[ ID] Interval Transfer Bandwidth Total Datagrams
[ 5] 0.00-10.00 sec 59.1 MBytes 49.5 Mbits/sec 43990
[ 5] 10.00-20.00 sec 59.6 MBytes 50.0 Mbits/sec 44382
[ 5] 20.00-30.00 sec 59.6 MBytes 50.0 Mbits/sec 44407
[ 5] 30.00-40.00 sec 59.6 MBytes 50.0 Mbits/sec 44364
[ 5] 40.00-50.00 sec 59.6 MBytes 50.0 Mbits/sec 44391
[ 5] 50.00-60.00 sec 59.6 MBytes 50.0 Mbits/sec 44402
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 5] 0.00-60.00 sec 357 MBytes 49.9 Mbits/sec 1.704 ms 241100/265927 (91%)
[ 5] Sent 265927 datagrams

iperf Done.
2017-03-12 18:27:44 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@redsonic 连上 strongswan 之后本机(mac)当 server,gcp 当 client 的数据

root@nox-gcp:~# iperf3 -u -c 10.0.64.1 -b 50M -t 60 -i 10
Connecting to host 10.0.64.1, port 5201
[ 4] local ********** port 47358 connected to 10.0.64.1 port 5201
[ ID] Interval Transfer Bandwidth Total Datagrams
[ 4] 0.00-10.00 sec 59.2 MBytes 49.6 Mbits/sec 7575
[ 4] 10.00-20.00 sec 59.6 MBytes 50.0 Mbits/sec 7629
[ 4] 20.00-30.00 sec 59.6 MBytes 50.0 Mbits/sec 7629
[ 4] 30.00-40.00 sec 59.6 MBytes 50.0 Mbits/sec 7630
[ 4] 40.00-50.00 sec 59.6 MBytes 50.0 Mbits/sec 7629
[ 4] 50.00-60.00 sec 59.6 MBytes 50.0 Mbits/sec 7630
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 4] 0.00-60.00 sec 357 MBytes 49.9 Mbits/sec 0.522 ms 26/45722 (0.057%)
[ 4] Sent 45722 datagrams

iperf Done.
2017-03-12 17:14:06 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@redsonic
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-60.00 sec 15.5 MBytes 2.17 Mbits/sec sender
[ 5] 0.00-60.00 sec 15.4 MBytes 2.16 Mbits/sec receiver


我家的瓶颈在无线路由器....
2017-03-12 16:57:51 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@blues9 DNS 改成 8.8.4.4 ? 还有你的防火墙这么配置的?

我的配置如下:

port 2048

proto udp

dev tun


ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key # This file should be kept secret

dh /etc/openvpn/dh2048.pem

server 10.0.32.0 255.255.255.0

ifconfig-pool-persist ipp.txt








push "redirect-gateway def1 bypass-dhcp"

push "dhcp-option DNS 8.8.4.4"
push "dhcp-option DNS 8.8.8.8"



keepalive 10 120



comp-lzo


user nobody
group nogroup

persist-key
persist-tun

status openvpn-status.log


verb 3


cipher AES-256-CBC
2017-03-12 13:41:42 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@blues9 改成 192.168.55.0/24 也是不行,方便把你的 /etc/ipsec.conf 贴一下吗?

openvpn 的话我参考的这个 https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-debian-8

DNS 解析不了的话你看看 push 的 DNS 是多少?
2017-03-12 13:32:48 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@blues9 嗯,我试试,因为 GCP 里面 eth0 的地址并不是真正的外网地址
2017-03-12 13:32:12 +08:00
回复了 churchmice 创建的主题 问与答 有在 GCP(Google Cloud Platform)搭建 strongswan 的嘛?
@redsonic 这玩意怎么测?没弄过啊
1 ... 64  65  66  67  68  69  70  71  72  73 ... 93  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1295 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms · UTC 17:49 · PVG 01:49 · LAX 10:49 · JFK 13:49
Developed with CodeLauncher
♥ Do have faith in what you're doing.