DEV Community

abbazs
abbazs

Posted on • Updated on

raw.githubusercontnet.com blocked by act-fibernet https://www.actcorp.in/

The internet service provider act-fibernet has blocked the github content site raw.githubusercontent.com saying it is blocked as per an order from Madras high court, but did not provide court order reference.

Apparently airtel and other internet providers do not block the site.

So how to access raw.githubusercontent.com using two internet connections, one is blocking it and another is not blocked.

Make a wifi hotsopt from your mobile or get a airtel or jio dongle.

Connect to wifi and act internet via network cable in your laptop or desktop computer. If you don't have wired internet, get a wifi usb dongle and connect to the mobile hotsopt through the wifi usb dongle, such that you are connected to two internet connections simultaneously.

Follow the steps to setup the routing:

  • Get the current status of network connections in your laptop
ip route list
# default via 192.168.0.1 dev wlp0 proto dhcp metric 100 
# default via 192.168.1.1 dev wlp1 proto dhcp metric 600 
Enter fullscreen mode Exit fullscreen mode
  • Consider wlp0 is connected to actfiber net and wlp1 is connected to airtel wifi:
# Find the ip address of raw.githubusercontent.com
dig @resolver4.opendns.com raw.githubusercontent.com +short
# 185.199.108.133
sudo ip route add 185.199.108.133/32 dev wlp1
Enter fullscreen mode Exit fullscreen mode
  • We have successfully modified the routing for raw.githubusercontent.com to be routed through airtel.

  • This setting is not persistent, after you reboot your machine it needs to be set again.

Top comments (0)