Questions tagged [proxy]

A proxy is a program that acts as an intermediary in connections between a client and server. There can be proxies for any communication protocol: HTTP, SSH, …

624 questions
61
votes
4 answers

Unable to add gpg key with apt-key behind a proxy

Adding a gpg key via apt-key systematically fails since I've switched to Ubuntu 17.04 (I doubt it's directly related though). Example with Spotify's repo key: $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys…
Anto
  • 771
  • 2
  • 6
  • 13
60
votes
7 answers

How to use socks proxy for commands in Terminal such as youtube-dl?

I connect to a remote ssh server by running this command: ssh -D 12345 [email protected] This creates a socks proxy that I can use with Firefox to bypass censorship in my country. However, I can't take advantage of it to in the command line. Let's…
user1098135
  • 603
  • 1
  • 6
  • 5
37
votes
3 answers

What tool can I use to sniff HTTP/HTTPS traffic?

I'm looking for a command line tool that can intercept HTTP/HTTPS requests, extract information such as: (content, destination, etc.), perform various analysis tasks, and finally determine if the request should be dropped or not. Legal requests must…
slm
  • 363,520
  • 117
  • 767
  • 871
30
votes
1 answer

How does a transparent SOCKS proxy know which destination IP to use?

There are two SOCKS proxies that I know about that support transparent proxying for any outgoing TCP connection: Tor and redsocks. Unlike HTTP proxies, these SOCKS proxies can transparently proxy any outgoing TCP connection, including encrypted…
hololeap
  • 643
  • 1
  • 5
  • 9
29
votes
3 answers

How to flush local DNS cache in CentOS

I'm looking for a way to flush the local DNS cache on a CentOS 6. The system is not running any DNS server or anything, and I wish to let every DNS query go out to the configured nameserver, even for the duplicate ones. Most of what I found online…
fy_iceworld
  • 391
  • 1
  • 3
  • 4
28
votes
3 answers

Serve Internet to remote machine via SSH session?

The machine via which I'm SSHing to the remote/host machine (same network/LAN) has access to the Internet but the host doesn't. Running updates and installing packages on the host gets quite inconvenient because then I have to start a proxy locally…
Bleeding Fingers
  • 971
  • 3
  • 12
  • 23
26
votes
1 answer

SOCKS5 is there encryption between client and proxy server?

I've read the wikipedia article on socks and cannot find information about encryption between client and proxy-server. There is only information about authentication. Is socks5 connection a plain-text?
user64528
  • 263
  • 1
  • 3
  • 4
25
votes
4 answers

On-demand SSH Socks proxy through systemd user units with socket-activation doesn't restart as wished

To reach an isolated network I use an ssh -D socks proxy. In order to avoid having to type the details every time I added them to ~/.ssh/config: $ awk '/Host socks-proxy/' RS= ~/.ssh/config Host socks-proxy Hostname pcit BatchMode yes …
Alex Stragies
  • 5,857
  • 2
  • 32
  • 56
19
votes
4 answers

How do I set systemwide connection over a proxy server

My Internet access is through a proxy, my OS is Debian 8, each application must configure it to use the proxy, but there are some that are a headache to make it work with a proxy, then my question is: is there any way or a program to send all my…
rpayanm
  • 559
  • 4
  • 9
  • 17
18
votes
1 answer

Have ssh resolve hostnames from config when using ProxyCommand and netcat mode

I'm attempting to set up some universal options for bouncing ssh connections. Here is my ~/.ssh/config file, abbreviated: Host *%via ProxyCommand ssh gateway -W $(echo %h | cut -d%% -f1) %p Host gateway HostName gateway.example.com User…
Joshua Hogendorn
  • 283
  • 1
  • 2
  • 5
18
votes
2 answers

How to telnet via proxy authentication?

I am behind a proxy server in my college. It uses a simple username and password authentication. And i connect to the proxy server to port 3128. now i want to telnet simply to say any website on the internet like $ telnet www.google.com 80 this…
Aakash Sigdel
  • 183
  • 1
  • 1
  • 5
18
votes
2 answers

Proxy (nginx) shows a Bad gateway error

I have a service (docker registry) that runs on port 5000, I have installed nginx to redirect http request from 8080 to 5000. If I make a curl to localhost:5000 it works, but when I make a curl to localhost:8080 I get a Bad gateway error. nginx…
stecog
  • 2,221
  • 10
  • 29
  • 39
17
votes
1 answer

Disable SSH tunnel "open failed" messages

I want to disable the "open failed" messages that appear in a SSH session when tunnelling is disable. It interferes with my SSH session if I'm, for example, writing something in vim, then the whole screen can be filled with these messages and I have…
Simon Fredsted
  • 623
  • 6
  • 11
16
votes
3 answers

Set Ubuntu System Proxy Settings without Restart from commandline

I am using Ubuntu 14.04 . I want to change the http proxy settings from the command line. This should be equivalent to changing in the GUI(All Settings->Network->Network Proxy) and clicking the button Apply System Wide. I don't want to…
ma08
  • 845
  • 2
  • 7
  • 19
15
votes
2 answers

How to make netcat use an existing HTTP proxy

I can access a web page just fine by directly hitting my web server as follows: $ echo "GET /sample" | nc web-server 80 This is contents of /sample... $ Now, I would like netcat to go via a Squid HTTP proxy (listening on port 3128), much like I can…
Harry
  • 802
  • 2
  • 9
  • 21
1
2 3
41 42