Skip to contentSkip to conversation

Iptables Problem on DNS Server

DISCUSSION Antony Stone 2 participants 2 messages Jun 22, 2002 – Jun 23, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

here's my ruleset in my machine... seen anything wrong or lacking here?

just to remind you guys my problem is that.. when my firewall is running my DNS don't work... thanks!

Chain INPUT (policy DROP)

target     prot opt source               destination
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0          state
RELATED,ESTABLISHED
ACCEPT     tcp  --  216.138.0.0/16       0.0.0.0/0          tcp dpt:21
ACCEPT     tcp  --  216.138.0.0/16       0.0.0.0/0          tcp dpt:22
ACCEPT     tcp  --  216.138.0.0/16       0.0.0.0/0          tcp dpt:110
ACCEPT     tcp  --  216.208.0.0/16       0.0.0.0/0          tcp dpt:21
ACCEPT     tcp  --  216.208.0.0/16       0.0.0.0/0          tcp dpt:22
ACCEPT     tcp  --  216.208.0.0/16       0.0.0.0/0          tcp dpt:110
ACCEPT     tcp  --  196.40.0.0/16        0.0.0.0/0          tcp dpt:21
ACCEPT     tcp  --  196.40.0.0/16        0.0.0.0/0          tcp dpt:22
ACCEPT     tcp  --  196.40.0.0/16        0.0.0.0/0          tcp dpt:110
ACCEPT     tcp  --  203.87.0.0/16        0.0.0.0/0          tcp dpt:21
ACCEPT     tcp  --  203.87.0.0/16        0.0.0.0/0          tcp dpt:22
ACCEPT     tcp  --  203.87.0.0/16        0.0.0.0/0          tcp dpt:110
ACCEPT     tcp  --  24.100.0.0/16        0.0.0.0/0          tcp dpt:21
ACCEPT     tcp  --  24.100.0.0/16        0.0.0.0/0          tcp dpt:22
ACCEPT     tcp  --  24.100.0.0/16        0.0.0.0/0          tcp dpt:110
DROP       tcp  --  0.0.0.0/0            0.0.0.0/0          tcp dpt:21
DROP       tcp  --  0.0.0.0/0            0.0.0.0/0          tcp dpt:22
DROP       tcp  --  0.0.0.0/0            0.0.0.0/0          tcp dpt:110
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0          tcp dpt:80 state

NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:21 state
NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 state
NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 state
NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 state
NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:110
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:1127
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:2047
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5012
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:6563
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:6564
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:7012
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:7017
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:7019
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:7021
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8000
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8007
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8010
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
state NEW
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:10000
state NEW
REJECT tcp -- 0.0.0.0/0 0.0.0.0/0 reject-with
tcp-reset
REJECT udp -- 0.0.0.0/0 0.0.0.0/0 reject-with
icmp-port-unreachable

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

#2 lore raw
Quoted 4 lines · Joe de Vera Jr.

here's my ruleset in my machine... seen anything wrong or lacking here?

just to remind you guys my problem is that.. when my firewall is running my DNS don't work... thanks!

Can we just clarify that last bit ?

Do you mean that your firewall cannot resolve names by contacting an external DNS server, or that you are running DNS on your firewall, and other machines cannot contact *it* as a DNS server ?

Antony.