Website loading issue in all browsers on DSL Connection - google-chrome

I am running ubuntu 14.04 and i am using a DSL Connection.From last few days i am having problem in loading some websites like ubuntuforums, hackerrank, mdn etc. I have tried alsmost all solutions available on internet. I am only having this problem on dsl connection. On wifi everything works fine.
1) I have changed default dns to google public dns.
2) This is the outcome of my traceroute ubuntuforums.org
SinScary "at" avenger:~:$traceroute ubuntuforums.org
traceroute to ubuntuforums.org (91.189.94.12), 30 hops max, 60 byte packets
1 100.65.128.1 (100.65.128.1) 0.943 ms 0.916 ms 0.578 ms
2 * * *
3 172.31.210.158 (172.31.210.158) 1.657 ms 1.649 ms 1.634 ms
4 172.31.10.73 (172.31.10.73) 1.950 ms 1.901 ms 1.881 ms
5 10.0.248.2 (10.0.248.2) 2.134 ms 2.126 ms 2.225 ms
6 ws86-230-252-122.rcil.gov.in (122.252.230.86) 1.834 ms 1.372 ms 1.891 ms
7 ws85-230-252-122.rcil.gov.in (122.252.230.85) 1.716 ms 1.830 ms 1.900 ms
8 172.31.210.42 (172.31.210.42) 2.193 ms 2.184 ms 2.231 ms
9 172.31.10.66 (172.31.10.66) 39.689 ms 39.668 ms 39.665 ms
10 172.31.10.198 (172.31.10.198) 2.109 ms 2.163 ms 2.093 ms
11 aes-static-113.195.22.125.airtel.in (125.22.195.113) 1.898 ms 1.863 ms 2.436 ms
12 182.79.245.141 (182.79.245.141) 214.911 ms 182.79.222.109 (182.79.222.109) 220.000 ms *
13 * * *
14 ae-126-3512.edge5.london1.Level3.net (4.69.166.45) 151.005 ms ae-123-3509.edge5.London1.Level3.net (4.69.166.33) 149.374 ms 141.512 ms
15 SOURCE-MANA.edge5.London1.Level3.net (212.187.138.82) 195.375 ms 159.963 ms 160.023 ms
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
3) I have disabled ipv6 as suggested in this Answer by Mitch
4) It successfully pinging from ubuntuforums.org, hackerrank.com
5) Appended nameserver 8.8.8.8 to /etc/resolve.conf
6) Reinstalled Chrome
7) Also tried the following commands
sudo apt-get install resolvconf
sudo dpkg-reconfigure resolvconf
8) Tried disabling dns masq
9) This is the output of route -n
SinScary "at" avenger:~:$route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 100.65.128.1 0.0.0.0 UG 0 0 0 ppp0
100.65.128.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
SinScary "at" avenger:~:$
10) This is the output of cat /etc/hosts
SinScary "at" avenger:~:$cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 avenger
127.0.0.2 sinscary.com sinscary
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
SinScary "at" avenger:~:$
This is the error i am getting while loading websites
ERR Timed Out
Any Help with this.

Related

Internet transfer taking ages for elastic beanstalk environment, with traceroute showing strange output

I have an EBS environment set up in AWS us-east-1, and I'm calling it from Australia via http. There is a DNS set up in front of it on route 53, and I'm calling it via that. I'm aware that having the infra in us-east-1 should add some latency impact in terms of the internet speed.
However, the latency increase seems to be way more than normal. My analysis has shown that it takes 200ms for the endpoint to return a response, the response being 6000 characters of text, but then 900ms end-to-end for the data to hit my computer. That means the data transfer time over the internet is taking 700ms.
This latency is much less (about 100ms for data transfer) if i return for example just 20 characters. I've tried other endpoints in us-east-1 and they transfer the data a lot faster, so my internet connection is unlikely to be the issue. I tried doing a traceroute and here was the output. I'm not skilled at reading traceroute so im not sure if this is misconfigured:
1 mymodem (192.168.0.1) 5.515 ms 4.140 ms 4.416 ms
2 gateway.vb09.melbourne.asp.telstra.net (58.162.26.201) 13.920 ms 18.528 ms 14.207 ms
3 ae10.lon-ice301.melbourne.telstra.net (203.50.61.129) 15.245 ms
ae10.win-ice301.melbourne.telstra.net (203.50.61.145) 14.800 ms 13.342 ms
4 bundle-ether25.exi-core30.melbourne.telstra.net (203.50.61.128) 15.015 ms 15.545 ms
bundle-ether25.win-core10.melbourne.telstra.net (203.50.61.144) 15.603 ms
5 bundle-ether2.cla-core30.melbourne.telstra.net (203.50.13.124) 15.580 ms 15.727 ms 15.234 ms
6 bundle-ether19.chw-core10.sydney.telstra.net (203.50.13.144) 26.375 ms
bundle-ether3.hay-core30.sydney.telstra.net (203.50.13.132) 26.279 ms 27.283 ms
7 bundle-ether1.oxf-gw11.sydney.telstra.net (203.50.6.93) 25.961 ms
bundle-ether19.ken-core10.sydney.telstra.net (203.50.13.146) 26.221 ms 26.505 ms
8 203.50.13.98 (203.50.13.98) 27.733 ms
bundle-ether1.pad-gw11.sydney.telstra.net (203.50.6.61) 26.582 ms
203.50.13.98 (203.50.13.98) 26.650 ms
9 203.50.13.98 (203.50.13.98) 180.096 ms
203.50.13.90 (203.50.13.90) 26.194 ms 27.483 ms
10 203.50.13.90 (203.50.13.90) 165.233 ms 162.661 ms 163.185 ms
11 i-73.paix-core02.telstraglobal.net (202.84.247.45) 185.490 ms 181.710 ms 179.565 ms
12 i-92.paix02.telstraglobal.net (202.84.247.41) 180.893 ms
i-92.eqnx03.telstraglobal.net (202.84.247.17) 160.601 ms 161.498 ms
13 gtt-peer.paix02.pr.telstraglobal.net (134.159.61.98) 327.221 ms 183.915 ms
64.86.160.0 (64.86.160.0) 163.227 ms
14 ae11.cr7-dal3.ip4.gtt.net (213.200.115.26) 240.476 ms
ae12.cr7-dal3.ip4.gtt.net (213.200.120.106) 242.111 ms
64.86.160.5 (64.86.160.5) 220.202 ms
15 ip4.gtt.net (209.120.154.162) 213.780 ms 293.630 ms 308.845 ms
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
31 * * *
32 * * *
33 * * *
34 * * *
35 * * *
36 * * *
37 * * *
38 * * *
39 * * *
40 * * *
41 * * *
42 * * *
43 * * *
44 * * *
45 * * *
46 * * *
47 * * *
48 * * *
49 * * *
50 * * *
51 * * *
52 * * *
53 * * *
54 * * *
55 * * *
56 * * *
57 * * *
58 * * *
59 * * *
60 * * *
61 * * *
62 * * *
63 * * *
64 * * *
I also tried pinging the endpoint and got the following
.Request timeout for icmp_seq 240
If anyone could let me know if this is misconfigured or point me to what I should test/analyse to improve the data transfer latency that would be so useful.
There are indeed disturbingly many hops within Telstra's network! But Internet was designed to be resilient, rather than efficient.
AWS offers more optimal routing through its own private network with Global Accelerator, if your use case calls for a global service out of a single AWS region. Otherwise it may be cheaper to run replication across several AWS regions close to your users, and there are quite a few possible architectures with different tradeoffs between latency and cost, which will have to be considered in the context of your specific application.
Finally, to let the ping through to your instance, you will need to enable inbound rule for Custom ICMP - IPv4 traffic in your security group.

OpenShift Cronjob schedule to run on only on 1st Wednesday of a month

I'm converting my cronjob schedule from Unix to OpenShift (by creating yaml file) and i'm not finding the option to schedule it to run on a certain day in yaml file. I tried these options, but it still doesn't work.
00 5 0-7 * * [ date +\%u = 3 ] && > (this is what i've in Unix)
schedule: '00 05 * * 3/1' (this runs even on second Wednesday)
schedule: '00 05 0-7 * 3'
schedule: '00 05 0-7 * "[ date +\%u = 3 ]"' - Throws error while creation (Invalid value: "00 05 * * "[ date +\\%u = 3 ]"": Expected exactly 5 fields)
schedule: '00 05 * * 3#1' - Throws error while creation ("00 05 * * 3#1": Failed to parse int from 3#1: strconv.Atoi: parsing "3#1")

HaProxy Configurations Error while setting up multi proc environment

I want to achieve 6000/sec requests and trying to setup HaProxy with multi proc settings but getting this error:
cpu-map expects a process number including 'all', 'odd', 'even', or a
number from 1 to 64, followed by a list of CPU ranges with numbers
from 0 to 63
Following are the configurations I'm using.
global
daemon
maxconn 200000
maxsslconn 200000
#stats socket /run/haproxy/admin.sock mode 660 level admin
stats socket 127.0.0.1:14567
nbproc 6
cpu-map auto:1/all 0
cpu-map auto:2/all 1
cpu-map auto:3/all 2
cpu-map auto:4/all 3
cpu-map auto:5/all 4
cpu-map auto:6/all 5
stats bind-process 6
# Default SSL material locations
ca-base /etc/ssl/certs
crt-base /etc/ssl/private
# Default ciphers to use on SSL-enabled listening sockets.
# For more information, see ciphers(1SSL). This list is from:
# https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
ssl-default-bind-options no-sslv3
tune.ssl.default-dh-param 2048
and
global
daemon
maxconn 200000
maxsslconn 200000
#stats socket /run/haproxy/admin.sock mode 660 level admin
stats socket 127.0.0.1:14567
nbproc 6
cpu-map 1 0
cpu-map 2 1
cpu-map 3 2
cpu-map 4 3
cpu-map 5 4
cpu-map 6 5
stats bind-process 6
# Default SSL material locations
ca-base /etc/ssl/certs
crt-base /etc/ssl/private
# Default ciphers to use on SSL-enabled listening sockets.
# For more information, see ciphers(1SSL). This list is from:
# https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
ssl-default-bind-options no-sslv3
tune.ssl.default-dh-param 2048
Nothing is working as expected.

Problems to connect SSH with Google's VPC

I can't to connect by SSH with Google's VPC from my home, but I get to connect from my Public University.
I'm discarding this points:
Problems with SSH, becausa i don't have problems to connect with another computer by ssh.
I'm sure the problem is not SSH Key, because I get to connect from my Public University.
What did i do?
I checked if the problem is Firewall, but I believe it's not that problem. See below the Firewall rule on VPC Google's:
myrule apply to all Intervalos de IP: 192.168.0.0/24 tcp:22 Allow 1000 default
I did test the Ping. I did see that it's working.
PING 35.198.21.159 (35.198.21.159) 56(84) bytes of data.
64 bytes from 35.198.21.159: icmp_seq=1 ttl=61 time=24.6 ms
64 bytes from 35.198.21.159: icmp_seq=2 ttl=61 time=29.0 ms
64 bytes from 35.198.21.159: icmp_seq=3 ttl=61 time=26.0 ms
64 bytes from 35.198.21.159: icmp_seq=4 ttl=61 time=27.4 ms
^C
--- 35.198.21.159 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 24.623/26.773/29.024/1.645 ms
Looking the tracerout, i can see that the final point is not VPC's IP.
traceroute to 35.198.21.159 (35.198.21.159), 30 hops max, 60 byte packets
1 192.168.0.1 2.457 ms 3.457 ms 11.818 ms
2 * * *
3 187.122.188.1 14.157 ms 14.139 ms 14.496 ms
4 200.167.43.21 23.555 ms 23.515 ms 23.476 ms
5 200.244.216.46 22.159 ms 22.142 ms 23.242 ms
6 200.244.216.167 19.398 ms 22.508 ms 22.752 ms
7 201.73.52.38 12.922 ms 14.935 ms 16.819 ms
8 108.170.251.66 14.762 ms 108.170.251.67 11.887 ms 13.945 ms
9 209.85.245.50 29.488 ms 209.85.245.52 21.016 ms 216.239.43.16 19.189 ms
10 108.170.245.129 30.328 ms 108.170.245.225 28.877 ms 28.251 ms
11 72.14.232.163 27.519 ms 108.170.225.26 28.256 ms 209.85.247.47 29.109 ms
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
For all that, can someone help me?

Cron to run every 4 hours with different name then overwrite, MySQL db

I want to run a cron job every hours hours to back up my mysql database.
When it has run for 24 hours I want it to start again and then overwrite each file.
The best I have come up with is:
15 0 * * * /usr/bin/mysqldump -u DBUSERNAME -pDBPASSWORD DBNAME > /PATH/backup1.sql
15 4 * * * /usr/bin/mysqldump -u DBUSERNAME -pDBPASSWORD DBNAME > /PATH/backup2.sql
15 8 * * * /usr/bin/mysqldump -u DBUSERNAME -pDBPASSWORD DBNAME > /PATH/backup3.sql
15 12 * * * /usr/bin/mysqldump -u DBUSERNAME -pDBPASSWORD DBNAME > /PATH/backup4.sql
15 16 * * * /usr/bin/mysqldump -u DBUSERNAME -pDBPASSWORD DBNAME > /PATH/backup5.sql
15 20 * * * /usr/bin/mysqldump -u DBUSERNAME -pDBPASSWORD DBNAME > /PATH/backup6.sql
Is there a more efficient way to do this and do cron jobs auto overwrite a file or is there a switch I need to add?
New to server stuff but gotta learn!
I would go for something like:
15 */4 * * * /bin/bash /path/to/your/script.sh
This executes /bin/bash /path/to/your/script.sh every 4 hours at minute 15.
And then let script.sh be:
num=$(( ($(date "+%H") + 4 ) / 4))
/usr/bin/mysqldump -u DBUSERNAME -pDBPASSWORD DBNAME > /PATH/backup${num}.sql
To get
hour num
0 1
4 2
....
20 6
I use:
$(date "+%H") returns the hour.
$(date "+%H") + 4 returns the hour +4.
$(( ($(date "+%H") + 4 ) / 4)) returns the hour +4 divided by 4.
You could simply rotate your backups before actual backup.
#!/bin/sh
for I in `jot 5 5 1`; do
NN=`expr $I + 1`
mv backup$I.sql backup$NN.sql
done
mysqldump -u DBUSERNAME -pDBPASSWORD DBNAME > backup1.sql