Web server behind a linksys and dns

Brian Johnson bjohnson at jecinc.on.ca
Mon Dec 9 13:35:25 UTC 2002


I'm not sure I understand what you are doing, but maybe I can help

I'll cover a few general points to consider (the way I understand it, the Linksys
router is between your DNS server and the internet)

We have a Linksys BEFSR81 and to access it from an external location you need to
enable the remote management option.  Also the internet web address of the router
is through port 8080 (not the regular http port 80) so you would use an url
something like http://176.76.7.24:8080 - to access it internally you just use the
assigned LAN IP address

Since the router itself has your internet address, you need to turn on port
forwarding for the appropriate ports to point at your internal server (dns, http,
smtp, whatever)

Without fully reviewing all of your config files, it sounds as though you've
followed the correct logic - check the Linksys router config


Russell Rivas (rr1036 at pacbell.net) wrote*:
>
>If you ever figure this out can you please let me know how you accomplish
>this. I have been trying to do the samething with my FreeBSD server for
>about 6 months with same equipment and get the same result trying to resolve
>externally.
>
>Thanks
>
>
>"mgd" <mgd at telusplanet.net> wrote in message
>news:ar1krg$e916$1 at isrv4.isc.org...
>> I originally posted this in the questions section. I am posting it again
>> because I still cannot get the dns to work properly. I can connect to the
>> server using putty. I can http:\\176.76.7.1 and get the home page. I can
>> http://www.domain.com using lynx on the web server, so apache is working.
>I
>> can do an nslookup and a whois and get the correct information. However, I
>> cannot get resolution for www.domain.com from any web browser external to
>my
>> server.
>>
>>
>>
>> On a 4.7 build, I created a web/dns server that worked fine connected
>> directly to a 3com modem. I compiled the kernel and configured rc.conf for
>> firewall capabilities. Here are the relevant entries that worked. My
>virtual
>> host is www.domain.com.
>>
>>
>>
>> /etc/rc.conf
>>
>> defaultrouter="176.76.7.1"
>>
>> hostname="ns.domain.com"
>>
>> network_interfaces="xl1 lo0"
>>
>> ifconfig_lo0="inet 127.0.0.1 netmask 255.255.255.0"
>>
>> ifconfig_xl1="inet 176.76.7.24 netmask 255.255.255.0" #ip add registered
>on
>> whois
>>
>>
>>
>> /etc/hosts
>>
>> 127.0.0.1    localhost.ns.domain.com   localhost
>>
>> 176.76.7.24 ns.domain.com  ns
>>
>> 176.76.7.24 ns.domain.com.
>>
>>
>>
>> /etc/resolv.conf
>>
>> domain   domain.com
>>
>> nameserver 127.0.0.1
>>
>> nameserver  176.76.7.24
>>
>> nameserver 199.122.23.23 #my isps dns servers
>>
>> nameserver 199.122.32.3
>>
>>
>>
>> /etc/hosts/allow
>>
>> ALL : ns.domain.com 176.76.7.24 : allow
>>
>>
>>
>> /etc/namedb/named.conf
>>
>> zone "7.76.176.in-addr.arpa" {
>>
>>
>>
>> /etc/namedb/s/domain.com.fwd
>>
>> www IN A 176.76.7.24
>>
>>
>>
>> /usr/local/etc/apache2/httpd.conf
>>
>> NameVirtualHost 176.76.7.24
>>
>>
>>
>> Although, this worked fine, I decided to put a Linksys BEFSR41 between the
>> web server and the 3 com modem. I set the Linksys LAN address to
>192.168.1.1
>> and the WAN address to 176.76.7.24.
>>
>>
>>
>> I then edited the above files as follows:
>>
>>
>>
>> /etc/rc.conf
>>
>> defaultrouter="192.168.1.1"
>>
>> ifconfig_xl1="inet 192.168.1.10 netmask 255.255.255.0"
>>
>>
>>
>> And in the rest of the files, I replaced 176.76.7.24 with 192.168.1.10,
>> except for the /etc/named.named.conf which was zone
>"1.168.192.in-addr.arpa"
>>  {
>>
>> I also changed the serial number in the .com.fwd and .rev files.
>>
>>
>>
>>
>>
>>
>>
>



More information about the bind-users mailing list