I am using the EigerStein2Beta image on my router/firewall, with
a two-floppy setup. I am also running the dnscache, tinydns, and
axfrdns packages. I would like my router to be the authoritative
nameserver for my domain. I have set the tinydns package to serve
DNS for both private and public clients. On the private side,
everything works fine. On the public side, it is not so fine.
Here's a quick picture of the scenario:



                                |
                                |
                               DSL  
                                |
                          216.87.136.178 (static)
                      -----------------------
                      |        eth0         |
                      |                     |
                      |        eth1         |
                      -----------------------
                         192.168.1.254/24
                               NAT
                                | (internal addresses are static)
                                |
                                |
     |------------10/100 Switch--------------|
     |                |               
    192.168.1.252   192.168.1.251      
    LAN Server    Workstation        
    SuSE 7.1      Win98           


I have created the necessary DNS records for tinydns to serve up
to the outside world. I have also set up axfrdns to accept requests
for zone transfers from the current DNS hosting provider. (They
do a zone transfer prior to transferring the primary nameserver
control.)

My problem is that I am simply unable to get this machine to respond
to UDP and TCP requests from the public interface. This applies to both
DNS (port 53) and the port-forwarded SMTP (port 25). I suspect something
in the firewall rules, which I've not edited in the default setup,
is causing problems. I suspect it's a bit TOO secure.

Filtering rules are where my understanding of everything starts to
break down, and perhaps that's not even the problem. Does anyone have
any ideas why this isn't working?

Here's the output of "netstat -an"
================================================================
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
   
tcp        0      0 216.87.136.178:53       0.0.0.0:*               LISTEN
    
tcp        0      0 192.168.1.254:53        0.0.0.0:*               LISTEN
    
tcp        0      0 192.168.1.254:22        0.0.0.0:*               LISTEN
    
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
    
udp        0      0 192.168.1.254:53        0.0.0.0:*
    
udp        0      0 216.87.136.178:53       0.0.0.0:*
    
udp        0      0 192.168.1.254:53        0.0.0.0:*
    
udp        0      0 0.0.0.0:69              0.0.0.0:*
    
raw        0      0 0.0.0.0:1               0.0.0.0:*
    
raw        0      0 0.0.0.0:6               0.0.0.0:*
    
Active UNIX domain sockets (including servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  0      [ ACC ]     STREAM     LISTENING     1496   /dev/log
unix  1      [ ]         STREAM     CONNECTED     1499   @00000001
unix  1      [ ]         STREAM     CONNECTED     1511   @00000003
unix  1      [ ]         STREAM     CONNECTED     1512   /dev/log
unix  1      [ ]         STREAM     CONNECTED     1500   /dev/log
================================================================

Here's the output of "ipchains -L -n -v":
================================================================
Chain input (policy DENY: 0 packets, 0 bytes):
 pkts bytes target     prot opt    tosa tosx  ifname     mark       outsize
 source                destination           ports
    0     0 DENY       icmp ----l- 0xFF 0x00  *
 0.0.0.0/0            0.0.0.0/0             13 ->   *
    0     0 DENY       icmp ----l- 0xFF 0x00  *
 0.0.0.0/0            0.0.0.0/0             14 ->   *
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 0.0.0.0              0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 255.255.255.255      0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 127.0.0.0/8          0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 224.0.0.0/4          0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 10.0.0.0/8           0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 172.16.0.0/12        0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 192.168.0.0/16       0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 0.0.0.0/8            0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 128.0.0.0/16         0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 191.255.0.0/16       0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 192.0.0.0/24         0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 223.255.255.0/24     0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 240.0.0.0/4          0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 192.168.1.0/24       0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 64.249.240.213       0.0.0.0/0             n/a
    0     0 REJECT     all  ----l- 0xFF 0x00  eth0
 0.0.0.0/0            127.0.0.0/8           n/a
    0     0 REJECT     all  ----l- 0xFF 0x00  eth0
 0.0.0.0/0            192.168.1.0/24        n/a
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   137
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   135
    0     0 REJECT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   137
    0     0 REJECT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   135
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   138:139
    0     0 REJECT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   138
    0     0 REJECT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             137:138 ->   *
    0     0 REJECT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             135 ->   *
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             137:139 ->   *
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             135 ->   *
    0     0 ACCEPT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   22
    0     0 ACCEPT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   25
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   113
  132 79876 ACCEPT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   1024:65535
    0     0 REJECT     udp  ----l- 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   161:162
    0     0 DENY       udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   67
    0     0 ACCEPT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   1024:65535
   24  1632 ACCEPT     icmp ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   *
    0     0 ACCEPT     ospf ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             n/a
    0     0 REJECT     udp  ----l- 0xFF 0x00  *
 0.0.0.0/0            0.0.0.0/0             * ->   161:162
    0     0 REJECT     udp  ----l- 0xFF 0x00  *
 0.0.0.0/0            0.0.0.0/0             161:162 ->   *
  158 22800 ACCEPT     all  ------ 0xFF 0x00  *
 0.0.0.0/0            0.0.0.0/0             n/a
Chain forward (policy DENY: 0 packets, 0 bytes):
 pkts bytes target     prot opt    tosa tosx  ifname     mark       outsize
 source                destination           ports
    0     0 DENY       icmp ----l- 0xFF 0x00  *
 0.0.0.0/0            0.0.0.0/0             5 ->   *
  150 21866 MASQ       all  ------ 0xFF 0x00  eth0
 192.168.1.0/24       0.0.0.0/0             n/a
    0     0 DENY       all  ------ 0xFF 0x00  *
 0.0.0.0/0            0.0.0.0/0             n/a
Chain output (policy DENY: 0 packets, 0 bytes):
 pkts bytes target     prot opt    tosa tosx  ifname     mark       outsize
 source                destination           ports
  306  103K fairq      all  ------ 0xFF 0x00  *
 0.0.0.0/0            0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 0.0.0.0              0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 255.255.255.255      0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 127.0.0.0/8          0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 224.0.0.0/4          0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 10.0.0.0/8           0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 172.16.0.0/12        0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 192.168.0.0/16       0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 0.0.0.0/8            0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 128.0.0.0/16         0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 191.255.0.0/16       0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 192.0.0.0/24         0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 223.255.255.0/24     0.0.0.0/0             n/a
    0     0 DENY       all  ----l- 0xFF 0x00  eth0
 240.0.0.0/4          0.0.0.0/0             n/a
    0     0 DENY       all  ------ 0xFF 0x00  eth0
 192.168.1.0/24       0.0.0.0/0             n/a
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   137
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   135
    0     0 REJECT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   137
    0     0 REJECT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   135
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   138:139
    0     0 REJECT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             * ->   138
    0     0 REJECT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             137:138 ->   *
    0     0 REJECT     udp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             135 ->   *
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             137:139 ->   *
    0     0 REJECT     tcp  ------ 0xFF 0x00  eth0
 0.0.0.0/0            0.0.0.0/0             135 ->   *
  306  103K ACCEPT     all  ------ 0xFF 0x00  *
 0.0.0.0/0            0.0.0.0/0             n/a
Chain fairq (1 references):
 pkts bytes target     prot opt    tosa tosx  ifname     mark       outsize
 source                destination           ports
    0     0 RETURN     ospf ------ 0xFF 0x00  *          0x1
   0.0.0.0/0            0.0.0.0/0             n/a
    0     0 RETURN     ospf ------ 0xFF 0x00  *          0x1
   0.0.0.0/0            0.0.0.0/0             n/a
    0     0 RETURN     udp  ------ 0xFF 0x00  *          0x1
   0.0.0.0/0            0.0.0.0/0             * ->   520
    0     0 RETURN     udp  ------ 0xFF 0x00  *          0x1
   0.0.0.0/0            0.0.0.0/0             520 ->   *
    0     0 RETURN     tcp  ------ 0xFF 0x00  *          0x1
   0.0.0.0/0            0.0.0.0/0             * ->   179
    0     0 RETURN     tcp  ------ 0xFF 0x00  *          0x1
   0.0.0.0/0            0.0.0.0/0             179 ->   *
    0     0 RETURN     tcp  ------ 0xFF 0x00  *          0x1
   0.0.0.0/0            0.0.0.0/0             * ->   53
    0     0 RETURN     tcp  ------ 0xFF 0x00  *          0x1
   0.0.0.0/0            0.0.0.0/0             53 ->   *
    0     0 RETURN     udp  ------ 0xFF 0x00  *          0x1
   0.0.0.0/0            0.0.0.0/0             * ->   53
    0     0 RETURN     udp  ------ 0xFF 0x00  *          0x1
   0.0.0.0/0            0.0.0.0/0             53 ->   *
    0     0 RETURN     tcp  ------ 0xFF 0x00  *          0x2
   0.0.0.0/0            0.0.0.0/0             * ->   23
    0     0 RETURN     tcp  ------ 0xFF 0x00  *          0x2
   0.0.0.0/0            0.0.0.0/0             23 ->   *
    0     0 RETURN     tcp  ------ 0xFF 0x00  *          0x2
   0.0.0.0/0            0.0.0.0/0             * ->   22
    0     0 RETURN     tcp  ------ 0xFF 0x00  *          0x2
   0.0.0.0/0            0.0.0.0/0             22 ->   *
================================================================

Thanks in advance for any tips anyone can provide. 

Daryl

Daryl L. Biberdorf    [EMAIL PROTECTED]
For the absence of God's creative activity would not merely mean that
a thing would be different in some particular way; it simply would not 
exist.            --St. Augustine, City of God, XII.26


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to