• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Proxy in linux

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IS there any way to configure the proxy to access the internet in linux without using the browser. Reason is i want to connect to ftp via console from my linux system, how can i use it with http proxy configured via webbrowser?
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What proxy are you using? All a proxy does is say that traffic coming in on port x gets forwarded to destination y. It should be possible to forward FTP requests.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perhaps you should consider using a tool like wget, for which is easy to configure proxys. If you need a username / password for your proxy then wget supports them as well.
 
Arvind Subramanian
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Andrew,
But is there any universal way to set or configure that proxy host and port to linux machine such that i dont need to configure that in every application.(a place like in /etc/profile)
 
Andrew Monkhouse
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The link I provided showed how to set an environmental variable that wget understands and other applications may do as well¹. As such, you could easily put that environmental variable into your /etc/profile file(s).

Note ¹: It is up to individual applications whether to handle such "advisory" environmental variables. If the application chooses not to do anything with the advice, you may be stuck².

Note ²: I suppose you might be able to get around such a problem by creating your own Socks proxy (which would then point to the real proxy) on the Linux client box, and then "SOCKify" the command line application to force it to use your Socks proxy. Personally I would not do this - I would ensure that I used a command line tool that uses the main proxy from the beginning.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic