Hi,
I recently moved from Mumbai to Kolkata, where I have a fiber network connection who provided me with a private IP address for my machine. My local IP is 172.17.177.88 and the public IP is 45.250.245.79. My desktop is connected to a Wi-fi router with a DHCP host, which provides a IP to my desktop 192.168.1.46.
If I want to run a web server and mail server namely Apache and postfix on my machine, how do I configure my machine? Not running the machine 24/7 will be a problem?
I run Fedora 32 64 bit GNU/Linux on my machine. Please let me know if any more information is required to answer my question.
I will be thankful for any pointers which I can read to understand the complexities.
Nemo has a series https://captnemo.in/blog/2018/04/22/home-server-networking/
I find this setup slightly complicated.
This is my setup https://asd.learnlearn.in/home-server/
But power backup is a big problem I face.
On Thu, 11 Jun, 2020, 18:48 Nachiketa Sadhu, sadhun@gmail.com wrote:
Hi,
I recently moved from Mumbai to Kolkata, where I have a fiber network connection who provided me with a private IP address for my machine. My local IP is 172.17.177.88 and the public IP is 45.250.245.79. My desktop is connected to a Wi-fi router with a DHCP host, which provides a IP to my desktop 192.168.1.46.
If I want to run a web server and mail server namely Apache and postfix on my machine, how do I configure my machine? Not running the machine 24/7 will be a problem?
I run Fedora 32 64 bit GNU/Linux on my machine. Please let me know if any more information is required to answer my question.
I will be thankful for any pointers which I can read to understand the complexities. -- https://mm.ilug-bom.org.in/mailman/listinfo/linuxers
Dear Nachiketa Sadhu,
Recently I have gone through this article which explains step by step how you can convert your old laptop into a server also It also explains what else you can do with this server Like:
1. Use it for OwnCloud https://owncloud.org/ / Nextcloud https://nextcloud.com/ 2. For SMTP server for sending emails 3. For Backup 4. As FTP server 5. For Docker https://www.docker.com/ 6. Hosting website 7. Put music & videos then stream it online through PeerTube https://joinpeertube.org/ / ClipBucket https://clipbucket.com/ (Youtube, NetFlix streaming like Open Source script)
Here is the link: https://dev.to/jayesh_w/this-is-how-i-turned-my-old-laptop-into-a-server-1el...
On Thu, Jun 11, 2020 at 6:52 PM Akshay S Dinesh asdofindia@gmail.com wrote:
Nemo has a series https://captnemo.in/blog/2018/04/22/home-server-networking/
I find this setup slightly complicated.
This is my setup https://asd.learnlearn.in/home-server/
But power backup is a big problem I face.
On Thu, 11 Jun, 2020, 18:48 Nachiketa Sadhu, sadhun@gmail.com wrote:
Hi,
I recently moved from Mumbai to Kolkata, where I have a fiber network connection who provided me with a private IP address for my machine. My local IP is 172.17.177.88 and the public IP is 45.250.245.79. My desktop is connected to a Wi-fi router with a DHCP host, which provides a IP to my desktop 192.168.1.46.
If I want to run a web server and mail server namely Apache and postfix on my machine, how do I configure my machine? Not running the machine 24/7 will be a problem?
I run Fedora 32 64 bit GNU/Linux on my machine. Please let me know if any more information is required to answer my question.
I will be thankful for any pointers which I can read to understand the complexities. -- https://mm.ilug-bom.org.in/mailman/listinfo/linuxers
On Thu, 11 Jun 2020, 18:48 Nachiketa Sadhu, sadhun@gmail.com wrote:
Hi,
Hi.
I recently moved from Mumbai to Kolkata, where I have a fiber network connection who provided me with a private IP address for my machine. My local IP is 172.17.177.88 and the public IP is 45.250.245.79. My desktop is connected to a Wi-fi router with a DHCP host, which provides a IP to my desktop 192.168.1.46.
Is the private IP 172xxx accessible from outside? If not, first that part has to be done if you want to run web based services. You might have to talk to your fiber provider. The internal routing in the WiFi router is then tuned accordingly IMHO.
If I want to run a web server and mail server namely Apache and postfix on my machine, how do I configure my machine? Not running the machine 24/7 will be a problem?
I run Fedora 32 64 bit GNU/Linux on my machine. Please let me know if any more information is required to answer my question.
I will be thankful for any pointers which I can read to understand the complexities. -- https://mm.ilug-bom.org.in/mailman/listinfo/linuxers
On Thu, Jun 11, 2020 at 6:48 PM Nachiketa Sadhu sadhun@gmail.com wrote:
Hi,
I recently moved from Mumbai to Kolkata, where I have a fiber network connection who provided me with a private IP address for my machine. My local IP is 172.17.177.88 and the public IP is 45.250.245.79. My desktop is connected to a Wi-fi router with a DHCP host, which provides a IP to my desktop 192.168.1.46.
Public IP should be static. Generally costs extra. Check with your ISP. If it is not static and you can't get one then you may have to use some dynamic dns service. I think mail server setup will be difficult then. I haven't tried setting up a mail server with dynamic dns service.
Port forwarding will be needed for relevant desktop/server ports. Webserver, mail, anything else hosted.
If I want to run a web server and mail server namely Apache and postfix
on my machine, how do I configure my machine? Not running the machine 24/7 will be a problem?
ILUG-BOM helped me setup mail server on this thread http://mm.ilug-bom.org.in/pipermail/linuxers/Week-of-Mon-20140217/074274.htm... You can also check the post here. http://www.ilug-bom.org.in/2017/power-of-linux-why-you-no-host/ Note that it uses Debian and not Fedora.
Revant
On Mon, Jun 15, 2020 at 12:46 AM Revant Nandgaonkar revant.one@gmail.com wrote:
On Thu, Jun 11, 2020 at 6:48 PM Nachiketa Sadhu sadhun@gmail.com wrote:
Hi,
I recently moved from Mumbai to Kolkata, where I have a fiber network connection who provided me with a private IP address for my machine. My local IP is 172.17.177.88 and the public IP is 45.250.245.79. My desktop is connected to a Wi-fi router with a DHCP host, which provides a IP to my desktop 192.168.1.46.
Public IP should be static. Generally costs extra. Check with your ISP. If it is not static and you can't get one then you may have to use some dynamic dns service.
Totally agree. About 5 years back, the cost of a static IP was about INR 2000/year. The OP can also create a CNAME record e.g. www.example.com pointing the Dyn DNS hostname. This should work for Webhosting with a cron shell script, updating the Dyn DNS hostname each time the "public" IP changes.
For the email server, it is a different ball game (see below).
I think mail server setup will be difficult then. I haven't tried setting up a mail server with dynamic dns service.
IMO, it is a *bad* idea hosting your own SMTP server, unless your objective is to become a subject matter expert in SMTP. Most ISP's IP pools are blacklisted in some email RBL, so outbound emails would be rejected -- you will have to constantly contact the RBL list admin to get unblocked. Besides, for incoming messages, you have to make sure your server is not an open relay, monitor spam filters to ensure there are no false positives, watch for DDoS attacks ... In the early 2000s I tried hosting my own email server for about 8 months and concluded to outsource the email aspect to a vendor that specializes in email hosting.
An alternate solution for outright email hosting -- (a) for inbound messages find a "Backup" MX service providers and poll their servers to "download" inbound messages (b) for outbound messages use a service provider like SendGrid or similar. Also read up on SPF, DMARC, DKIM DNS records, and ensure the information therein is aligned with each other.
--Arun Khan