Proxy on Ubuntu for Fog
Hi, I am complete newb with *nix. I am aiming to use FOG to help image several machines. I've installed Ubuntu on a 5 year old machine, and it's running fine. I've given it a static IP, and I can ping other computers on the network, and access resources on our Win2k server/XP client school network.
However, I can't seem to access the internet at all from the Ubuntu machine. The proxy settings have been set both in Ubuntu (System Wide) and in Firefox. I've also rebooted the machine, and didn't make any difference.
Can anyone help me out, or point me in a good direction? I've search on google and can't really find anything that's helpful to me.
could you supply the results of the following
and maybe i can help
Thanks jmcdermott, will do this tomorrow and post on the forum.
Hi, the responses from the commands are as follows:
eth0 Link encap:Ethernet HWaddr 00:0c:f1:7e:8d:e9
inet addr:10.199.224.80 Bcast:10.199.231.255 Mask:255.255.248.0
inet6 addr: fe80::20c:f1ff:fe7e:8de9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17459 errors:0 dropped:0 overruns:0 frame:0
TX packets:9807 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:1827763 (1.8 MB) TX bytes:12594487 (12.5 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:248 errors:0 dropped:0 overruns:0 frame:0
TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:19592 (19.5 KB) TX bytes:19592 (19.5 KB)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.199.224.0 0.0.0.0 255.255.248.0 U 1 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 10.199.224.1 0.0.0.0 UG 0 0 0 eth0
Thanks in advance. BTW, the WIN2k server is 10.199.224.16, subnet 255.255.248.0. Static IP of the ubuntu server 10.199.224.80. proxy port 3129, cache.hants.gov.uk
2 possibilties apear:
assuming 10.199.231.255 is your router/default gateway, it is not showing up as a route.
to test this try the following
route add default gw 10.199.231.255 eth0.
assuming 10.199.224.1 is your router/default gateway, the default gateway is not correctly configured in you network settings.
Hope this helps
ps. should your proxy port not be 8080?
I tried 'route add default gw 10.199.231.255 eth0'
and got 'SIOCADDRT: Operation not permitted'. Any thoughts?
How can I find out what the default gateway is on Win2k?
Thanks for your help.
sorry that should have been
sudo route add
Sorry, moment of relapse. Running ipconfig on server gets:
Physical Address. . . . . . . . . : 00-0C-F1-7E-6A-3A
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.199.224.16
Subnet Mask . . . . . . . . . . . : 255.255.248.0
Default Gateway . . . . . . . . . : 10.199.224.1
DNS Servers . . . . . . . . . . . : 10.199.224.16
When adding sudo, I get this reply:
SIOCADDRT: No such process
very strange how did you go about setting a static ip, does the web work if you use dhcp?
thanks cools and jmc. I.ll check out the link and report back.
Jmc- i set the static ip in preferences - network- then on eth0 set the ip, subnet and gateway, and rebooted. Can ping the machine from others pcs, and ping other pcs from the machine. does this help?
Thanks for your continuing help
i spent a while searching through ubuntu forums myself recently for internet problems from behind our schools proxy, i was attempting anything from updates to just a straight internet connection, and failing might i add.
I know its basic, but have you tried to export the proxy through your .bashrc file?
e.g - export http_proxy="http://proxyaddress : port"
found that cured my problems!
thanks tmbenson- can you give me a little more detailed instructions on how to do this? Still finding my way around!
Thanks in advance.
depending on the proxy, you may need your credentials, but i managed it without in Ubuntu.
Firstly you need to locate your .bashrc file,
try this in terminal:
gksudo gedit /etc/apt/bashrc
If this fails first find the location of the file and then use gksudo to edit it.
Once you have found your .bashrc file just add a proxy export at the end of it, for both Http and Ftp.
code as follows:
save the file and close it.
Depending on which account you are using you MAY also have to find the .profile file in /etc/apt and add the same script to that.
Hope this helps!