Routeros Mikrotik Tutorial - Sock Proxy on Terminal Using Tsock

How running apt-get through sock proxy?
I use tsock for running apt-get through sock proxy

Installing tsock
$ sudo apt-get install tsock


edit file /etc/tsock.conf


# Default server
# For connections that aren't to the local subnets or to 150.0.0.0/255.255.0.0
# the server at 192.168.0.1 should be used (again, hostnames could be used
# too, see note above)
server = 202.144.2.100
# Server type defaults to 4 so we need to specify it as 5 for this one
server_type = 5
# The port defaults to 1080 but I've stated it here for clarity
server_port = 1080



then you can run apt-get through sock proxy with command

$ sudo tsocks apt-get update

Comments