Page 1 of 1

[Solved]Problems while connecting to the whois server on port 43

Posted: Thu Jul 16, 2015 3:37 am
by mike08
Hello everyone,

Today I just installed WHMCS to my webserver using Vesta, I just successfully installed everything regarding vesta and whmcs, now I'm just testing it out and the domain check availability does not work, it shows this error message after 10 or 15 secs:

Code: Select all

There was a problem connecting to the domain registry. Please try again later.
I was investigating that and I found that the port 43 could be blocked for outgoing connections as stated here:

Code: Select all

http://docs.whmcs.com/Common_Troubleshooting_Tips#There_was_a_problem_connecting_to_the_domain_registry
I tried opening the port 43 as stated below:

Code: Select all

iptables -t filter -A OUTPUT -p tcp -d 0.0.0.0/0 --dport 43 -j ACCEPT
iptables -t filter -A OUTPUT -p udp -d 0.0.0.0/0 --dport 43 -j ACCEPT
and it did not work, it is still showing the same error message, I've turned of iptables and it starts working properly when I do a domain availability lookup.

Sys info:
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)" 64bits
vesta core package Version:0.9.8 (amd64) Release:14

If anyone has any idea on how to fix this matter that would be greatly appreciated :)

Re: Problems while connecting to the whois server on port 43

Posted: Wed Jul 22, 2015 1:18 pm
by neuropass
Try restarting the firewall under services tab. I had to do that on a fresh install or some ports wouldn't work properly.

Re: Problems while connecting to the whois server on port 43

Posted: Tue Nov 17, 2015 5:24 pm
by mike08
Hello guys,

After months of looking for an answer, I found that the right rule would be:

Code: Select all

iptables -A INPUT -p tcp --source-port 43 -j ACCEPT
That is the only rule needed to do a successful whois on Debian 7

Regards,