+ Post New Thread
Results 1 to 8 of 8
*nix Thread, Debian server through proxy in Technical; Hi, I am *trying* to set up a Debian server to act as a dedicated Xibo server (don't ask - ...
  1. #1
    basicchannel's Avatar
    Join Date
    May 2010
    Location
    Norfolk, UK
    Posts
    279
    Thank Post
    36
    Thanked 23 Times in 15 Posts
    Blog Entries
    1
    Rep Power
    23

    Debian server through proxy

    Hi,

    I am *trying* to set up a Debian server to act as a dedicated Xibo server (don't ask - I just wanted to find an excuse to fiddle with a Debian server in work). I am having real issues with getting it to access the outside world through our proxy server. After doing extensive searches on the net, most only deal with setting up a Debian server as a proxy server, not setting it up so it can go through one.
    I have tried export HTTP_PROXY="http://xx.xx.xxx.xx:8000", and I've also tried putting it directly in the wgetrc file (as suggested by a website) but pings still return 'Packet Filtered', ,and wget commands fail miserably.

    Any help would be much appreciated.

    After inputting the command route -n, I have noticed the destination and gateway addresses are wrong. Would this affect the above, and how do I rectify this?

    Thanks in advance

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Quote Originally Posted by basicchannel View Post

    After inputting the command route -n, I have noticed the destination and gateway addresses are wrong. Would this affect the above, and how do I rectify this?

    Thanks in advance
    it would if the proxy is on a different subnet
    edit /etc/network/interfaces

    my /etc/wgetrc says
    Code:
    https_proxy = http://192.168.92.102:8080/
    http_proxy = http://192.168.92.102:8080/ 
    ftp_proxy = http://192.168.92.102:8080/

  3. Thanks to CyberNerd from:

    basicchannel (21st February 2012)

  4. #3

    glennda's Avatar
    Join Date
    Jun 2009
    Location
    Sussex
    Posts
    7,821
    Thank Post
    272
    Thanked 1,140 Times in 1,036 Posts
    Rep Power
    350
    If the proxy needs auth then it needs to be
    PHP Code:
    http://user:password@ip:port/ 
    Last edited by glennda; 21st February 2012 at 02:02 PM.

  5. #4


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    you will also want this in /etc/apt.conf

    Code:
    Acquire::http::proxy "http://192.168.92.102:8080/";
    Acquire::ftp::proxy "ftp://192.168.72.92:8080/";
    Acquire::https::proxy "https://192.168.92.102:8080/";

  6. #5

    3s-gtech's Avatar
    Join Date
    Mar 2009
    Location
    Wales
    Posts
    2,927
    Thank Post
    155
    Thanked 605 Times in 544 Posts
    Rep Power
    160
    Using VIM or similar, set the above to get apt working from a terminal session. Have you set a static IP? That'll be useful too, so using VIM again:

    # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

    # The loopback interface
    auto lo
    iface lo inet loopback

    # The first network card - this entry was created during the Debian installation
    # (network, broadcast and gateway are optional)
    auto eth0


    iface eth0 inet static
    address 192.168.1.10 (your choice here)
    netmask 255.255.255.0 (as above)
    network 192.168.1.0 (as above)
    broadcast 192.168.1.255 (as above)
    gateway 192.168.1.1 (as above)

  7. #6
    basicchannel's Avatar
    Join Date
    May 2010
    Location
    Norfolk, UK
    Posts
    279
    Thank Post
    36
    Thanked 23 Times in 15 Posts
    Blog Entries
    1
    Rep Power
    23
    Quote Originally Posted by CyberNerd View Post
    you will also want this in /etc/apt.conf
    Am I right in thinking it's now /etc/apt/apt.conf.d/70debconf ?

  8. #7
    basicchannel's Avatar
    Join Date
    May 2010
    Location
    Norfolk, UK
    Posts
    279
    Thank Post
    36
    Thanked 23 Times in 15 Posts
    Blog Entries
    1
    Rep Power
    23
    Quote Originally Posted by CyberNerd View Post
    it would if the proxy is on a different subnet
    edit /etc/network/interfaces

    my /etc/wgetrc says
    Code:
    https_proxy = http://192.168.92.102:8080/
    http_proxy = http://192.168.92.102:8080/ 
    ftp_proxy = http://192.168.92.102:8080/
    Legend! I appeared to have missed out some important information here (ahem...)

    Thanks to all

  9. #8
    januttall's Avatar
    Join Date
    Sep 2010
    Posts
    225
    Thank Post
    17
    Thanked 28 Times in 28 Posts
    Blog Entries
    1
    Rep Power
    14
    FYI. if you have more than one interface and IF you have set (even by DHCP) more then one gateway address. it wont be able to access the internet as it gets stuck with the default gateway, even if both networks go to the internet.
    Solution: set all but mabe one interface to static adresses (not dynamic [DHCP]) and dont provide a gateway address for any more then one interface (with internet) as it will cause issues.

SHARE:
+ Post New Thread

Similar Threads

  1. Exposing an email server through Smoothwall for external access
    By Dickens in forum Internet Related/Filtering/Firewall
    Replies: 2
    Last Post: 24th March 2010, 05:36 PM
  2. [CLOSED] Layout Issue: EduGeek through proxy
    By OverWorked in forum EduGeek.net Site Problems
    Replies: 23
    Last Post: 28th October 2009, 10:51 AM
  3. Google Earth can't run through proxy?
    By speckytecky in forum How do you do....it?
    Replies: 8
    Last Post: 24th August 2009, 11:11 AM
  4. Replies: 8
    Last Post: 18th July 2008, 02:34 PM
  5. Students accessing the Servers through Word
    By ninjabeaver in forum Windows
    Replies: 33
    Last Post: 3rd February 2006, 04:43 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •