[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Set Up a server using Public IP Addresses on debian





On Sat, Jun 11, 2011 at 3:08 PM, Camaleón <noelamac@gmail.com> wrote:
On Sat, 11 Jun 2011 14:14:31 +0200, Christian Simo wrote:

> Hi all
>
> Sorry to response let!

Please, keep the replies into the same thread, there is no need to open a
new thread for every post :-)

Sorry for that, I deleted by mistake the previous mails.
 
> I was busy with my ISP:
>
> please see below the NAT configuration for my Cisco Router done by my
> ISP:

(...)

Christian, having a computer connected to Internet 24 hours 365 days
which provides remote services it can be very risky (and not only for you
or your LAN but the whole of the Internet users) so I think you need
first to get some of the basics about networking and routing to
understand what is this all about and what do you need, at least for
making your first tests.

Thanks for this resume,
in fact, I set up a network using class A 10.0.0.0:
my LAN gateway is 10.0.0.2
 n1.kom.co.za and ns2.kom.co.za are the hostnames for 10.0.0.80 and 10.0.0.82
this two debian machines are my DNS bind server.

Please below the interfaces files congigurations:


iface eth0 inet static
        address 10.0.0.80
        netmask 255.255.255.0
        network 10.0.0.0
        broadcast 10.0.0.255
        gateway 10.0.0.2

        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 196.28.80.139 196.28.80.140
        dns-search ns1.kom.co.za ns2.kom.co.za

iface eth0 inet static
        address 10.0.0.82
        netmask 255.255.255.0
        network 10.0.0.0
        broadcast 10.0.0.255
        gateway 10.0.0.2
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 196.28.80.139 196.28.80.140
        dns-search ns1.kom.co.za ns2.kom.co.za

this below are my hosts files configurations for 10.0.0.80 and 10.0.0.82:

127.0.0.1       localhost
10.0.0.82       ns1.kom.co.za     ns1


127.0.0.1       localhost
10.0.0.82       ns2.kom.co.za     ns2


 
I dunno how can we help you if we don't know what is your network layout,
what routers/gateways/modems do you have configured at your site and what
tests are you doing right know.

The routers is a Cisco provide by my ISP  and I got 4 switch   D-LINK on the network.

I said before, I planed to have two DNS server one as primary on 10.0.0.80 and another as slave on 10.0.0.82

my router IP is 41.134.19.89, 10.0.0.80 pointing on 41.134.19.90 with port 53 open and 10.0.0.82 pointing on 41.134.19.91 with ports 53 and 80 open.

See below my primary DNS configuration:

File: /etc/bind/named.conf.local;

zone "kom.co.za" IN {
        type master;
        file "/var/cache/bind/master.kom.co.za";
        notify yes;
};


zone "0.0.10.in-addr.arpa" IN {
        type master;
        file "/var/cache/bind/kom.co.za.inv";
};


File: /var/cache/bind/master.kom.co.za :

$ORIGIN kom.co.za.
$TTL 861000
@       IN      SOA     ns1.kom.co.za.    postmaster.kom.co.za.     (
                        2011061001      ; serial
                        3600            ; refresh
                        900             ; retry
                        1209600         ; expire
                        13200)          ; default_TTL

        IN      NS              ns1.kom.co.za.
        IN      NS              ns2.kom.co.za.

        IN      MX      10      mail.kom.co.za.

ns1     IN      A       10.0.0.80
ns2     IN      A       10.0.0.82
www     IN      A       10.0.0.81
sql     IN      A       10.0.0.81
mail    IN      A       10.0.0.84
backup  IN      A       10.0.0.102
ftp     IN      CNAME   www
imap    IN      CNAME   mail
pop     IN      CNAME   mail
pop3    IN      CNAME   mail
smtp    IN      CNAME   mail
img     IN      CNAME   www

File: /var/cache/bind/kom.co.za.inv   

$ORIGIN 0.0.10.in-addr.arpa.
$TTL 864000
@       IN      SOA     ns1.kom.co.za.    postmaster.kom.co.za.     (
                        201105311       ; serial
                        3600            ; refresh
                        900             ; retry
                        1209600         ; expire
                        43200)          ; default_TTL

                IN      NS              ns1.kom.co.za.
                IN      NS              ns2.kom.co.za.

10.0.0.80.      IN      PTR     ns1.kom.co.za.
10.0.0.82.      IN      PTR     ns2.kom.co.za.
10.0.0.101.     IN      PTR     sql.kom.co.za.
10.0.0.102.     IN      PTR     backup.kom.co.za.





So please, let's concetrate in one service (dns server or http server or
whatever you prefer) and now that your ISP has configured the routes to
point to your local server you can start with your setup. So choose one
service, configure it and put here any problems you have with that.

When I tried to update kom.co.za domain from  co.za. administrator domain, I received this errors:

Syntax/Cross-Checking provided info for Nameserver at 6a: ns1.kom.co.za @ 41.134.19.90
IPv4: 41.134.19.90 ==> 41-134-19-90.dsl.mweb.co.za.
FQDN: ns1.kom.co.za ==>
ERROR: Checking field 6a and running a Reverse check. "ns1.kom.co.za" not found in "41-134-19-90.dsl.mweb.co.za."

! Whilst checking field 6a on the application form and whilst running a Reverse check...
! you specified that "41.134.19.90" would map to "ns1.kom.co.za",
! but DNS returned "41-134-19-90.dsl.mweb.co.za."

Syntax/Cross-Checking provided info for Nameserver at 6e: ns2.kom.co.za @ 41.134.19.91
IPv4: 41.134.19.91 ==> 41-134-19-91.dsl.mweb.co.za.
FQDN: ns2.kom.co.za ==>
ERROR: Checking field 6e and running a Reverse check. "ns2.kom.co.za" not found in "41-134-19-91.dsl.mweb.co.za."

! Whilst checking field 6e on the application form and whilst running a Reverse check...
! you specified that "41.134.19.91" would map to "ns2.kom.co.za",
! but DNS returned "41-134-19-91.dsl.mweb.co.za."

Thanks in advance


Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] pan.2011.06.11.13.08.27@gmail.com" target="_blank">http://lists.debian.org/[🔎] pan.2011.06.11.13.08.27@gmail.com



Reply to: