Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.50 sec)
IPtables for WHOIS lookups from Server

It's not my favourite thing, IPtables.

I'm trying to punch a hole through the firewall so that my Server can do WHOIS lookups.

Can anyone please help ?
Asked by:
BonoEstente
1464 points
 Report Abuse
 Share Page - Category: Server Firewalls - Tags: IPtables for WHOIS lookups from Server
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (1)

There are better ways of doing this but the following method opens up the WHOIS port entirely:

iptables -A OUTPUT -p tcp --dport 43 -j ACCEPT

iptables -A INPUT -p tcp --sport 43 -j ACCEPT

iptables -A OUTPUT -p tcp --sport 43 -j ACCEPT

iptables -A INPUT -p tcp --dport 43 -j ACCEPT


That should do it.

Response by:
Mayhew
982 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle