core icon indicating copy to clipboard operation
core copied to clipboard

Aliases URL Tables (IPs) does not work correctly

Open Anywake opened this issue 3 years ago • 3 comments

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

  • [+] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
  • [+] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Describe the bug

I have an alias URL Tables (IPs) - mail gmail

image

Firewall>Diagnostics:

image

my PC

image

URL Tables (IPs) does not contain real addresses 108.177.14.108 and 108.177.14.109.

Software version used and hardware type if relevant, e.g.:

OPNsense 22.7_4-amd64 FreeBSD 13.1-RELEASE OpenSSL 1.1.1q 5 Jul 2022

Anywake avatar Aug 02 '22 06:08 Anywake

https://serverfault.com/questions/1008483/how-does-google-return-a-different-a-record-every-time https://www.gstatic.com/ipranges/goog.txt

kulikov-a avatar Aug 05 '22 19:08 kulikov-a

OPNsense lookup IP *.gmail.com on other DNS? DNS server for computer is OPNsense (gateway). OPNsense use a different DNS? о_О should return the same ip for computer and OPNsense

PC (mail client) __ DNS request imap.gmail.com __ -> from gateway opnsense -> gateway opnsense __ DNS request from 8.8.8.8___ -> 8.8.8.8 answer "imap.gmail.com -108.177.14.109

Anywake avatar Aug 15 '22 06:08 Anywake

For geo/load balancing google dns records have short TTLs and authoritative servers mixing returning addresses so any host that tries to resolve *.Gmail.com may receive different answer on each try. IMHO it's not the best idea to try to use google dns records to filter google mail traffic. I would try to use ports and "google subnets" alias (see link in first answer)

kulikov-a avatar Aug 15 '22 08:08 kulikov-a

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.

OPNsense-bot avatar Jan 29 '23 06:01 OPNsense-bot