Re:
beatgammit said:
markbsd said:
I'm not too concerned with being that minimal. I just want an easy to setup, use and maintain home network. Remember, I'm a rank novice here
For example, I bought a new domain name, but don't even know how to use it for my home network! I registered with freedns.afraid.org, changed my domain name's nameservers, but still couldn't get my WAMP server on my Win7 box to work with my new domain name. I just want to stand up a website with FreeBSD guides and links for new users, and host the site on one of my own rigs. But can't even figure it out
Here's a series of questions then:
- Is your domain resolving to your home network? (
host your-domain
, check against your router's WAN IP)
- Can you get to your WAMP server using it's internal address (probably 192.168.1.X)?
- Do you have forwarding rules configured on your router? (e.g. port 80 -> Win7 port 80)
- If yes to the above, does it work when you're not at home? (i.e. at work)
- It is now: bsdbox.co resolves to my router's external IP.
- I managed to get WAMP working on Windows 7; however, I've now set up AMP on an old notebook running FreeBSD 9.2-RELEASE and it is functional.
- I do, and I have some questions you might be able to help with.
- It's irrelevant now, but yes. And thank you very much for your help, @beatgammit.
Basically, I don't know why it wasn't working on Windows 7, and I still don't know what I specifically changed that caused it to work on Windows 7. It's inconsequential now as I have it all pointing to where I ultimately wanted it -- ye olde BSDbox.
As I said,
bsdbox.co now points to a notebook on my network running 9.2-RELEASE. I've set up AMP (
apache24,
mysql56-server,
php5,
php5-extensions, and
phpmyadmin) all inside the same jail to serve up ownCloud and Wordpress and use SSL (HTTPS)). Everything is running fine. Two irrelevant points for you, but one of which might be worthy of notifying a port maintainer:
- Despite only installing phpmyadmin from ports yesterday, only 4.0.9 was installed -- 4.0.10 has been available for four days.
- phpMyAdmin 4.0.9 is incompatible with php55. I initially compiled php55 and phpmyadmin kept failing the build -- it requires php5
I'd just like some input from the community as to whether this is normal before erroneously advising the maintainer.
Anyway, some relevant intel before my questions:
- Router external IP: 110.146.148.136
- Router internal IP: 10.0.0.138
- FreeBSD host external IP: 10.0.0.48
- FreeBSD jail running AMP external IP: 10.0.0.110
Questions:
- When I created the jail with the IP alias 10.0.1.110 and 10.0.1.255 subnet, there was no internet connectivity within the jail -- why?
N.b. my router's DHCP pool is 10.0.0.1 to 10.0.0.136. I had no success creating an additional DHCP pool.
- My router's configuration now shows the host OS (FreeBSD) as having the jail's IP (10.0.0.110) -- is this normal?
- When I create another jail to serve, say a Tor relay, what happens? I.e., I'm assuming the router will then display the new jail's IP for the host IP -- will my AMP server inside jail #1 still be accessible?
- How does this affect port forwarding (NAT)? I.e., if the router only sees one IP (the latest one created by the looks of it), do I need to do additional port forwarding with PF to the appropriate jail(s)?
- I want to run my own MTA, so I can host all mail for bsdbox.co on this server. Should I:
- set it up inside the same jail as AMP?
- use sendmail and imap-uw, or postfix and dovecot, or qmail?
- do I need to run my own nameserver (DNS) in order to run my own MTA, or can I keep everything with FreeDNS?
N.b. I don't need anything fancy, just IMAP and SSL; however, I would like the setup process to be simple, and, if possible, keep my DNS with FreeDNS. Unless it is easy enough to set up my own DNS, I would like to do this eventually anyway.
- How do I enforce HTTPS? As it is now, you must type "https://bsdbox.co". However, "cloud" and "press" (.bsdbox.co) does go to the HTTPS version as I've (a) selected the force https option in ownCloud, and (b) added forwards on my FreeDNS subdomain configuration with:
Code:
->press.bsdbox.co (G) URL https://bsdbox.co/wordpress
->cloud.bsdbox.co (G) URL https://bsdbox.co/owncloud
- Finally, I still can't get my head around some basic networking nomenclature: my notebooks all have an Ethernet and a WiFi card. They all connect to the router via WiFi (no Ethernet cable plugged in). All the PF and IPFW documentation I read talks about external interfaces ($ext_if) and internal interfaces ($int_if). What exactly is this in reference to? For example, I realize my router's external (WAN) IP is the one my domain name points to, and what the internet sees (110.146.148.136). I know its internal (LAN) IP is what my network points to and what I enter to access the router (10.0.0.138). So, I understand it has an external and internal IP (or interface). However, my computers on the network, despite having two NICs, only have one IP, which I assume, despite being a LAN address, is its external interface (10.0.0.xxx) as it is this that connects to the Internet via the gateway/router. So, why does all the documentation refer to two (external and internal) interfaces? And, considering I have two NICs (Ethernet and WifI) in my notebooks, how do I go about creating another interface IP? I imagine, to use this FreeBSD notebook as a firewall and router it will need both of these interfaces.
I ask these questions after having read:
- https://sites.google.com/site/ghidit/how-to-2/freebsd-9-mail-server-setup-postfix-dovecot-2-virtual-users-mysql-sasl-postfixadmin-and-others
- http://www.freebsdonline.com/content/view/571/506/
- http://www.informationweek.com/how-to-build-a-cheap-reliable-mail-server-using-freebsd/d/d-id/1043907?page_number=3
- http://www.purplehat.org/?page_id=5
- http://www.freebsd.org/doc/handbook/mail-using.html
- http://www.freebsd.org/doc/handbook/network-dns.html
and the two most appealing guides:
- http://servers.hostik.com/instructions/freebsd-mailserver.htm
- http://www.puresimplicity.net/~hemi/freebsd/sendmail.html
with the last one being the most likely candidate that I will proceed with, pending further advice. I say this because, firstly, I think it might be simpler and more stable running with
sendmail as it's the default UNIX MTA and is used for system processes, which will require further system configuration if disabled. Secondly, it seems like the most detailed and straight-forward tutorial. Finally, it is the most recent/up-to-date tutorial and doesn't have conflicting guides from elsewhere (as many of the others do).
In spite of everything I've read, I'm still unclear on the questions I've put forth regarding running/hosting/serving my own mail, but this is the next step I would really like to take. If you have any links to a tried-and-tested HOWTO/guide/tutorial to set up a mail server on FreeBSD 9.2-RELEASE I would love to have them. I also would really appreciate any answers and advice you can provide.
N.b. This notebook has two NICs (Ethernet and WiFi), eventually I want to buy another one and use this notebook as the router/gateway. So it will go:
inet > modem > notebook (firewall/router/gateway) > clients. I am not sure if this is wise, but for some reason I want to use a PC as a router/firewall. I installed pfSense into a VM on Windows 7, bridged the host external IP to a virtual NIC in VirtualBox (pfSense), then bridged another pfSense virtual NIC to the host (Windows 7) loopback adapter and disabled TCP/IP on the host so it only connected to the internet through its virtual guest. But, then I thought, why not just use FreeBSD and PF to do the same thing?
Anyway, long post. If you've come this far, thanks for reading, and I appreciate anything you (or anybody else) have (has) to offer
tl;dr: I know I've asked a lot; really, what I most need is MTA advice for now. I want to run my own mail server and don't know which applications to use or how to set it all up.