Computing.Net > Forums > Linux > That proxy again

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

That proxy again

Reply to Message Icon

Name: Tommy in Scotland
Date: January 2, 2006 at 18:27:06 Pacific
OS: Suse 9.3Pro
CPU/Ram: Celeron 566MHz / 256MB
Comment:

This is further to my earlier message where I told of how I was trying to set up my system to access online update through a proxy, which is a Win98 PC running CCProxy with an IP address of 192.168.0.5. On my Suse PC I added this address in the Proxy applet within Yast2 and enabled it. I then pasted the line I was given "# route add -net default gw 192.168.0.5 netmask 0.0.0.0 metric 1" into /sbin/route/ using Konsole, but I still get "Empty reply from server" when I try to access online update. I'm not sure where to go from here, as wget accesses the proxy details from Yast2's proxy applet. One thing though, there is nowhere in the Yast2 proxy applet to specify the port numbers... CCProxy uses unusual port numbers, like 808 instead of 8080. Is this a possible cause of the connection failure? I'm sure there must be a simple way through as Firefox performs flawlessly on the Internet.

Tommy.



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: January 11, 2006 at 04:20:50 Pacific
Reply:

"...I then pasted the line I was given "# route add -net default gw 192.168.0.5 netmask 0.0.0.0 metric 1" into /sbin/route/ using Konsole..."
How exactly did you do this?

Bring up a konsole. You should be presented with a "$". No need to type this in the command below, it just indicates a user prompt.

Switch to root:
$ su
enter root's password
The "$" should now change to a "#" to indicate a root prompt. Again there is no need to type the # in the commands below, just what's in bold.

Check your current gateway
# /sbin/route
This should bring up an output similar to:
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo

As above you probably have a localnet and loopback, now time to add a default:
# /sbin/route add -net default gw 192.168.0.5 netmask 0.0.0.0 metric 1

Now if you issue another "/sbin/route" command there should be another entry:
default 192.168.0.5 0.0.0.0 UG 1 0 0 eth0

Providing that you have valid DNS servers in your /etc/resolv.conf and that you are also allowing ICMP through your firewall you should now be able to ping google:
$ ping www.google.com


Hang on a sec....after typing all that are you sure that CCProxy can act as a gateway? If you cannot get a direct connection to the net then you may have to export variables like HTTP_PROXY instead. Try the following:

Edit /etc/wgetrc and find the lines that read:
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/
Change them to:
http_proxy = http://192.168.0.5:808/
ftp_proxy = http://192.168.0.5:808/

Type:
$ export HTTP_PROXY="http://192.168.0.5:808/"

Then try running YOU again.


0

Response Number 2
Name: Tommy in Scotland
Date: January 11, 2006 at 15:13:25 Pacific
Reply:

Hi 3Dave,
thank you for your help again. I have edited my wgetrc file, but I still get this message: http://www.suse.de/cgi-bin/suseservers.cgi
Empty reply from server. I am not using DNS and have no firewall. My resolv.conf file is empty. A ping to Google failed, even though I still have two way net access on Firefox and Konqueror. I can download files and browse websites, so the proxy connection is OK. Since I wrote my previous posting, I went onto the Suse website, but the URL of the site has been changed... it is no longer www.suse.de. I get redirected to www.novell.com/linux/suse/select.html. It is possible that the online update url may also have been changed. However I don't know if that is the reason.

Tommy.


0

Response Number 3
Name: 3Dave
Date: January 12, 2006 at 02:54:34 Pacific
Reply:

"...My resolv.conf file is empty..."
You should have your name servers in there. The format should be:
search .
nameserver 158.43.240.3
nameserver 158.43.240.4

The above DNS servers are Pipex ones, you could use those, select your own ISPs or possibly point it to 192.168.0.5 if your windoze box can forward DNS.

Did you export http_proxy="http://192.168.0.5:808/" too? You can see if the variable is there with the "set" command, the output can be quite long so:
$ set | less
NB you have to have the "/" at the end for it to work.

Just checked the URL http://www.suse.de/cgi-bin/suseservers.cgi and it appears to work OK.

Here are some links for you:
http://susefaq.sourceforge.net/faq/you.html#you_proxy

An alternative to YOU is Fou4s:
http://fou4s.gaugusch.at/


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: That proxy again

Proxy Server with Netscape/Mozilla www.computing.net/answers/linux/proxy-server-with-netscapemozilla/16761.html

Advice needed www.computing.net/answers/linux/advice-needed/23009.html

Linux box in Network Neighborhood www.computing.net/answers/linux/linux-box-in-network-neighborhood/9265.html