My router blocking facebook and youtube video play only for my laptop not other laps in same network, my lap works if i bypass modem. | router, blocking, facebook, youtube, video play
Question : I have reset factory settings, reboot my modem, pc, clear cache, etc. still its not loading facebook but will load any and all other websites. When i bypass the router, connect directly to my modem, facebook works. why is this happening?
Solution : It is because of TCP packet size for that we need to change the MTU size of our tcp connection, below commands will help to do that
$ifconfig
above command will display the available networks with name and if addrsss
Ex:-
$ifconfig
eth0 Link encap:Ethernet HWaddr b8:ca:3a:d4:63:1d
UP BROADCAST MULTICAST MTU:1492 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
UP BROADCAST MULTICAST MTU:1492 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:776 errors:0 dropped:0 overruns:0 frame:0
TX packets:776 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:79415 (79.4 KB) TX bytes:79415 (79.4 KB)
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:776 errors:0 dropped:0 overruns:0 frame:0
TX packets:776 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:79415 (79.4 KB) TX bytes:79415 (79.4 KB)
wlan0 Link encap:Ethernet HWaddr 60:6c:66:26:6c:9f
inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::626c:66ff:fe26:6c9f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50480 errors:0 dropped:0 overruns:0 frame:0
TX packets:42606 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:58833138 (58.8 MB) TX bytes:6534754 (6.5 MB)
inet addr:192.168.2.101 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::626c:66ff:fe26:6c9f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50480 errors:0 dropped:0 overruns:0 frame:0
TX packets:42606 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:58833138 (58.8 MB) TX bytes:6534754 (6.5 MB)
In above my current network is wlan0 with ip 192.168.2.101
So now we need to change MTU for wlan0 with below command
$sudo ifconfig wlan0 mtu 1492
That will reset the MTU to 1492 and my problem solved.
Comments
Post a Comment