LinuxQuestions.org
Help answer threads with 0 replies.
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 11-15-2006, 11:59 PM   #1
wiyanto84
LQ Newbie
 
Registered: Oct 2006
Location: Indonesia
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
ping behind the proxy ?


hello, i have problem, i cant ping to public ip ,my comp is behind the firewall. my OS is CentOS. how do conf my linux so it can ping to public ip behind the firewall ? tq b4
 
Old 11-16-2006, 01:30 AM   #2
asquante
Member
 
Registered: Nov 2006
Location: horten, norway
Distribution: gentoo / slackware / suse / red hat
Posts: 30

Rep: Reputation: 15
It's not linux you need to configure - it's the firewall, so it lets the signals through to your computer.

mARGO
 
Old 11-16-2006, 07:10 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Please follow the below mentioned procedure orderwise.. (to be run at your Firewall box)
Code:
echo 1 >> /proc/sys/net/ipv4/ip_forward
then
Code:
iptables -t nat -A POSTROUTING -o eth0(device-connected-to-internet) -j MASQUERADE
OR if you have a static ip; then
Code:
iptables -t nat -A POSTROUTING -s Your-lan-series -j SNAT --to x.x.x.x(your public static-ip)
Now configure your lan-clients to have this firewall box as their gateway & now you can ping public ip addresses from your clients. But i do not suggest you to have this setup as all those spam/spywares would now be easily n freely communicate to their hosts. And if you still persist to have this kinda setup only; i would rather suggest you to have a fully configured firewall at your firewall box instead of just the code i have provided you above.

Assumptions;

1. You are not having any other firewall script at your box.
2. You have iptables installed at your firewall box.
3. You are able to browse & ping public ips from your firewall box.
 
Old 11-16-2006, 11:18 PM   #4
wiyanto84
LQ Newbie
 
Registered: Oct 2006
Location: Indonesia
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
thanks in advance all
 
  


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
Successful ping to proxy but cannot go to internet melverx Linux - Newbie 6 04-07-2006 03:25 PM
ping through proxy shashwat Linux - Networking 2 01-18-2005 04:44 PM
able to ping proxy but no authentication rvijay17 Linux - Networking 4 06-17-2004 08:05 AM
Ping Proxy Server acjt Linux - Networking 11 07-31-2003 06:24 AM
no ping, can't use proxy lenlin Linux - Networking 2 10-29-2002 05:23 PM

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

All times are GMT -5. The time now is 09: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