LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-23-2001, 02:01 PM   #1
Mega^Deth
LQ Newbie
 
Registered: Dec 2001
Location: Israel
Posts: 3

Rep: Reputation: 0
a question about pinging with a proxy


Hello,

I have an internet connection on a computer with windows, the linux takes the internet from it with a proxy, with the program winproxy, when I ping I cant use a proxy, and therefor I cant ping because without a proxy, there is no internet,so, how can I ping using a proxy server ?
 
Old 12-24-2001, 08:41 AM   #2
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
About pinging using proxy

Hi ,

Let me clarify a few things first ....
When ur using proxy ( i assume its squid) ur using http protocol whereas when pinging someone ur using icmp protocol .... u got the picture ? u cant ping from a proxy unless under below mentioned circumstances :

1. Ur proxy does ip forwarding .... that is simply forwards ur request to the external server (and not proxy/cache ) without bringing http protocol into picture.

2. U can use ip masquerading fetaure ..... u might need to downlaod appropriate ipmasquerade module to do that.

ipforwarding is done certain modification in one of the files in /proc directory whereas for ipmasquerade u need to go on internet and read some docs .

Hope this puts u in right track.

Regards ,
Xanthium.
 
Old 12-24-2001, 01:53 PM   #3
Mega^Deth
LQ Newbie
 
Registered: Dec 2001
Location: Israel
Posts: 3

Original Poster
Rep: Reputation: 0
Question well....

so, how can I share icmp ?
 
Old 12-25-2001, 09:21 AM   #4
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Hmmmmm

Hi ,

I guess u didnt take efforts to study more about ipmasquerade and ipforwarding .

Assuming ur new to linux community i will try to help (If i can).

As i told with ip forwarding u dont need any proxy installed on ur linux box. Ur clients simply need to mention ur linux box as the default gateway and ur linux box will simply forward the requests
to external world.... the downside side is that the http pages wont be cached and users might use heavy apps like napster, icq and so on ......

IP forwarding on RedHat :
echo "1" > /proc/sys/net/ipv4/ip_forward

NOTE: Check for the exsistence of the file and then put the command in any of the startup files. Also i dont know how to do this on non RedHat machines.


Now u should use ip masquerade software. It supports ICMP masquerade.
so whenever ur clients send icmp packet ( PING) it will substitute its own address insted of the client and vice versa. Hope this clears.

Still in doubt try searching internet for what i have mentioned above. Try reading ip masquerading howto on www.linuxdoc.org.


OR IF NOTHING WORKS ------>
check out a software called ipautofw .... i havent tried it myself so
try ur luck.


Feel free to contact if u arent able to ping ..... but try reading the online docs about ipmasquerading first and try out things urself.


Regards,
Xanthium.
 
Old 12-25-2001, 09:38 AM   #5
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Sorry Sorry

Hi ,

I guess this is rather embarassing but i how to admit that i replied hastily to ur post. Ur getting ur internet from a windows running winproxy ( and i thought it was the other way around).

SORRY SIR but there is no way ur linux box or any other client can ping external world with winproxy as the proxy s/w.WinProxy will not allow ICMP packets - including ping and tracert - to pass through the proxy in either direction. However WinProxy allows telnet to non-standard ports.


Sorry for the wrong info i provided.


Thanks.
 
Old 12-26-2001, 08:04 AM   #6
cheezwhiz
LQ Newbie
 
Registered: Dec 2001
Posts: 4

Rep: Reputation: 0
Got the same question as Mega^Deth.
So does anyone knows which proxy does have this feature ?
I looked at several proxies at Tucows but none of them mention icmp.
 
Old 12-26-2001, 10:49 AM   #7
Mega^Deth
LQ Newbie
 
Registered: Dec 2001
Location: Israel
Posts: 3

Original Poster
Rep: Reputation: 0
xanthium....

xanthium Hello,

you already told me I cant do it with winproxy,
so with which software can I ?
 
Old 12-27-2001, 09:37 AM   #8
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Smelly SOCKS!!!!!

Hi ,

Iam not much into windows based environment. But i guess You may want to try the HummingBird SOCKS Client, AutoSOCKS, or SocksCAP, which are firewall traversal applications that transparently "socks-ify" Windows-based TCP/IP applications, letting them work behind proxy servers.
As such this provide u with "socks-ified" ping utility which u can use to ping outside world ..... however u CANNOT use the ping utility provided with Linux or Windows. You need to use
the "socks-ified" ping utility ONLY.

or maybe you can try send ICMP packets on and Internet Sharing Solution using Network Address Translation (NAT). WinGate 4.0.1 with the ENS plug-in makes use of NAT and will allow the client computers to Ping. I guess previously i had talked about ipmasquerading which is similar to NAT. Try reading about NATting on the internet.


Got my point ?


Regards,
Xanthium.
 
Old 12-27-2001, 09:46 AM   #9
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Sorry again

Hi ,

I forgot to mention that i do not know of any proxy which allows icmp packets to traverse. In my previous post i only mentioned applications (socks-ified ) that ur client can use to ping the outside world .... they are by no way acting as server . Hope iam clear.

Regards,
Xanthium.
 
Old 12-30-2001, 08:28 PM   #10
infinity6
Member
 
Registered: Dec 2001
Posts: 66

Rep: Reputation: 15
Err, linuxquestions.org? Am I in the right forum here? No offence mega^deth, but I use Linux because Windows proxies never fit my needs. There are MANY different ways to achieve icmp forwarding under Linux. If you don't want to take the plunge, that's understandable, but given the security and control advantages of a linux solution, and the fact that you are posting to a linux forum, I would suggest some open source alternatives:

ipchains
iptables
squid
search http://www.google.com/linux or http://freshmeat.net for proxy servers
 
Old 12-31-2001, 08:35 AM   #11
cheezwhiz
LQ Newbie
 
Registered: Dec 2001
Posts: 4

Rep: Reputation: 0
Smile

Mega, thought you liked to know this, I setup connection sharing on my xp box and put my redhat box on dhcp, I can do anything from browsing to pinging. There was no need to setup a proxy in mozilla or whatever.
 
Old 01-01-2002, 01:52 AM   #12
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
same as ip forwarding

Its the same as IP forarding in linux !!!!!! except u dont cache the http.

regards,
Xanthium.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
proxy question fpalamariu Linux - Networking 3 03-16-2005 08:50 AM
pinging via proxy metallica_tony Linux - Networking 2 03-06-2004 10:21 AM
Apache Proxy Question Adam Shapiro Linux - Software 0 11-30-2003 03:26 PM
networking proxy question tschmidt Linux - Networking 2 06-12-2001 01:05 PM

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

All times are GMT -5. The time now is 01:42 PM.

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