*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 - ...
21st February 2012, 02:49 PM #1
Debian server through proxy
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
21st February 2012, 02:57 PM #2
it would if the proxy is on a different subnet
Originally Posted by basicchannel
my /etc/wgetrc says
https_proxy = http://192.168.92.102:8080/
http_proxy = http://192.168.92.102:8080/
ftp_proxy = http://192.168.92.102:8080/
Thanks to CyberNerd from:
basicchannel (21st February 2012)
21st February 2012, 03:00 PM #3
If the proxy needs auth then it needs to be
Last edited by glennda; 21st February 2012 at 03:02 PM.
21st February 2012, 03:01 PM #4
you will also want this in /etc/apt.conf
21st February 2012, 03:12 PM #5
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
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
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)
21st February 2012, 03:17 PM #6
Am I right in thinking it's now /etc/apt/apt.conf.d/70debconf ?
Originally Posted by CyberNerd
21st February 2012, 03:25 PM #7
Legend! I appeared to have missed out some important information here (ahem...)
Originally Posted by CyberNerd
Thanks to all
27th February 2012, 11:35 AM #8
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.
By Dickens in forum Internet Related/Filtering/Firewall
Last Post: 24th March 2010, 06:36 PM
By OverWorked in forum EduGeek.net Site Problems
Last Post: 28th October 2009, 11:51 AM
By speckytecky in forum How do you do....it?
Last Post: 24th August 2009, 12:11 PM
By cuke2u in forum MIS Systems
Last Post: 18th July 2008, 03:34 PM
By ninjabeaver in forum Windows
Last Post: 3rd February 2006, 05:43 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)