Author Topic: Hide Internal IP Address in DNS  (Read 3038 times)

edmund085

  • Zen Monk
  • **
  • Posts: 53
  • Karma: +0/-1
  • Keep Calm and Press Ctrl + Alt + Del
    • View Profile
Hide Internal IP Address in DNS
« on: July 26, 2014, 08:28:41 am »
Greetings!

Is there any other way to hide internal ip address of the zentyal? The zentyal is connected to the primary domain controller and it has 2 interfaces. The first interface is the static one which is 121.97.xx.xx and the private ip address is 192.168.xx.xx. When I checked it at pingdom, the internal ip address keeps reappearing. I have done this with a Windows Server 2008 R2 but, I cant seem to disable the internal IP address of the zentyal from appearing in public.

edmund085

  • Zen Monk
  • **
  • Posts: 53
  • Karma: +0/-1
  • Keep Calm and Press Ctrl + Alt + Del
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #1 on: July 30, 2014, 03:14:25 am »
it seems, no one here doesnt know how to resolve the issue since no one ever replied... tsk...

N. Balauro

  • Zen Monk
  • **
  • Posts: 63
  • Karma: +15/-0
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #2 on: July 30, 2014, 05:30:30 am »
Could you describe your network config more plz? I personally dont really understand your question.
Zentyal 3.3.10 -- Xen 4.1 Hypervisor -- Intel Xeon 1245V3

edmund085

  • Zen Monk
  • **
  • Posts: 53
  • Karma: +0/-1
  • Keep Calm and Press Ctrl + Alt + Del
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #3 on: July 30, 2014, 06:13:25 am »
sorry for my poor English construction, English is not one of our primary language. One the printscreen, the internal ip address is seen in the public. i want them hidden. I have done this in Windows Server 2008, but I cant seem to do it in Zentyal. Any other ways to eliminate this problem?

mtrogg

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +4/-0
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #4 on: July 30, 2014, 11:39:49 am »
Yes well that is the FORWARDED_FOR tag in HTTP headers through squid (proxy) responses.

You'll need to adapt squid configuration files via command line to change this;

http://serverfault.com/questions/102668/remove-x-forwarded-for-header-in-squid-3-0

N. Balauro

  • Zen Monk
  • **
  • Posts: 63
  • Karma: +15/-0
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #5 on: July 30, 2014, 06:00:22 pm »
Yes well that is the FORWARDED_FOR tag in HTTP headers through squid (proxy) responses.

You'll need to adapt squid configuration files via command line to change this;

http://serverfault.com/questions/102668/remove-x-forwarded-for-header-in-squid-3-0

+1 mtrogg. Thank you Sir!

Due to my unfamiliarity with Squid, I was thinking along the lings of NAT in iptables to masquerade the packets. This seems simple enough though!
Zentyal 3.3.10 -- Xen 4.1 Hypervisor -- Intel Xeon 1245V3

Rafo

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #6 on: July 31, 2014, 02:21:14 pm »
Well I have the same problem but everytime when I edited the squid.conf.mas I get is the error in the screenshot below.

Thanks in advance.




« Last Edit: July 31, 2014, 02:23:48 pm by Rafo »

N. Balauro

  • Zen Monk
  • **
  • Posts: 63
  • Karma: +15/-0
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #7 on: July 31, 2014, 07:39:35 pm »
As far as I can tell, 'Banned User' would be related to the proxy_auth ACLs.
Zentyal 3.3.10 -- Xen 4.1 Hypervisor -- Intel Xeon 1245V3

edmund085

  • Zen Monk
  • **
  • Posts: 53
  • Karma: +0/-1
  • Keep Calm and Press Ctrl + Alt + Del
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #8 on: August 01, 2014, 07:30:28 am »
so ive inserted this into the squid configuration file

Code: [Select]
via off
forwarded_for off
follow_x_forwarded_for deny all
request_header_access X-Forwarded-For deny all
header_access X_Forwarded_For deny all

still not working... the internal ip address is still viewable

N. Balauro

  • Zen Monk
  • **
  • Posts: 63
  • Karma: +15/-0
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #9 on: August 01, 2014, 09:23:38 am »
Did you make sure to modify the .mas file and not the actual config?
Zentyal 3.3.10 -- Xen 4.1 Hypervisor -- Intel Xeon 1245V3

edmund085

  • Zen Monk
  • **
  • Posts: 53
  • Karma: +0/-1
  • Keep Calm and Press Ctrl + Alt + Del
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #10 on: August 06, 2014, 04:21:52 am »
cant find the .mas file. Where is it located? all I see in the /etc/squid3/ is the conf file

edmund085

  • Zen Monk
  • **
  • Posts: 53
  • Karma: +0/-1
  • Keep Calm and Press Ctrl + Alt + Del
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #11 on: August 06, 2014, 04:23:43 am »
never mind... just found it.....

edmund085

  • Zen Monk
  • **
  • Posts: 53
  • Karma: +0/-1
  • Keep Calm and Press Ctrl + Alt + Del
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #12 on: August 07, 2014, 02:10:11 am »
still not working guys..... I can still see the IP Addresses of my internal network.

N. Balauro

  • Zen Monk
  • **
  • Posts: 63
  • Karma: +15/-0
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #13 on: August 07, 2014, 08:28:04 pm »
So I tried fiddling with this. Seeing that my squid version is 3.1, I first went here.

Here I found these 2 relevant options.

Then I found this, just before parsing the logfiles; after squid having trouble with the updated config changes.
Quote
NP: Squid must be built with the --enable-http-violations configure option before building.

Zentyal 3.3.10 -- Xen 4.1 Hypervisor -- Intel Xeon 1245V3

edmund085

  • Zen Monk
  • **
  • Posts: 53
  • Karma: +0/-1
  • Keep Calm and Press Ctrl + Alt + Del
    • View Profile
Re: Hide Internal IP Address in DNS
« Reply #14 on: August 14, 2014, 05:49:55 am »
ok, you totally lost me there. Didn't understand what to do on your post.