LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-12-2013, 11:13 AM   #1
prabahar87
LQ Newbie
 
Registered: Aug 2011
Location: India
Distribution: Redhat
Posts: 10

Rep: Reputation: Disabled
Client Machine Ping command not wrking


Hi

I am using redhat 6 64bit server OS in my concern. I am configure squid proxy server. My interconnection is dhcp connectioned ip address and i am changed to static ip address using squid proxy.
For Example: i am getting dhcp connection from Ethernet eth0 (192.168.1.1) for input and sending information to another Ethernet eth1 (192.168.0.1) for output to my client machine like Xp.
My problem is i can't ping google or some other websites using cmd prompt.But internet was working properly
And also used iptables entry i post below please tell right way to rectify this problem


*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i eth1 -p all -s 192.168.0.254/24 -j ACCEPT
#-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# allow certain inbound ICMP types (ping, traceroute..
-A INPUT -i eth0 -p icmp --icmp-type destination-unreachable -j ACCEPT
-A INPUT -i eth0 -p icmp --icmp-type time-exceeded -j ACCEPT
-A INPUT -i eth0 -p icmp --icmp-type echo-reply -j ACCEPT
-A INPUT -i eth0 -p icmp --icmp-type echo-request -j ACCEPT
#Common ICMP (PING) Match Criteria
-A OUTPUT -p icmp --icmp-type echo-request -j ACCEPT
-A INPUT -p icmp --icmp-type echo-reply -j ACCEPT
#Enable Ping Request
-A INPUT -p icmp --icmp-type 8 -s 0/0 -d 192.168.0.254 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
-A OUTPUT -p icmp --icmp-type 0 -s 192.168.0.254 -d 0/0 -m state --state ESTABLISHED,RELATED -j ACCEPT

COMMIT
 
Old 01-12-2013, 11:37 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by prabahar87 View Post
Hi
I am using redhat 6 64bit server OS in my concern. I am configure squid proxy server. My interconnection is dhcp connectioned ip address and i am changed to static ip address using squid proxy.

For Example: i am getting dhcp connection from Ethernet eth0 (192.168.1.1) for input and sending information to another Ethernet eth1 (192.168.0.1) for output to my client machine like Xp. My problem is i can't ping google or some other websites using cmd prompt.But internet was working properly
And also used iptables entry i post below please tell right way to rectify this problem
Right...and you essentially posted this question before:
http://www.linuxquestions.org/questi...le-4175445095/

Again...squid is a proxy for HTTP...NOT ICMP. Therefore, if squid is in place between your workstations and the internet, the only thing squid is going to allow through is HTTP traffic. Allowing ICMP packets through a server to the Internet is a bad idea.

This has some suggestions, which seem a good bit simpler than what you've posted:
http://www.cyberciti.biz/tips/linux-...icmp-ping.html
 
Old 01-12-2013, 11:53 AM   #3
prabahar87
LQ Newbie
 
Registered: Aug 2011
Location: India
Distribution: Redhat
Posts: 10

Original Poster
Rep: Reputation: Disabled
I already used the the below link.. anyway thanks for your inforamtion


Quote:
Originally Posted by TB0ne View Post
Right...and you essentially posted this question before:
http://www.linuxquestions.org/questi...le-4175445095/

Again...squid is a proxy for HTTP...NOT ICMP. Therefore, if squid is in place between your workstations and the internet, the only thing squid is going to allow through is HTTP traffic. Allowing ICMP packets through a server to the Internet is a bad idea.

This has some suggestions, which seem a good bit simpler than what you've posted:
http://www.cyberciti.biz/tips/linux-...icmp-ping.html
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I am not able to ping windows machine through my virtual redhat linux machine which vasant1984 Linux - Newbie 2 04-25-2012 10:46 AM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
not able to ping a machine but can do ssh to machine , wanna run vnc client amolgupta Linux - Software 4 07-28-2009 05:17 PM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM
I can ping google.com successfully,but ping client(in my intranet) failed.Why? whepin Linux - Newbie 4 12-30-2001 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration