LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Hide Internal IP Adresss From Internet (https://www.linuxquestions.org/questions/linux-newbie-8/hide-internal-ip-adresss-from-internet-476250/)

flankovich 08-22-2006 10:34 AM

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

Agrouf 08-22-2006 10:52 AM

iptables will hide your internal ip adress with NAT

flankovich 08-22-2006 11:22 AM

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??

Agrouf 08-22-2006 11:53 AM

Did you do it as root?
Did you confuse ipforward with ip_forward?

FYI, this line is allowing the server to forward requests

flankovich 08-22-2006 01:33 PM

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

cs-cam 08-22-2006 06:46 PM

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.


All times are GMT -5. The time now is 08:20 PM.