Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
axfr transfer connection problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
silwerspawn
Apprentice
Apprentice


Joined: 01 Feb 2007
Posts: 183

PostPosted: Sun May 11, 2008 8:21 pm    Post subject: axfr transfer connection problem Reply with quote

Hey everyone

i have some problem getting a connection from an axfr tranfer (gratisdns.dk) to my server.
i get connection refuged. i know its my server that makes trouble, and im alsmost sure its my iptables configuration that makes trouble.

Code:
# Generated by iptables-save v1.3.8 on Sun May 11 20:13:12 2008
*nat
:PREROUTING ACCEPT [5666520:506750747]
:POSTROUTING ACCEPT [4158:394990]
:OUTPUT ACCEPT [2148795:181460447]
-A POSTROUTING -o WAN -j MASQUERADE
COMMIT
# Completed on Sun May 11 20:13:12 2008
# Generated by iptables-save v1.3.8 on Sun May 11 20:13:12 2008
*mangle
:PREROUTING ACCEPT [72308373:5137856559]
:INPUT ACCEPT [70462435:3982746207]
:FORWARD ACCEPT [1839946:1154764886]
:OUTPUT ACCEPT [113297478:148494596726]
:POSTROUTING ACCEPT [115219548:149663618279]
COMMIT
# Completed on Sun May 11 20:13:12 2008
# Generated by iptables-save v1.3.8 on Sun May 11 20:13:12 2008
*filter
:INPUT ACCEPT [65932197:3724894975]
:FORWARD DROP [6846:1748257]
:OUTPUT ACCEPT [113297478:148494596726]
-A INPUT -i lo -j ACCEPT
-A INPUT -i LAN -j ACCEPT
-A INPUT -i ! LAN -p udp -m udp --dport 67 -j REJECT --reject-with icmp-port-unreachable
-A INPUT -i WAN -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -i WAN -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -i WAN -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 49152:65534 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -i ! LAN -p tcp -m tcp --dport 0:1023 -j DROP
-A INPUT -i ! LAN -p udp -m udp --dport 0:1023 -j DROP
-A FORWARD -d 192.168.0.0/255.255.0.0 -i LAN -j DROP
-A FORWARD -s 192.168.0.0/255.255.0.0 -i LAN -j ACCEPT
-A FORWARD -d 192.168.0.0/255.255.0.0 -i WAN -j ACCEPT
COMMIT
# Completed on Sun May 11 20:13:12 2008


is there anything wrong with it?
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sun May 11, 2008 8:43 pm    Post subject: Reply with quote

without complely parsing your config, does your dns server work normally on your wan interface?
you can try that with
Code:
$ dig @server name
from outside your network.
if the axfr stuff works can be test e.g. with
Code:
$ host -l zone
Back to top
View user's profile Send private message
silwerspawn
Apprentice
Apprentice


Joined: 01 Feb 2007
Posts: 183

PostPosted: Sun May 11, 2008 8:54 pm    Post subject: Reply with quote

sorry i should have told you, gratisdns.dk is a free service for secondary DNS servers.
you add your hostname and ip. and it runs.
so there is nothing wrong with gratis dns.

this is what i get when running the test from their site

Code:
;; Connection to 80.162.69.178#53(80.162.69.178) for frostdrake.tk failed: connection refused.
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Sun May 11, 2008 10:14 pm    Post subject: Reply with quote

what exactly are you trying to do?
which command did you use?
Back to top
View user's profile Send private message
silwerspawn
Apprentice
Apprentice


Joined: 01 Feb 2007
Posts: 183

PostPosted: Mon May 12, 2008 2:28 pm    Post subject: Reply with quote

i dont know what command it runs at gratisdns.dk
and i cant see anything else than that.
but what i was asking for is that have i messed up in the iptables?
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Mon May 12, 2008 6:34 pm    Post subject: Reply with quote

Quote:
but what i was asking for is that have i messed up in the iptables?
that's why i asked you to try the connection to port 53 from outside the network. i don't like parsing such scripts in my head if there is a very easy way to try it out.
Back to top
View user's profile Send private message
silwerspawn
Apprentice
Apprentice


Joined: 01 Feb 2007
Posts: 183

PostPosted: Mon May 12, 2008 6:53 pm    Post subject: Reply with quote

ahh okay.. sorry..
i dont have a machine on the outside right now.
so maybe you could try on 80.162.69.178 if its not too much trouble.
the domain is frostdrake.tk, but that does not work
Back to top
View user's profile Send private message
silwerspawn
Apprentice
Apprentice


Joined: 01 Feb 2007
Posts: 183

PostPosted: Thu Jun 05, 2008 4:14 pm    Post subject: Reply with quote

I think i found what was troubeling me now.

i get this now in my log.

05-Jun-2008 17:07:59.855 no longer listening on 127.0.0.1#53
05-Jun-2008 17:07:59.855 no longer listening on 192.168.0.1#53
05-Jun-2008 17:07:59.855 no longer listening on 80.162.69.178#53

why is it doing this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum