seen from United States

seen from United States
seen from United States

seen from United States

seen from Italy
seen from Japan
seen from Malaysia
seen from Japan
seen from United States
seen from United States
seen from Germany

seen from Russia

seen from Israel

seen from T1

seen from Netherlands
seen from Israel
seen from China
seen from China
seen from China

seen from Canada
Hackertarget - Tools And Network Intelligence To Help Organizations With Attack Surface Discovery
Hackertarget - Tools And Network Intelligence To Help Organizations With Attack Surface Discovery #network #footprint #hacking
Use open source tools and network intelligence to help organizations with attack surface discovery and identification of security vulnerabilities. Identification of an organizations vulnerabilities is an impossible task without tactical intelligence on the network footprint. By combining open source intelligence with the worlds best open source security scanningtools, we enable your attack…
View On WordPress
Reverse DNS in sendmail and how to disable it.
For some reason I found it exceedingly difficult to find a simple/clear explanation of how SendMail performs reverse DNS lookups. What follows are notes collected from 5+ sources on the interwebs. Hopefully this saves other folks some time (*grumble grumble grumble...).
Short answer: Sendmail does not have a granular setting to disable the lookup for a remote host's name. There are options to REQUIRE reverse DNS results (via the FEATURE(`require_rdns' setting) but nothing that completely turns reverse DNS off while leaving other DNS lookups intact.
Instead, sendmail bundles reverse DNS under a broader question of "should I use DNS at all?". In modern versions, that decision it determined by the hosts: setting in the respective Name Service Switch config file on a system. For Redhat and CentOS, that file is typically /etc/nsswitch.conf
If the hosts: setting has a value of hosts: files dns sendmail will check the local hosts file first for information and then try DNS.
OK. So before we go any further, let's ask an obvious question: Why does sendmail need to perform a reverse dns query at all? In theory, there are a few reasons:
The remote hostname is compared to the local hostname to prevent sendmail from connecting to itself and looping messages.
The remote hostname used in the HELO and EHLO greeting can be compared to the lookup value. If they're different, sendmail can complain.
The hostname value is used for a macro $s which can be used for various programmatic (rules, milter, etc) activity.
The name can be entered into headers and logs for easier tracking.
With me so far? Cool. So now that we have the basics, what is the actual reverse DNS workflow look like for the incoming connection? As per section 21.2.2 of the O'Reilly "bat book":
1) sendmail runs as a daemon, creates (and binds to) a socket, and listens for incoming SMTP traffic. 2) When a remote host connects to the local host, sendmail uses the accept library to accept the connection. 3) As part of the workflow, the accept routine provides the IP address of the remote server to sendmail. 4) sendmail then calls gethostbyaddr to lookup the IP.
Hmm, OK. So, where does this leave us? Well, if the sendmail host is in the middle of mailflow and the count of upstream hosts are relatively small, the easiest option may be to just add those upstream IPs to the /etc/hosts file. That allows the gethostbyaddrfunction to find what it needs locally and avoid using DNS.
Sources:
http://docstore.mik.ua/orelly/networking/sendmail/ch21_02.htm
http://www.sendmail.com/sm/open_source/support/support_faq/faq_ver_8_issues/#3.22
https://lildude.co.uk/howto-prevent-sendmail-from-using-dns
https://www.safaribooksonline.com/library/view/sendmail-4th-edition/9780596510299/ch24s09s108.html
https://www.safaribooksonline.com/library/view/sendmail-4th-edition/9780596510299/ch24s09s98.html
ansible speed up
Interesting post about rDNS in which ansible.cfg with GSSAPIAuthentication=no avoids doing reverse DNS lookups
Reverse DNS Check Workflow (Anti-Spam)
I deal with reverse dns issues so infrequently that I sometimes forget the specifics. Here's a brief summary of the workflow (if for no other reason than to remind myself):
Take the IP of an incoming connection and check the PTR DNS record for it.
Take the value of that PTR record and run a separate DNS query to check the A or AAAA record for it.
Check to see if the two records align with one another.
If there's a "match", then you've "confirmed" that there is a valid relationship between the owner of the DNS zone and the owner of the network that has been given the source IP address.
Admittedly, DNS has its own vulnerabilities (hence all the quotation marks) so it's not a perfect solution -- just one of many anti-spam techniques.
Lead Forensics and Ruler Analytics - both super cool analytics solutions for tracking website visitors and see which companies have visited your website, but which is the better option and why? We've put them head-to-head to expose the best solution for you.
트위터에 aol.com 이야기가 나와서 하나 생각난건데 외국 고객들에게 보내는 메일 시스템을 구축할 때 주의해야하는 것 중 하나가 바로 역DNS(Reverse DNS)입니다. 일반적으로 DNS는 브라우저에서 도메인을 입력하면 IP주소로 변환해주는 역할을 하는데 역DNS는 역으로 메일이 발송된 메일 서버의 IP주소가 발송자의 메일 주소 도메인과 일치하는지 확인할 때 사용됩니다.
예를 들어 [email protected] 으로 발송한 메일의 경우, 역DNS를 조회하여 메일 서버의 대표 도메인이 naver.com과 일치하는지 확인 합니다. 만약 일치하지 않으면 사칭 메일이거나, 자동화 서버를 이용한 대량 스팸 폭탄일 가능성이 있죠. 외국 메일 서비스의 경우 이것이 일치하지 않으면 스팸으로 분류해버리는 메일 서비스들이 있습니다.
국내에서는 역DNS에 등록하는 것을 KT에서 대행해주고 있는데, 일반적으로 메일 도메인 주소와 메일 서버의 IP 주소가 다른 경우는 거의 없습니다. 네이버에서 보낸 메일은 당연히 네이버의 메일 서버를 통해 발송됩니다.
다만 이것이 다른 경우가 호스팅 서비스 등에서 많이 발견됩니다. 호스팅 사에서 쇼핑몰을 임대 받아 이용하고 있을 경우 메일 서비스도 호스팅 사에서 제공해주는 서비스를 사용하는 경우가 많은데요, 이런 호스팅사 서비스 중엔 발송자 주소를 고객 도메인에 연결해주는 서비스들이 있습니다.
예를 들어 myhosting.net라는 사이트의 호스팅을 받아 mysite.com이라는 사이트를 운영하고 있다면, 호스팅사에서 제공해주는 서비스에 따라 제 메일 주소를 [email protected] 이라고 만들 수 있습니다. 이 경우 메일 서버는 당연히 호스팅 사에서 보유하고 있습니다. 근데 호스팅 사에서는 메일 서버를 고객 당 한대씩 두는게 아니기 때문에(자원 낭비입니다.) myhosting.net이라는 주소를 메일 서버의 대표 도메인으로 등록합니다.
이 상태에서 [email protected]이라는 발송 주소로 외국에 있는 고객에게 메일을 보내면 해당 고객이 사용하는 메일 수신 서버에서는 역 DNS를 조회합니다. 발송자 메일 서버의 IP로 조회를 해보니 myhosting.net이라는 도메인이 호출됩니다. 발송자와 메일 서버의 도메인이 서로 다르기 때문에 스팸으로 인식하고 고객에게는 최종적으로 수신이 되지 않게 됩니다.
이런 대표적인 서비스가 aol.com입니다. 고객이 aol.com의 메일을 사용하고 있을 경우 저런 케이스엔 100% 스팸으로 처리됩니다. Gmail의 스팸 알고리즘은 그렇게 단순하지 않아서 수신이 되긴 합니다만 스팸 의심 요인 중 하나입니다.(즉 스팸으로 판단될 가능성이 높아집니다.)
이 문제를 해결하려면 사이트를 호스팅에서 임대하고 있다고 하더라도 메일 서버를 자체 도메인으로 해서 따로 구축해서 쓰던지, 아니면 호스팅의 대표 도메인으로 메일을 보내는 방법 밖엔 없습니다만, 전자의 경우 그렇게 구축할 수 있는 여력을 가진 곳이 많지 않고(메일 서버를 따로 둘 정도면 호스팅을 쓸 이유가 없..), 호스팅 사의 도메인으로 메일을 보내면 고객의 신뢰도가 감소합니다.
현재 국내에서는 제가 아는한 역 DNS를 통해 스팸으로 분류하는 곳은 한 곳도 없는 것으로 알고 있습니다. 따라서 이런 문제는 거의 해외에 한정되어 발생하는 문제라고 할 수 있겠죠.
물론 외국 고객에게 메일 수신이 안되는 이유는 이것 말고도 매우 많은 이유가 있습니다만, 시스템적인 이유는 역DNS로 인해 발생하는 경우가 많습니다. 이런 문제가 우리나라에만 있는건 아닐텐데.. 외국 호스팅사에서는 어떤 방식으로 문제를 해결하고 있는지 궁금해지네요.
explore the neighborhood by looking at the PTR for the whole /24
Looking up the PTR resource records / reverses of the /24 neighbourhood of an IP address reveals lots of connections. To do so I use two bash functions. One function for printing all the reverses and one for creating an html file with pointers to more information. I named the first function ptr24 and it looks like that.
g0:~$cat .bashrc | head -14 function ptr24 { CNET=`echo $1|awk -F"." '{print $1"."$2"."$3}'` echo "PTR lookup for $CNET.0/24" for i in `seq 0 255`;do CUR=`dig +short -x $CNET.$i`; if [ -n "$CUR" ]; then echo -n "$CNET.$i -> "; echo $CUR; fi done }
So, if we want to explore the neighbourhood of the gnu.org web server we could do.
g0:~$dig +short gnu.org 140.186.70.148 g0:~$ptr24 140.186.70.148 PTR lookup for 140.186.70.0/24 140.186.70.1 -> ge-core1.qcy.gnu.org. 140.186.70.10 -> fencepost.gnu.org. 140.186.70.11 -> leviathan.gnu.org. ... 140.186.70.154 -> shop-dev.fsf.org. 140.186.70.155 -> testtaranis.gnu.org. 140.186.70.156 -> gplv3.fsf.org. 140.186.70.157 -> audio-video-dev.gnu.org. 140.186.70.253 -> ge-sw1.qcy.gnu.org. g0:~$
I named the second function ptr24htm and it looks like this.
g0:~$cat .bashrc |head -28|tail -15 function ptr24htm { CNET=`echo $1|awk -F"." '{print $1"."$2"."$3}'` echo "PTR lookup for $CNET.0/24<br />" for i in `seq 0 255`;do CUR=`dig +short -x $CNET.$i`; if [ -n "$CUR" ]; then echo -n "$CNET.$i -> "; echo "<a href=http://ipduh.com/dns/?$CUR>$CUR</a><br />"; fi done }
To produce a ptr.html of the gnu.org /24 neighbourhood we can do the following.
g0:~$ptr24htm `dig +short gnu.org` > ptr.html g0:~$
ptr.html PTR lookup for 140.186.70.0/24 140.186.70.1 -> ge-core1.qcy.gnu.org. 140.186.70.10 -> fencepost.gnu.org. 140.186.70.11 -> leviathan.gnu.org. 140.186.70.13 -> mail.fsf.org. 140.186.70.14 -> gnusenet.gnu.org. 140.186.70.15 -> fencepost-ssh.gnu.org. 140.186.70.17 -> lists.gnu.org. 140.186.70.20 -> ftp.gnu.org. 140.186.70.21 -> alpha.gnu.org. 140.186.70.22 -> ftp-upload.gnu.org. 140.186.70.23 -> webmail.fsf.org. 140.186.70.25 -> livestream.fsf.org. 140.186.70.26 -> sandbox.gnewsense.org. 140.186.70.30 -> svnweb.fsf.org. 140.186.70.31 -> spamhaus-rsync.fsf.org. 140.186.70.32 -> defectivebydesign.org. 140.186.70.33 -> galactica.fsf.org. 140.186.70.34 -> catalyst.fsf.org. 140.186.70.35 -> archive.gnewsense.org. 140.186.70.36 -> littlenemo.fsf.org. 140.186.70.37 -> labyrinth.fsf.org. 140.186.70.38 -> sycophant.fsf.org. 140.186.70.39 -> zaphod.gnu.org. 140.186.70.40 -> agilus.fsf.org. 140.186.70.41 -> bluemchen.kde.org. 140.186.70.42 -> agia.fsf.org. 140.186.70.43 -> debbugs.gnu.org. 140.186.70.44 -> config.fsf.org. 140.186.70.45 -> jamsession.fsf.org. 140.186.70.46 -> groups.fsf.org. 140.186.70.47 -> UNUSED-47.gnu.org. 140.186.70.48 -> tor.fsf.org. 140.186.70.49 -> archive.fsf.org. 140.186.70.50 -> smtp.member.fsf.org. 140.186.70.51 -> colonialone.fsf.org. 140.186.70.52 -> mirror.fsf.org. 140.186.70.53 -> sunjammer.sugarlabs.org. 140.186.70.54 -> linux-libre.fsfla.org. 140.186.70.56 -> news.swpat.org. 140.186.70.58 -> zope.fsf.org. 140.186.70.59 -> www-old.fsf.org. 140.186.70.60 -> my.fsf.org. 140.186.70.61 -> ldap.fsf.org. 140.186.70.62 -> code.autonomo.us. 140.186.70.63 -> www-dev.fsf.org. 140.186.70.64 -> my-dev.fsf.org. 140.186.70.65 -> cloud9.fsf.org. 140.186.70.66 -> blag.fsf.org. 140.186.70.67 -> windows7sins.org. 140.186.70.69 -> ftp-dev.gnu.org. 140.186.70.70 -> savannah.gnu.org. 140.186.70.71 -> savannah.nongnu.org. 140.186.70.72 -> vcs.savannah.gnu.org. 140.186.70.73 -> download.savannah.gnu.org. 140.186.70.74 -> mgt.savannah.gnu.org. 140.186.70.75 -> internal.savannah.gnu.org. 140.186.70.76 -> vpn.savannah.gnu.org. 140.186.70.80 -> groups-dev.fsf.org. 140.186.70.81 -> cas.fsf.org. 140.186.70.82 -> jabber.fsf.org. 140.186.70.83 -> brains.fsf.org. 140.186.70.84 -> balance.fsf.org. 140.186.70.85 -> eccles.gnewsense.org. 140.186.70.86 -> bloodnok.gnewsense.org. 140.186.70.87 -> seagoon.gnewsense.org. 140.186.70.88 -> config.gnewsense.org. 140.186.70.89 -> elpa.gnu.org. 140.186.70.90 -> heinlein.fsf.org. 140.186.70.91 -> mycroft.fsf.org. 140.186.70.92 -> eggs.gnu.org. 140.186.70.93 -> columbia.fsf.org. 140.186.70.94 -> directoryng-dev.fsf.org. 140.186.70.95 -> resolver1.fsf.org. 140.186.70.96 -> crm.fsf.org. 140.186.70.97 -> vinge.fsf.org. 140.186.70.98 -> nonce.fsf.org. 140.186.70.99 -> id-dev.fsf.org. 140.186.70.100 -> treehouse.sugarlabs.org. 140.186.70.101 -> UNUSED101.sugarlabs.org. 140.186.70.102 -> lightwave.sugarlabs.org. 140.186.70.103 -> UNUSED103.sugarlabs.org. 140.186.70.104 -> dextrose.sugarlabs.org. 140.186.70.105 -> UNUSED105.sugarlabs.org. 140.186.70.106 -> pootle.sugarlabs.org. 140.186.70.107 -> usr.sugarlabs.org. 140.186.70.108 -> UNUSED108.sugarlabs.org. 140.186.70.109 -> template-lucid.sugarlabs.org. 140.186.70.110 -> identity.sugarlabs.org. 140.186.70.111 -> UNUSED111.sugarlabs.org. 140.186.70.112 -> zatoichi.sugarlabs.org. 140.186.70.113 -> openlesson.sugarlabs.org. 140.186.70.114 -> UNUSED114.sugarlabs.org. 140.186.70.115 -> buildslave-ubuntu-lucid-64bit.sugarlabs.org. 140.186.70.116 -> UNUSED116.sugarlabs.org. 140.186.70.117 -> UNUSED117.sugarlabs.org. 140.186.70.118 -> UNUSED118.sugarlabs.org. 140.186.70.119 -> UNUSED119.sugarlabs.org. 140.186.70.120 -> UNUSED120.sugarlabs.org. 140.186.70.121 -> booki.treehouse.su. 140.186.70.122 -> anno.treehouse.su. 140.186.70.123 -> aslo-web.sugarlabs.org. 140.186.70.124 -> status.treehouse.su. 140.186.70.125 -> rt.sugarlabs.org. 140.186.70.126 -> schooltool.sugarlabs.org. 140.186.70.127 -> mapspress.sugarlabs.org. 140.186.70.128 -> monitoring.treehouse.su. 140.186.70.129 -> idea.sugarlabs.org. 140.186.70.130 -> dirac.fsf.org. 140.186.70.131 -> www.fsf.org. 140.186.70.132 -> lists.fsf.org. 140.186.70.133 -> testlucid.gnu.org. 140.186.70.134 -> resolver2.fsf.org. 140.186.70.135 -> seeder.gnu.org. 140.186.70.136 -> edit.fsf.org. 140.186.70.137 -> crm-dev.fsf.org. 140.186.70.138 -> logger.fsf.org. 140.186.70.139 -> dbd-dev.fsf.org. 140.186.70.140 -> social.gnu.org. 140.186.70.141 -> wiki-dev.swpat.org. 140.186.70.142 -> news-dev.swpat.org. 140.186.70.143 -> wiki.swpat.org. 140.186.70.144 -> bluemchen2.kde.org. 140.186.70.145 -> termite.fsf.org. 140.186.70.146 -> airhorn.fsf.org. 140.186.70.147 -> directory-dev.fsf.org. 140.186.70.148 -> wildebeest.gnu.org. 140.186.70.149 -> goodbye.gnu.org. 140.186.70.150 -> directory-p.fsf.org. 140.186.70.151 -> www.nongnu.org. 140.186.70.153 -> bitcoin.fsf.org. 140.186.70.154 -> shop-dev.fsf.org. 140.186.70.155 -> testtaranis.gnu.org. 140.186.70.156 -> gplv3.fsf.org. 140.186.70.157 -> audio-video-dev.gnu.org. 140.186.70.253 -> ge-sw1.qcy.gnu.org. backup of:bash functions to lookup all the PTR in a /24