2 2
anuj9122

apache and bind9

Recommended Posts

Hello

 

I want to host 5 websites on cubieboard 1.So i decided to install bind9 for dns to add godaddy and bigrock. Please understand wan and  lan in this. wan is 122.157.152.57 and lan is 192.168.1.2.Some applications are working and some are not.bind9 Dns is already added to godaddy and rockbig.

 

Apache: Not working on wan, At domian projectok.com it goes to modem or router login (ip address: 192.168.1.1) and on lan i can see test html page

webmin:  working on all wan,lan and domain

proftpd: Not working on wan,lan and domain

qbittorrent: working on all wan,lan and domain

 

 

I search and find out there is a resolv file in /etc that i can edit and save but after reboot it revert back to 192.168.1.1

 

 

 

 

my issue is i want to host 5 websites and ftp that is not working.Please see attachment of confs file of bind9 , hosts and resolv.

 

 

named.conf.zip

Share this post


Link to post
Share on other sites
2 hours ago, anuj9122 said:

I search and find out there is a resolv file in /etc that i can edit and save but after reboot it revert back to 192.168.1.1

Reading "man resolved.conf" will help you to figure out, /etc/resolved.conf is created during boot using defaults from /etc/systemd/resolved.conf ...

Share this post


Link to post
Share on other sites

Your address 192.168.1.2 is it delivry by DHCP or it's a static address ?

The file /etc/resolv.conf is rewrite per NetworkManager when you receive your address from DHCP

 

To separate administrative web tools (lan) and user/client web tools (wan)
do with Apache two virtual host
The first : user/client web tools (wan) on port 80 and 443
The second : administrative web tools (lan) on port 8080

With the firewall (iptable or iptable gui ) open on wan only port 80 and 443

Share this post


Link to post
Share on other sites

Thanks for replying

 

Your address 192.168.1.2 is it delivry by DHCP or it's a static address ?

-> DHCP by router but in cubieboard use static.

 

The first : user/client web tools (wan) on port 80 and 443
The second : administrative web tools (lan) on port 8080

-> Port 80 and 443 is blocked my isp so i want to  use 8000 and 8001

 

With the firewall (iptable or iptable gui ) open on wan only port 80 and 443

-.> not installed any firewall by me.Also checked in webmin no firewall installed.Does armbian comes with firewall? How to check firewall installed?

 

 

Port 80 and 443 is blocked by isp so i want to use 8000 and 8001 (ssl).For dns 53 port is open and dns is working fine.Checked by all online tools.When i put ns1.abc.com and ns2.abc.com in bigrock.com , website is not working.I  think port 80 is blocked so i want to use 8000 instead of 80.

 

 Please guide me with commands to use to do this all

 

Share this post


Link to post
Share on other sites

In case, both IP address are static, write your your DNS sever in /etc/resolv.conf : nameserver 'dns_IP_address'

If one IP address from DHCP, network-manager will re-write resolv.conf with data from DHCP

If the DNS from DHCP is not good, you must fix a static address one each interface and write manually resolv.conf

 

What is this ?????? internet access blocking port 80 and 443
Are you sur port 8000 or 8001 are open ; for user, prefer port 8080, some internet browser block no standard port ( i have had this problem with port 8000 and must move to 8080 )

 

For the firewall, normally all Armbian have installed IPTABLES ( it's the native linux firewall ) but it's only on command line

I never used webmin but i think it said "not installed" because there are not filtering rules

https://doxfer.webmin.com/Webmin/Linux_Firewall

Share this post


Link to post
Share on other sites

Thanks for reply.

 

I will come back to ports.Please tell me where to find new image of cubieboard one. I need

 

boot from nand - system on sata

Share this post


Link to post
Share on other sites

If there is none for download you have to build one (xenial only) and hope it works. We stop supporting this board long time ago.

Wrote on mobile

Share this post


Link to post
Share on other sites

Hi Igor

 

 

I am waiting for your reply. Can i increase cpu frequency to 1.1 ,1.2 ,1.3 or 1.4 ghz? I already put heat sink and have 5 volt 5 amp power supply that is currently  connected to cubieboard 1

Share this post


Link to post
Share on other sites

Hi igor. Could you please tell me which options i need to choose to build

 

boot from nand ,system on sata

 

I am using this option but i cannt find this option to install boot from nand ,system on sata

 

full os image for flashing -->   show a kernal configuration menu before compilation --> show csc/wip/eos/tvb --> i understand and agree --> cubieboard --> next --> xenial --> image with console interface (server) --> standard image for console interface

Share this post


Link to post
Share on other sites

Hello Igor

 

 

cubieboard 1 stuck when installed boot from nand, system on sata.

 

Only show stable lights green and red. Screen black.Could you please guide me?

Share this post


Link to post
Share on other sites

Hello Member

 

 

Please reply

 

cubieboard 1 stuck when installed boot from nand, system on sata.

 

Only show stable lights green and red. Screen black.Could you please guide me?

Share this post


Link to post
Share on other sites

Hi

 

Coming back to resolv.conf file.I dont have static ip address so i am using dns ( freednsafraid ) .So my outer link is hmail.hmail.us. I want i can also access from internal network.So please guide me. When i enter hmail.hmail.us into browser i get the router login page that is 192.168.1.1. But i want to get this ip 192.168.1.55.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
2 2