nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Cannot connect to Internet

This is a discussion on Cannot connect to Internet within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi all, I am using RHEL 5.0 toa act as a firewall server. I can ping any sites but ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-08-2008, 05:54 PM
Junior Member
User
 
Join Date: Apr 2008
My distro: CentOS and RHEL
Posts: 15
mvibin is on a distinguished road
Unhappy Cannot connect to Internet

Hi all,

I am using RHEL 5.0 toa act as a firewall server. I can ping any sites but the problem is whenever i tried to use wget, for eg;

wget http://64.124.52.228:80, then it says

Connecting to 64.124.52.228:80... failed: Connection timed out.
Retrying.
--23:01:27-- (try: 2) http://64.124.52.228/
Connecting to 64.124.52.228:80... failed: Connection timed out.
Retrying.
--23:04:38-- (try: 3) http://64.124.52.228/
Connecting to 64.124.52.228:80... failed: Connection timed out.
Retrying.
--23:07:50-- (try: 4) http://64.124.52.228/
Connecting to 64.124.52.228:80... failed: Connection timed out.
Retrying.
--23:11:03-- (try: 5) http://64.124.52.228/
Connecting to 64.124.52.228:80...

I am using the same server as a Proxy server too. It uses port number 3128. Is there anything to be done with the iptables ?? If this is because of port number then how can i change the default port number to 3128??

Please help me ..... Thanking you all in advance ....
Reply With Quote
  #2 (permalink)  
Old 05-08-2008, 08:44 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 838
nixcraft is an unknown quantity at this point
Default

Are you using proxy server?
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 05-09-2008, 04:04 PM
Junior Member
User
 
Join Date: Apr 2008
My distro: CentOS and RHEL
Posts: 15
mvibin is on a distinguished road
Exclamation Re

Thanks ... I am using this server as a proxy server as well as a Firewall. I am using Squid service on this machine itself. Please provide some solution ....
Reply With Quote
  #4 (permalink)  
Old 05-09-2008, 06:26 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 838
nixcraft is an unknown quantity at this point
Default

Some site down allows to open website via a IP address. So use FQDN i.e. domain name such as google.com

Type following for proxy server
Code:
export  http_proxy=http://proxy_server:port/
export  http_proxy=http://192.168.1.254:3128/
If proxy server uses user and password, try

Code:
wget --proxy-user=USERNAME --proxy-password=PASSWORD http://google.com/
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #5 (permalink)  
Old 05-12-2008, 11:24 AM
Junior Member
User
 
Join Date: Apr 2008
My distro: CentOS and RHEL
Posts: 15
mvibin is on a distinguished road
Question Re

Thanks for ur kind reply,

The actual problem is whenever i try to connect to internet, by default the machine tries to access net through port number 80. But in my other machine, i can connect to internet through port 80 which is in the same LAN. I think there is some problem with the default settings, i want to know where can i change it? Please help me out ...
Reply With Quote
  #6 (permalink)  
Old 05-12-2008, 03:40 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 838
nixcraft is an unknown quantity at this point
Default

Did you added above settings to /etc/profile? If you are using Firefox go to Edit > Preferences > Advanced tab > Network > Settings > Add proxy server ip and port > save the changes.
Attached Images
File Type: jpg firefoxproxy.jpg (15.4 KB, 3 views)
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #7 (permalink)  
Old 05-15-2008, 01:04 PM
Junior Member
User
 
Join Date: Apr 2008
My distro: CentOS and RHEL
Posts: 15
mvibin is on a distinguished road
Thumbs up Re

Ok Thanks .. its working now .. thanks a lot for ur help ..
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Internet problems norm134c Getting started tutorials 2 03-25-2008 12:20 AM
Problem on making Guest OS to allow Internet get in satimis Computer Networking and Internet/broadband 0 01-31-2008 09:51 AM
How to setup internet connection in Linux sunilerp Computer Networking and Internet/broadband 3 11-28-2007 07:08 PM
squid problem cannot connect or browse internet raghuram Linux software 2 03-27-2007 09:31 PM
cut internet from ip in network Linux software 1 01-09-2006 10:36 AM


All times are GMT +5.5. The time now is 12:46 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30