I'm using CentOS6.x with yum-3.2.29-81, curl/libcurl 7.19.7-53 and have this same issue. I have yum servers behind a firewall and want to use yum over a SOCKS5 proxy setup using ssh.
Try this guide to receive $20 at signup on a new account.
Contribute on GitHub
Report an Issue |View File |Edit File
Shadowsocks is a lightweight SOCKS5 web proxy tool primarily utilized to bypass network censorship and blocking on certain websites and web protocols. A full setup requires a Linode server to host the Shadowsocks daemon, and a client installed on PC, Mac, Linux, or a mobile device. Unlike other proxy software, Shadowsocks traffic is designed to be both indiscernible from other traffic to third-party monitoring tools, and also able to disguise itself as a normal direct connection. Data passing through Shadowsocks is encrypted for additional security and privacy.
Since there is currently no Shadowsocks package available for Ubuntu or CentOS, this guide shows how to build Shadowsocks from source.
Before You Begin
Install the Shadowsocks ServerDownload Source Code and Dependencies
Configure the Shadowsocks Server
shadowsocks.json Breakdown
Optimize Shadowsocks
Apply the following optimizations to your system kernel to provide for a smooth running Shadowsocks installation.
Create a Shadowsocks Systemd Service
The Shadowsocks systemd service allows the daemon to automatically start on system boot and run in the background.
Open Firewall Port for Shadowsocks Client
Depending on your preference, you may use either the iptables, UFW, or firewalld (CentOS 7 only) commands to complete this section.
Open port
8388 for the Shadowsocks Client:
Iptables
UFW
FirewallD
Install a Shadowsocks Client
The second stage to a Shadowsocks setup is to install a client on the user’s device. This could include a computer, mobile device, tablet, and even home network router. Supported operating systems include Windows, macOS, iOS, Linux, Android, and OpenWRT.
macOS Shadowsocks Client
Windows Shadowsocks Client
Where to Go from Here
Once your Shadowsocks server is online, configure a client on your mobile phone, tablet, or any other devices you use. The Shadowsocks client download page supports all mainstream platforms.
More Information
You may wish to consult the following resources for additional information on this topic. While these are provided in the hope that they will be useful, please note that we cannot vouch for the accuracy or timeliness of externally hosted materials.
Join our Community
Please enable JavaScript to view the comments powered by Disqus.comments powered by Disqus
This guide is published under a CC BY-ND 4.0 license.
In most of the data center direct Internet connection is not allowed on Unix and Windows Servers. If we need to download anything from Internet we have to go through via some proxy servers. In case of Linux Servers whenever we need to install new packages and apply patches in such scenarios we have to set proxy for yum command.
![]()
This can be easily achieved with yum config file “/etc/yum.conf“. Under main section define the proxy settings like below:
Save and exit the file and start using the yum command. Sample yum Config file with proxy settings is shown below :
Just for the verification you can run beneath command to see whether you are able to fetch the packages or not.
Alternate way to configure proxy settings for yum command
Set the following variables in either of the file “/etc/environment” or “/root/.bashrc”
Above proxy settings will be applicable system wide.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |