🤓
TurvSec Wiki
  • 👨‍💻Who is Mr Turvey
  • Blogs and Notes
    • Techie Blogs
      • Troubleshooting Nessus
      • Bypassing CAPTCHA
      • How to Proxy Linux Traffic
    • Miscellaneous Blogs
      • PSD2 and Open Banking
      • Cheap Pen Testing
      • Top 10 Pen Testing Tools
      • Scoping Web Applications
  • Web App Testing
    • 🌍Content Discovery
      • 🔎Subdomain Enumeration
      • 📃Dir & Page Enumeration
    • 💉Injections
      • CSV Injection
    • 🕸️JSON WEB TOKENS
    • 🔏Testing SSL/TLS
    • 📮Testing APIs with POSTMAN
  • Offensive Security
    • 🎣Phishing with Evilginx2
    • 🔐WPA2 Cracking
  • Physical Security
    • 👨‍✈️Social Engineering
  • Tools
    • Burp2API - BurpSuite to JSON
    • allthewayback - Search Wayback
    • Thicc - Thick App Testing Aid
Powered by GitBook
On this page
  • Session-Only Proxy
  • Constant Proxy
  1. Blogs and Notes
  2. Techie Blogs

How to Proxy Linux Traffic

Setup a HTTP, HTTPS or FTP proxy for your Linux cmd

When you are using Linux or more specifically, tools you have downloaded from GitHub. You might find yourself in the annoying situation where you need to proxy the tool to another computer.

For example, if you're using Kali Linux to run the tool but your Burp Suite is installed on Windows.

Well, here's the solution to your troubles

Session-Only Proxy

These 'export' commands will remain valid for the entire time you have the console open:

$ export http_proxy="http://PROXY_SERVER:PORT"
$ export https_proxy="https://PROXY_SERVER:PORT"
$ export ftp_proxy="http://PROXY_SERVER:PORT"

When you close your console, these will no longer be set.

Constant Proxy

If you need your proxy to be constantly running, these are the files you can use to set that:

/etc/bash.bashrc

export http_proxy=http://proxy.thegeekdiary.com:8080/
export ftp_proxy=http://proxy.thegeekdiary.com:8080/
https_proxy=http://proxy.thegeekdiary.com:8080/

/etc/apt/apt.conf

Acquire::http::Proxy "http://[proxy-server-ip-or-dns-name]:[Port-Number]";
Acquire::https::Proxy "http://[proxy-server-ip-or-dns-name]:[Port-Number]";
Acquire::ftp::Proxy "http://[proxy-server-ip-or-dns-name]:[Port-Number]";

PreviousBypassing CAPTCHANextMiscellaneous Blogs

Last updated 2 years ago