LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2006, 11:34 AM   #1
flankovich
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
Hide Internal IP Adresss From Internet


Hi , I'm using squid proxy, in a CentOS Linux, today i've entered to the whatismyipaddress website, and it's shows my internal Ip address, i want to hide it. I'm thinking if using NAT it could be possible. But i want to know it this is made in squid.conf or Iptables, and if it could help me to hide mi internal IP. Thanks for any help
 
Old 08-22-2006, 11:52 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
iptables will hide your internal ip adress with NAT
 
Old 08-22-2006, 12:22 PM   #3
flankovich
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Agrouf , i was looking information about enable NAT on Iptables, and many howto's says

echo 1 > /proc/sys/net/ipv4/ip_forward

but when i do this, linux says

-bash: /proc/sys/net/ipv4/ipforward: No such file or directory

but in the /proc/sys/net/ipv4/ directory its found the ipforward...program?? , i dont unndestand what this line do. could you help me please??
 
Old 08-22-2006, 12:53 PM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Did you do it as root?
Did you confuse ipforward with ip_forward?

FYI, this line is allowing the server to forward requests
 
Old 08-22-2006, 02:33 PM   #5
flankovich
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Original Poster
Rep: Reputation: 0
yes, ja ja, it was ip_forward (you should have a category for very_newbie or very_stupid members only for me), thanks , just another question , if i do

iptable -t nat -A POSTROUTING -o eth0 -j MASQUERADE

must i do to incoming packets from etho, which has static IP. I can't understand this. thanks again
 
Old 08-22-2006, 07:46 PM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
whatismyip isn't just reading the X Forwarded For header Squid adds?

http://www.grc.com/x/ne.dll?rh0dk2du

Not sure if that URL will work but if it does, have a look there to see exactly what you're browser is saying about you and what it all means Squid has an option to turn off the forwarded for header so that might be your ticket.
 
  


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
VNC over Internet to computer with internal ip... help! QtCoder Linux - Networking 13 03-12-2005 07:00 PM
accessing an internal network via internet softice2001 Linux - Networking 7 10-21-2004 01:35 PM
accessing an internal network via internet kg4joh Linux - Networking 1 10-03-2004 09:02 PM
connecting internet using internal modem ru2raj Linux - Newbie 1 12-28-2003 08:51 AM
internet connection thru internal modem jaylinuxguru LinuxQuestions.org Member Intro 0 08-28-2003 03:34 PM


All times are GMT -5. The time now is 04:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration