iptables is not allowing me to contact my dns nameservers
Posted
by
user1272737
on Server Fault
See other posts from Server Fault
or by user1272737
Published on 2012-04-10T03:57:43Z
Indexed on
2012/04/10
5:32 UTC
Read the original article
Hit count: 1619
I have the follwing iptables rules:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- localhost.localdomain anywhere tcp dpt:mysql
ACCEPT tcp -- anywhere anywhere tcp dpt:14443
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp-data
ACCEPT tcp -- anywhere anywhere tcp dpt:xxxxxxx
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
When I turn off iptables I am able to use wget
and all other commands. When these rules are enabled I cannot connect to any address. Any idea why this would be?
© Server Fault or respective owner